@tlua/gmod 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/__metadata.json +4 -0
- package/_globals.d.tlua +178 -0
- package/_gmod-std.d.tlua +35 -0
- package/achievementicon.d.tlua +12 -0
- package/achievements.d.tlua +162 -0
- package/ai.d.tlua +65 -0
- package/ai_schedule.d.tlua +17 -0
- package/ai_task.d.tlua +17 -0
- package/angle.d.tlua +197 -0
- package/avatarimage.d.tlua +10 -0
- package/awesomium.d.tlua +14 -0
- package/baseclass.d.tlua +42 -0
- package/bf_read.d.tlua +110 -0
- package/bit.d.tlua +121 -0
- package/button.d.tlua +13 -0
- package/cam.d.tlua +220 -0
- package/ceffectdata.d.tlua +337 -0
- package/chat.d.tlua +62 -0
- package/checkbutton.d.tlua +14 -0
- package/cleanup.d.tlua +88 -0
- package/cluaemitter.d.tlua +119 -0
- package/clualocomotion.d.tlua +383 -0
- package/cluaparticle.d.tlua +426 -0
- package/cmovedata.d.tlua +476 -0
- package/cnavarea.d.tlua +845 -0
- package/cnavladder.d.tlua +209 -0
- package/cnewparticleeffect.d.tlua +259 -0
- package/color.d.tlua +339 -0
- package/concommand.d.tlua +69 -0
- package/constraint.d.tlua +311 -0
- package/construct.d.tlua +26 -0
- package/contentheader.d.tlua +32 -0
- package/contenticon.d.tlua +86 -0
- package/contentsidebar.d.tlua +45 -0
- package/contentsidebartoolbox.d.tlua +13 -0
- package/contextbase.d.tlua +37 -0
- package/controlpanel.d.tlua +140 -0
- package/controlpresets.d.tlua +118 -0
- package/convar.d.tlua +162 -0
- package/cookie.d.tlua +60 -0
- package/coroutine.d.tlua +90 -0
- package/crecipientfilter.d.tlua +152 -0
- package/csent.d.tlua +10 -0
- package/csoundpatch.d.tlua +150 -0
- package/ctakedamageinfo.d.tlua +366 -0
- package/ctrllistbox.d.tlua +12 -0
- package/ctrlnumpad.d.tlua +73 -0
- package/cusercmd.d.tlua +320 -0
- package/custom_classes.d.tlua +65 -0
- package/custom_entity_fields.d.tlua +96 -0
- package/cvars.d.tlua +80 -0
- package/dadjustablemodelpanel.d.tlua +81 -0
- package/dalphabar.d.tlua +27 -0
- package/dbinder.d.tlua +37 -0
- package/dbubblecontainer.d.tlua +18 -0
- package/dbutton.d.tlua +88 -0
- package/dcategoryheader.d.tlua +13 -0
- package/dcategorylist.d.tlua +11 -0
- package/dcheckbox.d.tlua +46 -0
- package/dcheckboxlabel.d.tlua +90 -0
- package/dcollapsiblecategory.d.tlua +240 -0
- package/dcolorbutton.d.tlua +73 -0
- package/dcolorcombo.d.tlua +54 -0
- package/dcolorcube.d.tlua +137 -0
- package/dcolormixer.d.tlua +303 -0
- package/dcolorpalette.d.tlua +294 -0
- package/dcolumnsheet.d.tlua +49 -0
- package/dcombobox.d.tlua +161 -0
- package/ddragbase.d.tlua +151 -0
- package/ddrawer.d.tlua +72 -0
- package/debug.d.tlua +236 -0
- package/debugoverlay.d.tlua +193 -0
- package/dentityproperties.d.tlua +63 -0
- package/derma.d.tlua +119 -0
- package/dexpandbutton.d.tlua +30 -0
- package/dfilebrowser.d.tlua +228 -0
- package/dform.d.tlua +176 -0
- package/dframe.d.tlua +261 -0
- package/dgrid.d.tlua +113 -0
- package/dhorizontaldivider.d.tlua +196 -0
- package/dhorizontalscroller.d.tlua +104 -0
- package/dhscrollbar.d.tlua +109 -0
- package/dhtml.d.tlua +91 -0
- package/dhtmlcontrols.d.tlua +62 -0
- package/diconbrowser.d.tlua +113 -0
- package/diconlayout.d.tlua +190 -0
- package/dimage.d.tlua +221 -0
- package/dimagebutton.d.tlua +103 -0
- package/dkillicon.d.tlua +9 -0
- package/dlabel.d.tlua +385 -0
- package/dlabeleditable.d.tlua +51 -0
- package/dlabelurl.d.tlua +100 -0
- package/dlistbox.d.tlua +82 -0
- package/dlistboxitem.d.tlua +42 -0
- package/dlistlayout.d.tlua +14 -0
- package/dlistview.d.tlua +360 -0
- package/dlistview_column.d.tlua +135 -0
- package/dlistview_columnplain.d.tlua +11 -0
- package/dlistview_draggerbar.d.tlua +11 -0
- package/dlistview_line.d.tlua +140 -0
- package/dlistviewheaderlabel.d.tlua +11 -0
- package/dlistviewlabel.d.tlua +11 -0
- package/dlistviewline.d.tlua +11 -0
- package/dmenu.d.tlua +266 -0
- package/dmenubar.d.tlua +42 -0
- package/dmenuoption.d.tlua +135 -0
- package/dmenuoptioncvar.d.tlua +64 -0
- package/dmodelpanel.d.tlua +207 -0
- package/dmodelselect.d.tlua +20 -0
- package/dmodelselectmulti.d.tlua +19 -0
- package/dnotify.d.tlua +93 -0
- package/dnumberscratch.d.tlua +284 -0
- package/dnumberwang.d.tlua +147 -0
- package/dnumpad.d.tlua +11 -0
- package/dnumslider.d.tlua +182 -0
- package/dpanel.d.tlua +152 -0
- package/dpanellist.d.tlua +109 -0
- package/dpaneloverlay.d.tlua +65 -0
- package/dpanelselect.d.tlua +13 -0
- package/dpanpanel.d.tlua +64 -0
- package/dprogress.d.tlua +27 -0
- package/dproperties.d.tlua +52 -0
- package/dproperty_boolean.d.tlua +12 -0
- package/dproperty_combo.d.tlua +31 -0
- package/dproperty_entity.d.tlua +12 -0
- package/dproperty_float.d.tlua +12 -0
- package/dproperty_generic.d.tlua +50 -0
- package/dproperty_int.d.tlua +12 -0
- package/dproperty_vectorcolor.d.tlua +14 -0
- package/dpropertysheet.d.tlua +167 -0
- package/dragndrop.d.tlua +123 -0
- package/draw.d.tlua +162 -0
- package/drgbpicker.d.tlua +49 -0
- package/drive.d.tlua +159 -0
- package/dscrollbargrip.d.tlua +13 -0
- package/dscrollpanel.d.tlua +110 -0
- package/dshape.d.tlua +72 -0
- package/dsizetocontents.d.tlua +46 -0
- package/dslider.d.tlua +302 -0
- package/dsprite.d.tlua +84 -0
- package/dtab.d.tlua +81 -0
- package/dtextentry.d.tlua +442 -0
- package/dtilelayout.d.tlua +218 -0
- package/dtooltip.d.tlua +76 -0
- package/dtree.d.tlua +185 -0
- package/dtree_node.d.tlua +793 -0
- package/dtree_node_button.d.tlua +13 -0
- package/duplicator.d.tlua +338 -0
- package/dverticaldivider.d.tlua +223 -0
- package/dvscrollbar.d.tlua +109 -0
- package/editablepanel.d.tlua +10 -0
- package/effect.d.tlua +121 -0
- package/effects.d.tlua +77 -0
- package/engine.d.tlua +248 -0
- package/entity.d.tlua +8295 -0
- package/ents.d.tlua +267 -0
- package/enums.d.tlua +7082 -0
- package/file.d.tlua +419 -0
- package/file_class.d.tlua +7 -0
- package/fingerposer.d.tlua +12 -0
- package/fingervar.d.tlua +13 -0
- package/frame.d.tlua +11 -0
- package/frame_blend.d.tlua +105 -0
- package/game.d.tlua +482 -0
- package/gameevent.d.tlua +968 -0
- package/gamemode.d.tlua +48 -0
- package/global.d.tlua +3156 -0
- package/gm.d.tlua +3218 -0
- package/gmod.d.tlua +20 -0
- package/gmsave.d.tlua +53 -0
- package/gui.d.tlua +232 -0
- package/gwen.d.tlua +55 -0
- package/halo.d.tlua +42 -0
- package/hammer.d.tlua +17 -0
- package/hook.d.tlua +64 -0
- package/html.d.tlua +22 -0
- package/http.d.tlua +72 -0
- package/iconeditor.d.tlua +130 -0
- package/igmodaudiochannel.d.tlua +419 -0
- package/imagecheckbox.d.tlua +48 -0
- package/imaterial.d.tlua +288 -0
- package/imesh.d.tlua +70 -0
- package/index.d.tlua +277 -0
- package/input.d.tlua +252 -0
- package/invalidateinternalentitycache.d.tlua +13 -0
- package/irestore.d.tlua +94 -0
- package/isave.d.tlua +94 -0
- package/itexture.d.tlua +108 -0
- package/ivideowriter.d.tlua +53 -0
- package/jit.d.tlua +243 -0
- package/killicon.d.tlua +84 -0
- package/label.d.tlua +20 -0
- package/language.d.tlua +26 -0
- package/list.d.tlua +112 -0
- package/makeballoon.d.tlua +15 -0
- package/markup.d.tlua +38 -0
- package/markupobject.d.tlua +53 -0
- package/material.d.tlua +9 -0
- package/math.d.tlua +899 -0
- package/matproxy.d.tlua +60 -0
- package/matselect.d.tlua +106 -0
- package/menu.d.tlua +20 -0
- package/menubar.d.tlua +39 -0
- package/mesh.d.tlua +183 -0
- package/modelimage.d.tlua +12 -0
- package/motionsensor.d.tlua +115 -0
- package/navmesh.d.tlua +274 -0
- package/net.d.tlua +639 -0
- package/nextbot.d.tlua +380 -0
- package/notification.d.tlua +35 -0
- package/npc.d.tlua +1787 -0
- package/numpad.d.tlua +89 -0
- package/os.d.tlua +56 -0
- package/package.d.tlua +15 -0
- package/package.json +18 -0
- package/panel.d.tlua +3650 -0
- package/panellist.d.tlua +13 -0
- package/pathfollower.d.tlua +301 -0
- package/permissions.d.tlua +77 -0
- package/physcollide.d.tlua +40 -0
- package/physenv.d.tlua +136 -0
- package/physobj.d.tlua +799 -0
- package/pixelvis_handle_t.d.tlua +9 -0
- package/player.d.tlua +3320 -0
- package/player_manager.d.tlua +147 -0
- package/preseteditor.d.tlua +13 -0
- package/presets.d.tlua +79 -0
- package/projectedtexture.d.tlua +553 -0
- package/properties.d.tlua +65 -0
- package/propselect.d.tlua +50 -0
- package/radiobutton.d.tlua +13 -0
- package/render.d.tlua +1700 -0
- package/resource.d.tlua +73 -0
- package/richtext.d.tlua +17 -0
- package/sandbox.d.tlua +576 -0
- package/saverestore.d.tlua +148 -0
- package/schedule.d.tlua +69 -0
- package/scripted_ents.d.tlua +124 -0
- package/search.d.tlua +26 -0
- package/serverlist.d.tlua +85 -0
- package/slidebar.d.tlua +12 -0
- package/slider.d.tlua +11 -0
- package/sound.d.tlua +140 -0
- package/spawnicon.d.tlua +95 -0
- package/spawnmenu.d.tlua +286 -0
- package/spawnmenucontentpanel.d.tlua +52 -0
- package/sql.d.tlua +154 -0
- package/stack.d.tlua +57 -0
- package/steamworks.d.tlua +208 -0
- package/string.d.tlua +535 -0
- package/structures.d.tlua +4442 -0
- package/surface.d.tlua +463 -0
- package/surfaceinfo.d.tlua +70 -0
- package/system.d.tlua +134 -0
- package/table.d.tlua +533 -0
- package/task.d.tlua +92 -0
- package/team.d.tlua +195 -0
- package/textentry.d.tlua +12 -0
- package/tgaimage.d.tlua +11 -0
- package/timer.d.tlua +198 -0
- package/tool.d.tlua +466 -0
- package/ugcpublishwindow.d.tlua +83 -0
- package/umsg.d.tlua +147 -0
- package/undo.d.tlua +122 -0
- package/urllabel.d.tlua +13 -0
- package/usermessage.d.tlua +48 -0
- package/utf8.d.tlua +89 -0
- package/util.d.tlua +1087 -0
- package/vector.d.tlua +413 -0
- package/vehicle.d.tlua +472 -0
- package/vgui.d.tlua +201 -0
- package/video.d.tlua +17 -0
- package/vmatrix.d.tlua +392 -0
- package/weapon.d.tlua +913 -0
- package/weapons.d.tlua +90 -0
- package/widgets.d.tlua +29 -0
- package/workshopfilebase.d.tlua +68 -0
package/dlabel.d.tlua
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A standard Derma text label. A lot of this panels functionality is a base for button elements, such as [DButton](https://wiki.facepunch.com/gmod/DButton)
|
|
5
|
+
*
|
|
6
|
+
* @realm client and menu
|
|
7
|
+
* @source https://wiki.facepunch.com/gmod/DLabel
|
|
8
|
+
*/
|
|
9
|
+
interface DLabel extends Label {}
|
|
10
|
+
|
|
11
|
+
interface DLabel {
|
|
12
|
+
/**
|
|
13
|
+
* Called just before [DLabel:DoClick](https://wiki.facepunch.com/gmod/DLabel:DoClick).
|
|
14
|
+
*
|
|
15
|
+
* In [DLabel](https://wiki.facepunch.com/gmod/DLabel) does nothing and is safe to override. Used by [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) and [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory)'s tabs.
|
|
16
|
+
*
|
|
17
|
+
* @realm client and menu
|
|
18
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:DoClickInternal
|
|
19
|
+
*/
|
|
20
|
+
DoClickInternal(self: DLabel): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface DLabel {
|
|
24
|
+
/**
|
|
25
|
+
* Called just before [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick). In [DLabel](https://wiki.facepunch.com/gmod/DLabel) does nothing and is safe to override.
|
|
26
|
+
* @realm client and menu
|
|
27
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:DoDoubleClickInternal
|
|
28
|
+
*/
|
|
29
|
+
DoDoubleClickInternal(self: DLabel): void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface DLabel {
|
|
33
|
+
/**
|
|
34
|
+
* Returns whether the label stretches vertically or not.
|
|
35
|
+
*
|
|
36
|
+
* Set by [DLabel:SetAutoStretchVertical](https://wiki.facepunch.com/gmod/DLabel:SetAutoStretchVertical).
|
|
37
|
+
*
|
|
38
|
+
* @realm client and menu
|
|
39
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetAutoStretchVertical
|
|
40
|
+
*/
|
|
41
|
+
GetAutoStretchVertical(self: DLabel): boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface DLabel {
|
|
45
|
+
/**
|
|
46
|
+
* Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's bright text color.
|
|
47
|
+
*
|
|
48
|
+
* See [DLabel:SetBright](https://wiki.facepunch.com/gmod/DLabel:SetBright).
|
|
49
|
+
*
|
|
50
|
+
* @realm client and menu
|
|
51
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetBright
|
|
52
|
+
*/
|
|
53
|
+
GetBright(self: DLabel): boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface DLabel {
|
|
57
|
+
/**
|
|
58
|
+
* Returns the actual color of the text.
|
|
59
|
+
*
|
|
60
|
+
* See also [DLabel:GetTextColor](https://wiki.facepunch.com/gmod/DLabel:GetTextColor) and [DLabel:GetTextStyleColor](https://wiki.facepunch.com/gmod/DLabel:GetTextStyleColor).
|
|
61
|
+
*
|
|
62
|
+
* @realm client and menu
|
|
63
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetColor
|
|
64
|
+
*/
|
|
65
|
+
GetColor(self: DLabel): Color;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface DLabel {
|
|
69
|
+
/**
|
|
70
|
+
* Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's dark text color.
|
|
71
|
+
*
|
|
72
|
+
* See [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark).
|
|
73
|
+
*
|
|
74
|
+
* @realm client and menu
|
|
75
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetDark
|
|
76
|
+
*/
|
|
77
|
+
GetDark(self: DLabel): boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface DLabel {
|
|
81
|
+
/**
|
|
82
|
+
* Gets the disabled state of the [DLabel](https://wiki.facepunch.com/gmod/DLabel). This is set with [DLabel:SetDisabled](https://wiki.facepunch.com/gmod/DLabel:SetDisabled).
|
|
83
|
+
*
|
|
84
|
+
* @realm client and menu
|
|
85
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetDisabled
|
|
86
|
+
* @deprecated Use Panel:IsEnabled instead.
|
|
87
|
+
*/
|
|
88
|
+
GetDisabled(self: DLabel): boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface DLabel {
|
|
92
|
+
/**
|
|
93
|
+
* Returns whether or not double clicking will call [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick).
|
|
94
|
+
*
|
|
95
|
+
* See [DLabel:SetDoubleClickingEnabled](https://wiki.facepunch.com/gmod/DLabel:SetDoubleClickingEnabled).
|
|
96
|
+
*
|
|
97
|
+
* @realm client and menu
|
|
98
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetDoubleClickingEnabled
|
|
99
|
+
*/
|
|
100
|
+
GetDoubleClickingEnabled(self: DLabel): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface DLabel {
|
|
104
|
+
/**
|
|
105
|
+
* Returns whether or not the panel background is being drawn. Alias of [DLabel:GetPaintBackground](https://wiki.facepunch.com/gmod/DLabel:GetPaintBackground).
|
|
106
|
+
* @realm client and menu
|
|
107
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetDrawBackground
|
|
108
|
+
* @deprecated You should use DLabel:GetPaintBackground instead.
|
|
109
|
+
*/
|
|
110
|
+
GetDrawBackground(self: DLabel): boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
interface DLabel {
|
|
114
|
+
/**
|
|
115
|
+
* Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's highlighted text color.
|
|
116
|
+
*
|
|
117
|
+
* See [DLabel:SetHighlight](https://wiki.facepunch.com/gmod/DLabel:SetHighlight).
|
|
118
|
+
*
|
|
119
|
+
* @realm client and menu
|
|
120
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetHighlight
|
|
121
|
+
*/
|
|
122
|
+
GetHighlight(self: DLabel): boolean;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface DLabel {
|
|
126
|
+
/**
|
|
127
|
+
* Used internally by [DComboBox](https://wiki.facepunch.com/gmod/DComboBox).
|
|
128
|
+
*
|
|
129
|
+
* Returns whether the frame is part of a derma menu or not.
|
|
130
|
+
*
|
|
131
|
+
* If this is `true`, [Global.CloseDermaMenus](https://wiki.facepunch.com/gmod/Global.CloseDermaMenus) will not be called when the frame is clicked, and thus any open menus will remain open.
|
|
132
|
+
*
|
|
133
|
+
* @realm client and menu
|
|
134
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetIsMenu
|
|
135
|
+
*/
|
|
136
|
+
GetIsMenu(self: DLabel): boolean;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface DLabel {
|
|
140
|
+
/**
|
|
141
|
+
* Returns whether the toggle functionality is enabled for a label. Set with [DLabel:SetIsToggle](https://wiki.facepunch.com/gmod/DLabel:SetIsToggle).
|
|
142
|
+
* @realm client and menu
|
|
143
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetIsToggle
|
|
144
|
+
*/
|
|
145
|
+
GetIsToggle(self: DLabel): boolean;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface DLabel {
|
|
149
|
+
/**
|
|
150
|
+
* Returns whether or not the background should be painted.
|
|
151
|
+
* @realm client and menu
|
|
152
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetPaintBackground
|
|
153
|
+
*/
|
|
154
|
+
GetPaintBackground(self: DLabel): boolean;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface DLabel {
|
|
158
|
+
/**
|
|
159
|
+
* Returns the "override" text color, set by [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
|
|
160
|
+
* @realm client and menu
|
|
161
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetTextColor
|
|
162
|
+
*/
|
|
163
|
+
GetTextColor(self: DLabel): Color;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface DLabel {
|
|
167
|
+
/**
|
|
168
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
169
|
+
*
|
|
170
|
+
*
|
|
171
|
+
* Returns the "internal" or fallback color of the text.
|
|
172
|
+
*
|
|
173
|
+
* See also [DLabel:GetTextColor](https://wiki.facepunch.com/gmod/DLabel:GetTextColor) and [DLabel:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabel:SetTextStyleColor).
|
|
174
|
+
*
|
|
175
|
+
* @realm client and menu
|
|
176
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetTextStyleColor
|
|
177
|
+
*/
|
|
178
|
+
GetTextStyleColor(self: DLabel): Color;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface DLabel {
|
|
182
|
+
/**
|
|
183
|
+
* Returns the current toggle state of the label. This can be set with [DLabel:SetToggle](https://wiki.facepunch.com/gmod/DLabel:SetToggle) and toggled with [DLabel:Toggle](https://wiki.facepunch.com/gmod/DLabel:Toggle).
|
|
184
|
+
*
|
|
185
|
+
* In order to use toggle functionality, you must first call [DLabel:SetIsToggle](https://wiki.facepunch.com/gmod/DLabel:SetIsToggle) with `true`, as it is disabled by default.
|
|
186
|
+
*
|
|
187
|
+
* @realm client and menu
|
|
188
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:GetToggle
|
|
189
|
+
*/
|
|
190
|
+
GetToggle(self: DLabel): boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface DLabel {
|
|
194
|
+
/**
|
|
195
|
+
* Automatically adjusts the height of the label dependent of the height of the text inside of it.
|
|
196
|
+
* @realm client and menu
|
|
197
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetAutoStretchVertical
|
|
198
|
+
*/
|
|
199
|
+
SetAutoStretchVertical(self: DLabel, stretch: boolean): void;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface DLabel {
|
|
203
|
+
/**
|
|
204
|
+
* Sets the color of the text to the bright text color defined in the skin.
|
|
205
|
+
*
|
|
206
|
+
* Disables [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark). Gets overridden by [DLabel:SetHighlight](https://wiki.facepunch.com/gmod/DLabel:SetHighlight).
|
|
207
|
+
*
|
|
208
|
+
* You should only consider using this if you are using background elements that are not manually painted and are using the skin colors. Otherwise use [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
|
|
209
|
+
*
|
|
210
|
+
* @realm client and menu
|
|
211
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetBright
|
|
212
|
+
*/
|
|
213
|
+
SetBright(self: DLabel, bright: boolean): void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface DLabel {
|
|
217
|
+
/**
|
|
218
|
+
* Changes color of label. Alias of [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
|
|
219
|
+
* @realm client and menu
|
|
220
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetColor
|
|
221
|
+
*/
|
|
222
|
+
SetColor(self: DLabel, color: Color): void;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface DLabel {
|
|
226
|
+
/**
|
|
227
|
+
* Sets the color of the text to the dark text color defined in the skin.
|
|
228
|
+
*
|
|
229
|
+
* Disables [DLabel:SetBright](https://wiki.facepunch.com/gmod/DLabel:SetBright). Gets overridden by [DLabel:SetHighlight](https://wiki.facepunch.com/gmod/DLabel:SetHighlight).
|
|
230
|
+
*
|
|
231
|
+
* You should only consider using this if you are using background elements that are not manually painted and are using the skin colors. Otherwise use [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
|
|
232
|
+
*
|
|
233
|
+
* @realm client and menu
|
|
234
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetDark
|
|
235
|
+
*/
|
|
236
|
+
SetDark(self: DLabel, dark: boolean): void;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface DLabel {
|
|
240
|
+
/**
|
|
241
|
+
* Sets the disabled state of the [DLabel](https://wiki.facepunch.com/gmod/DLabel).
|
|
242
|
+
*
|
|
243
|
+
* When disabled, the label does not respond to click, toggle or drag & drop actions.
|
|
244
|
+
*
|
|
245
|
+
* @realm client and menu
|
|
246
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetDisabled
|
|
247
|
+
* @deprecated Use Panel:SetEnabled instead.
|
|
248
|
+
*/
|
|
249
|
+
SetDisabled(self: DLabel, disable: boolean): void;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface DLabel {
|
|
253
|
+
/**
|
|
254
|
+
* Sets whether or not double clicking should call [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick).
|
|
255
|
+
*
|
|
256
|
+
* This is enabled by default.
|
|
257
|
+
*
|
|
258
|
+
* @realm client and menu
|
|
259
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetDoubleClickingEnabled
|
|
260
|
+
*/
|
|
261
|
+
SetDoubleClickingEnabled(self: DLabel, enable: boolean): void;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
interface DLabel {
|
|
265
|
+
/**
|
|
266
|
+
* Sets whether or not to draw the panel background. Alias of [DLabel:SetPaintBackground](https://wiki.facepunch.com/gmod/DLabel:SetPaintBackground).
|
|
267
|
+
* @realm client and menu
|
|
268
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetDrawBackground
|
|
269
|
+
* @deprecated You should use DLabel:SetPaintBackground instead.
|
|
270
|
+
*/
|
|
271
|
+
SetDrawBackground(self: DLabel, draw: boolean): void;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface DLabel {
|
|
275
|
+
/**
|
|
276
|
+
* Sets the color of the text to the highlight text color defined in the skin.
|
|
277
|
+
*
|
|
278
|
+
* For the default Derma skin this makes the label red.
|
|
279
|
+
*
|
|
280
|
+
* Overrides colors set by both [DLabel:SetBright](https://wiki.facepunch.com/gmod/DLabel:SetBright) and [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark) while active.
|
|
281
|
+
*
|
|
282
|
+
* You should only consider using this if you are using background elements that are not manually painted and are using the skin colors. Otherwise use [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
|
|
283
|
+
*
|
|
284
|
+
* @realm client and menu
|
|
285
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetHighlight
|
|
286
|
+
*/
|
|
287
|
+
SetHighlight(self: DLabel, highlight: boolean): void;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
interface DLabel {
|
|
291
|
+
/**
|
|
292
|
+
* Used internally by [DComboBox](https://wiki.facepunch.com/gmod/DComboBox).
|
|
293
|
+
*
|
|
294
|
+
*
|
|
295
|
+
* Sets whether the frame is part of a derma menu or not.
|
|
296
|
+
*
|
|
297
|
+
* If this is set to `true`, [Global.CloseDermaMenus](https://wiki.facepunch.com/gmod/Global.CloseDermaMenus) will not be called when the frame is clicked, and thus any open menus will remain open.
|
|
298
|
+
*
|
|
299
|
+
* @realm client and menu
|
|
300
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetIsMenu
|
|
301
|
+
*/
|
|
302
|
+
SetIsMenu(self: DLabel, isMenu: boolean): void;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
interface DLabel {
|
|
306
|
+
/**
|
|
307
|
+
* Enables or disables toggle functionality for a label. Retrieved with [DLabel:GetIsToggle](https://wiki.facepunch.com/gmod/DLabel:GetIsToggle).
|
|
308
|
+
*
|
|
309
|
+
* You must call this before using [DLabel:SetToggle](https://wiki.facepunch.com/gmod/DLabel:SetToggle), [DLabel:GetToggle](https://wiki.facepunch.com/gmod/DLabel:GetToggle) or [DLabel:Toggle](https://wiki.facepunch.com/gmod/DLabel:Toggle).
|
|
310
|
+
*
|
|
311
|
+
* @realm client and menu
|
|
312
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetIsToggle
|
|
313
|
+
*/
|
|
314
|
+
SetIsToggle(self: DLabel, allowToggle: boolean): void;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
interface DLabel {
|
|
318
|
+
/**
|
|
319
|
+
* Sets whether or not the background should be painted. This is mainly used by derivative classes, such as [DButton](https://wiki.facepunch.com/gmod/DButton).
|
|
320
|
+
* @realm client and menu
|
|
321
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetPaintBackground
|
|
322
|
+
*/
|
|
323
|
+
SetPaintBackground(self: DLabel, paint: boolean): void;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface DLabel {
|
|
327
|
+
/**
|
|
328
|
+
* **INTERNAL**: Use [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor) instead!
|
|
329
|
+
*
|
|
330
|
+
*
|
|
331
|
+
*
|
|
332
|
+
* Used by [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark), [DLabel:SetBright](https://wiki.facepunch.com/gmod/DLabel:SetBright) and [DLabel:SetHighlight](https://wiki.facepunch.com/gmod/DLabel:SetHighlight) to set the text color without affecting [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor) calls.
|
|
333
|
+
*
|
|
334
|
+
* @realm client and menu
|
|
335
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetTextStyleColor
|
|
336
|
+
*/
|
|
337
|
+
SetTextStyleColor(self: DLabel, color: Color): void;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
interface DLabel {
|
|
341
|
+
/**
|
|
342
|
+
* Sets the toggle state of the label. This can be retrieved with [DLabel:GetToggle](https://wiki.facepunch.com/gmod/DLabel:GetToggle) and toggled with [DLabel:Toggle](https://wiki.facepunch.com/gmod/DLabel:Toggle).
|
|
343
|
+
*
|
|
344
|
+
* In order to use toggle functionality, you must first call [DLabel:SetIsToggle](https://wiki.facepunch.com/gmod/DLabel:SetIsToggle) with `true`, as it is disabled by default.
|
|
345
|
+
*
|
|
346
|
+
* @realm client and menu
|
|
347
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:SetToggle
|
|
348
|
+
*/
|
|
349
|
+
SetToggle(self: DLabel, toggleState: boolean): void;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
interface DLabel {
|
|
353
|
+
/**
|
|
354
|
+
* Toggles the label's state. This can be set and retrieved with [DLabel:SetToggle](https://wiki.facepunch.com/gmod/DLabel:SetToggle) and [DLabel:GetToggle](https://wiki.facepunch.com/gmod/DLabel:GetToggle).
|
|
355
|
+
*
|
|
356
|
+
* In order to use toggle functionality, you must first call [DLabel:SetIsToggle](https://wiki.facepunch.com/gmod/DLabel:SetIsToggle) with `true`, as it is disabled by default.
|
|
357
|
+
*
|
|
358
|
+
* @realm client and menu
|
|
359
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:Toggle
|
|
360
|
+
*/
|
|
361
|
+
Toggle(self: DLabel): void;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
interface DLabel {
|
|
365
|
+
/**
|
|
366
|
+
* A hook called from within [PANEL:ApplySchemeSettings](https://wiki.facepunch.com/gmod/PANEL:ApplySchemeSettings) to determine the color of the text on display.
|
|
367
|
+
* @realm client and menu
|
|
368
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:UpdateColours
|
|
369
|
+
*/
|
|
370
|
+
UpdateColours(self: DLabel, skin: table): void;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
interface DLabel {
|
|
374
|
+
/**
|
|
375
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
376
|
+
*
|
|
377
|
+
*
|
|
378
|
+
* Called internally to update the color of the text.
|
|
379
|
+
*
|
|
380
|
+
* @realm client and menu
|
|
381
|
+
* @source https://wiki.facepunch.com/gmod/DLabel:UpdateFGColor
|
|
382
|
+
*/
|
|
383
|
+
UpdateFGColor(self: DLabel): void;
|
|
384
|
+
}
|
|
385
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An editable [DLabel](https://wiki.facepunch.com/gmod/DLabel), double click on it to edit.
|
|
5
|
+
*
|
|
6
|
+
* This is used in the spawnmenu spawnlist headers.
|
|
7
|
+
*
|
|
8
|
+
* @realm client
|
|
9
|
+
* @source https://wiki.facepunch.com/gmod/DLabelEditable
|
|
10
|
+
*/
|
|
11
|
+
interface DLabelEditable extends DLabel {}
|
|
12
|
+
|
|
13
|
+
interface DLabelEditable {
|
|
14
|
+
/**
|
|
15
|
+
* Returns whether the editable label will stretch to the text entered or not.
|
|
16
|
+
* @realm client
|
|
17
|
+
* @source https://wiki.facepunch.com/gmod/DLabelEditable:GetAutoStretch
|
|
18
|
+
*/
|
|
19
|
+
GetAutoStretch(self: DLabelEditable): boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface DLabelEditable {
|
|
23
|
+
/**
|
|
24
|
+
* Returns whether this [DLabelEditable](https://wiki.facepunch.com/gmod/DLabelEditable) is being edited or not. (i.e. has focus)
|
|
25
|
+
* @realm client and menu
|
|
26
|
+
* @source https://wiki.facepunch.com/gmod/DLabelEditable:IsEditing
|
|
27
|
+
*/
|
|
28
|
+
IsEditing(self: DLabelEditable): boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface DLabelEditable {
|
|
32
|
+
/**
|
|
33
|
+
* A hook called when the player presses Enter (i.e. the finished editing the label) and the text has changed.
|
|
34
|
+
*
|
|
35
|
+
* Allows you to override/modify the text that will be set to display.
|
|
36
|
+
*
|
|
37
|
+
* @realm client
|
|
38
|
+
* @source https://wiki.facepunch.com/gmod/DLabelEditable:OnLabelTextChanged
|
|
39
|
+
*/
|
|
40
|
+
OnLabelTextChanged(self: DLabelEditable, txt: string): string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface DLabelEditable {
|
|
44
|
+
/**
|
|
45
|
+
* Sets whether the editable label should stretch to the text entered or not.
|
|
46
|
+
* @realm client
|
|
47
|
+
* @source https://wiki.facepunch.com/gmod/DLabelEditable:SetAutoStretch
|
|
48
|
+
*/
|
|
49
|
+
SetAutoStretch(self: DLabelEditable, stretch: boolean): void;
|
|
50
|
+
}
|
|
51
|
+
|
package/dlabelurl.d.tlua
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Underlined link label without a DoClick function. When a valid URL is set and the label is clicked, it will open a browser window and navigate to the address.
|
|
5
|
+
*
|
|
6
|
+
* This panel uses [gui.OpenURL](https://wiki.facepunch.com/gmod/gui.OpenURL) internally and its restrictions apply.
|
|
7
|
+
*
|
|
8
|
+
* @realm client and menu
|
|
9
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL
|
|
10
|
+
*/
|
|
11
|
+
interface DLabelURL extends URLLabel {}
|
|
12
|
+
|
|
13
|
+
interface DLabelURL {
|
|
14
|
+
/**
|
|
15
|
+
* Does absolutely nothing at all.
|
|
16
|
+
*
|
|
17
|
+
* @realm client and menu
|
|
18
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:GetAutoStretchVertical
|
|
19
|
+
*/
|
|
20
|
+
GetAutoStretchVertical(self: DLabelURL): boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface DLabelURL {
|
|
24
|
+
/**
|
|
25
|
+
* Gets the current text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). Returns either [DLabelURL:GetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:GetTextColor) or if that is unset - [DLabelURL:GetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:GetTextStyleColor).
|
|
26
|
+
* @realm client and menu
|
|
27
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:GetColor
|
|
28
|
+
*/
|
|
29
|
+
GetColor(self: DLabelURL): Color;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface DLabelURL {
|
|
33
|
+
/**
|
|
34
|
+
* Gets the current text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL) set by [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
|
|
35
|
+
* @realm client and menu
|
|
36
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextColor
|
|
37
|
+
*/
|
|
38
|
+
GetTextColor(self: DLabelURL): Color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface DLabelURL {
|
|
42
|
+
/**
|
|
43
|
+
* Returns the color set by [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
|
|
44
|
+
* @realm client and menu
|
|
45
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextStyleColor
|
|
46
|
+
*/
|
|
47
|
+
GetTextStyleColor(self: DLabelURL): Color;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface DLabelURL {
|
|
51
|
+
/**
|
|
52
|
+
* Does absolutely nothing at all.
|
|
53
|
+
*
|
|
54
|
+
* @realm client and menu
|
|
55
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:SetAutoStretchVertical
|
|
56
|
+
*/
|
|
57
|
+
SetAutoStretchVertical(self: DLabelURL, draw: boolean): void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface DLabelURL {
|
|
61
|
+
/**
|
|
62
|
+
* Alias of [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
|
|
63
|
+
* @realm client and menu
|
|
64
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:SetColor
|
|
65
|
+
*/
|
|
66
|
+
SetColor(self: DLabelURL, col: Color): void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface DLabelURL {
|
|
70
|
+
/**
|
|
71
|
+
* Sets the text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). Overrides [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* This should only be used immediately after it is created, and otherwise [Panel:SetFGColor](https://wiki.facepunch.com/gmod/Panel:SetFGColor).
|
|
75
|
+
*
|
|
76
|
+
* @realm client and menu
|
|
77
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor
|
|
78
|
+
*/
|
|
79
|
+
SetTextColor(self: DLabelURL, col: Color): void;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface DLabelURL {
|
|
83
|
+
/**
|
|
84
|
+
* Sets the base text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). This is overridden by [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
|
|
85
|
+
* @realm client and menu
|
|
86
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor
|
|
87
|
+
*/
|
|
88
|
+
SetTextStyleColor(self: DLabelURL, color: Color): void;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface DLabelURL {
|
|
92
|
+
/**
|
|
93
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
94
|
+
* Used internally to set correct text color via [Panel:SetFGColor](https://wiki.facepunch.com/gmod/Panel:SetFGColor) and [DLabelURL:GetColor](https://wiki.facepunch.com/gmod/DLabelURL:GetColor).
|
|
95
|
+
* @realm client and menu
|
|
96
|
+
* @source https://wiki.facepunch.com/gmod/DLabelURL:UpdateFGColor
|
|
97
|
+
*/
|
|
98
|
+
UpdateFGColor(self: DLabelURL): void;
|
|
99
|
+
}
|
|
100
|
+
|
package/dlistbox.d.tlua
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A simple list box with optional multi-select.
|
|
5
|
+
* As this is deprecated, it is recommended that you use [DListView](https://wiki.facepunch.com/gmod/DListView), which contains the same functionality with multi-column options.
|
|
6
|
+
*
|
|
7
|
+
* @realm client
|
|
8
|
+
* @source https://wiki.facepunch.com/gmod/DListBox
|
|
9
|
+
* @deprecated Derived from the deprecated DPanelList.
|
|
10
|
+
*/
|
|
11
|
+
interface DListBox extends DPanelList {}
|
|
12
|
+
|
|
13
|
+
interface DListBox {
|
|
14
|
+
/**
|
|
15
|
+
* Returns whether the list box can select multiple items.
|
|
16
|
+
* @realm client and menu
|
|
17
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:GetMultiple
|
|
18
|
+
*/
|
|
19
|
+
GetMultiple(self: DListBox): boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface DListBox {
|
|
23
|
+
/**
|
|
24
|
+
* Returns selected items.
|
|
25
|
+
* @realm client and menu
|
|
26
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedItems
|
|
27
|
+
*/
|
|
28
|
+
GetSelectedItems(self: DListBox): table;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface DListBox {
|
|
32
|
+
/**
|
|
33
|
+
* Returns selected item values.
|
|
34
|
+
* @realm client and menu
|
|
35
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedValues
|
|
36
|
+
*/
|
|
37
|
+
GetSelectedValues(self: DListBox): table;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface DListBox {
|
|
41
|
+
/**
|
|
42
|
+
* Select a [DListBoxItem](https://wiki.facepunch.com/gmod/DListBoxItem) based on its value.
|
|
43
|
+
*
|
|
44
|
+
* @realm client and menu
|
|
45
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:SelectByName
|
|
46
|
+
*/
|
|
47
|
+
SelectByName(self: DListBox, val: string): void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface DListBox {
|
|
51
|
+
/**
|
|
52
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* Used internally to select a specific panel.
|
|
56
|
+
*
|
|
57
|
+
* @realm client and menu
|
|
58
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:SelectItem
|
|
59
|
+
*/
|
|
60
|
+
SelectItem(self: DListBox, item: Panel, onlyme: boolean): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface DListBox {
|
|
64
|
+
/**
|
|
65
|
+
* Sets whether the list box can select multiple items.
|
|
66
|
+
* @realm client and menu
|
|
67
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:SetMultiple
|
|
68
|
+
*/
|
|
69
|
+
SetMultiple(self: DListBox, multiple: boolean): void;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface DListBox {
|
|
73
|
+
/**
|
|
74
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
75
|
+
*
|
|
76
|
+
* Sets selected items.
|
|
77
|
+
* @realm client and menu
|
|
78
|
+
* @source https://wiki.facepunch.com/gmod/DListBox:SetSelectedItems
|
|
79
|
+
*/
|
|
80
|
+
SetSelectedItems(self: DListBox, items: table): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @realm client
|
|
5
|
+
* @source https://wiki.facepunch.com/gmod/DListBoxItem
|
|
6
|
+
* @deprecated Used Internally by DListBox.
|
|
7
|
+
*/
|
|
8
|
+
interface DListBoxItem extends DLabel {}
|
|
9
|
+
|
|
10
|
+
interface DListBoxItem {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the parent "mother" of this **DListBoxItem** set by [DListBoxItem:SetMother](https://wiki.facepunch.com/gmod/DListBoxItem:SetMother).
|
|
13
|
+
*
|
|
14
|
+
* @realm client
|
|
15
|
+
* @source https://wiki.facepunch.com/gmod/DListBoxItem:GetMother
|
|
16
|
+
*/
|
|
17
|
+
GetMother(self: DListBoxItem): Panel;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface DListBoxItem {
|
|
21
|
+
/**
|
|
22
|
+
* Selects this item.
|
|
23
|
+
*
|
|
24
|
+
* @realm client
|
|
25
|
+
* @source https://wiki.facepunch.com/gmod/DListBoxItem:Select
|
|
26
|
+
*/
|
|
27
|
+
Select(self: DListBoxItem, onlyMe: boolean): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface DListBoxItem {
|
|
31
|
+
/**
|
|
32
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* Sets the "mother" (parent) panel for this item. Done internally by [DListBox:AddItem](https://wiki.facepunch.com/gmod/DListBox:AddItem)
|
|
36
|
+
*
|
|
37
|
+
* @realm client
|
|
38
|
+
* @source https://wiki.facepunch.com/gmod/DListBoxItem:SetMother
|
|
39
|
+
*/
|
|
40
|
+
SetMother(self: DListBoxItem, parent: Panel): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A vertical list of panels that optionally allows child elements to be rearranged with the mouse cursor.
|
|
5
|
+
*
|
|
6
|
+
* Child panels' widths are set to the width of the DListLayout, and it resizes vertically to accommodate the heights of all children. You can place this inside a [DScrollPanel](https://wiki.facepunch.com/gmod/DScrollPanel) when adding many panels.
|
|
7
|
+
*
|
|
8
|
+
* To enable the drag & drop rearrangement functionality, call [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable) on the DListLayout with a unique identifier. All panels added following this will be moveable.
|
|
9
|
+
*
|
|
10
|
+
* @realm client and menu
|
|
11
|
+
* @source https://wiki.facepunch.com/gmod/DListLayout
|
|
12
|
+
*/
|
|
13
|
+
interface DListLayout extends DDragBase {}
|
|
14
|
+
|