@tlua/gmod 1.0.5 → 1.0.6
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/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/dtextentry.d.tlua
CHANGED
|
@@ -21,6 +21,7 @@ interface DTextEntry extends TextEntry {
|
|
|
21
21
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:AddHistory
|
|
22
22
|
*/
|
|
23
23
|
AddHistory(self: DTextEntry, text: string): void;
|
|
24
|
+
|
|
24
25
|
/**
|
|
25
26
|
* Called whenever the value of the panel has been updated (whether by user input or otherwise).
|
|
26
27
|
*
|
|
@@ -36,6 +37,7 @@ interface DTextEntry extends TextEntry {
|
|
|
36
37
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:AllowInput
|
|
37
38
|
*/
|
|
38
39
|
AllowInput(self: DTextEntry, char: string): boolean;
|
|
40
|
+
|
|
39
41
|
/**
|
|
40
42
|
* Returns whether a string is numeric or not.
|
|
41
43
|
* Always returns false if the [DTextEntry:SetNumeric](https://wiki.facepunch.com/gmod/DTextEntry:SetNumeric) is set to false.
|
|
@@ -44,18 +46,21 @@ interface DTextEntry extends TextEntry {
|
|
|
44
46
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:CheckNumeric
|
|
45
47
|
*/
|
|
46
48
|
CheckNumeric(self: DTextEntry, strValue: string): boolean;
|
|
49
|
+
|
|
47
50
|
/**
|
|
48
51
|
* Called by the DTextEntry when a list of autocompletion options is requested. Meant to be overridden.
|
|
49
52
|
* @realm client and menu
|
|
50
53
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetAutoComplete
|
|
51
54
|
*/
|
|
52
55
|
GetAutoComplete(self: DTextEntry, inputText: string): table;
|
|
56
|
+
|
|
53
57
|
/**
|
|
54
58
|
* Returns the cursor color of a DTextEntry.
|
|
55
59
|
* @realm client and menu
|
|
56
60
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetCursorColor
|
|
57
61
|
*/
|
|
58
62
|
GetCursorColor(self: DTextEntry): Color;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* Returns whether the textbox is disabled. Use [Panel:IsEnabled](https://wiki.facepunch.com/gmod/Panel:IsEnabled) instead.
|
|
61
66
|
*
|
|
@@ -64,6 +69,7 @@ interface DTextEntry extends TextEntry {
|
|
|
64
69
|
* @deprecated Use Panel:IsEnabled instead.
|
|
65
70
|
*/
|
|
66
71
|
GetDisabled(self: DTextEntry): boolean;
|
|
72
|
+
|
|
67
73
|
/**
|
|
68
74
|
* Alias of [DTextEntry:GetPaintBackground](https://wiki.facepunch.com/gmod/DTextEntry:GetPaintBackground). Use that instead.
|
|
69
75
|
*
|
|
@@ -72,6 +78,7 @@ interface DTextEntry extends TextEntry {
|
|
|
72
78
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetDrawBackground
|
|
73
79
|
*/
|
|
74
80
|
GetDrawBackground(self: DTextEntry): boolean;
|
|
81
|
+
|
|
75
82
|
/**
|
|
76
83
|
* Returns the value set by [DTextEntry:SetDrawBorder](https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBorder).
|
|
77
84
|
*
|
|
@@ -79,18 +86,21 @@ interface DTextEntry extends TextEntry {
|
|
|
79
86
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetDrawBorder
|
|
80
87
|
*/
|
|
81
88
|
GetDrawBorder(self: DTextEntry): boolean;
|
|
89
|
+
|
|
82
90
|
/**
|
|
83
91
|
* Returns whether pressing Enter can cause the panel to lose focus. Note that a multiline DTextEntry cannot be escaped using the Enter key even when this function returns true.
|
|
84
92
|
* @realm client and menu
|
|
85
93
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetEnterAllowed
|
|
86
94
|
*/
|
|
87
95
|
GetEnterAllowed(self: DTextEntry): boolean;
|
|
96
|
+
|
|
88
97
|
/**
|
|
89
98
|
* Returns the contents of the DTextEntry as a number.
|
|
90
99
|
* @realm client and menu
|
|
91
100
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetFloat
|
|
92
101
|
*/
|
|
93
102
|
GetFloat(self: DTextEntry): number;
|
|
103
|
+
|
|
94
104
|
/**
|
|
95
105
|
* Returns the highlight/text selection color of the text entry. If it was not overwritten, it will return the derma skin value. (`colTextEntryTextHighlight`)
|
|
96
106
|
*
|
|
@@ -98,6 +108,7 @@ interface DTextEntry extends TextEntry {
|
|
|
98
108
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetHighlightColor
|
|
99
109
|
*/
|
|
100
110
|
GetHighlightColor(self: DTextEntry): Color;
|
|
111
|
+
|
|
101
112
|
/**
|
|
102
113
|
* Returns whether the history functionality of [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) is enabled. See [DTextEntry:AddHistory](https://wiki.facepunch.com/gmod/DTextEntry:AddHistory).
|
|
103
114
|
*
|
|
@@ -105,60 +116,70 @@ interface DTextEntry extends TextEntry {
|
|
|
105
116
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetHistoryEnabled
|
|
106
117
|
*/
|
|
107
118
|
GetHistoryEnabled(self: DTextEntry): boolean;
|
|
119
|
+
|
|
108
120
|
/**
|
|
109
121
|
* Similar to [DTextEntry:GetFloat](https://wiki.facepunch.com/gmod/DTextEntry:GetFloat), but rounds the value to the nearest integer.
|
|
110
122
|
* @realm client and menu
|
|
111
123
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetInt
|
|
112
124
|
*/
|
|
113
125
|
GetInt(self: DTextEntry): number;
|
|
126
|
+
|
|
114
127
|
/**
|
|
115
128
|
* Returns whether only numeric characters (`123456789.-`) can be entered into the DTextEntry.
|
|
116
129
|
* @realm client and menu
|
|
117
130
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetNumeric
|
|
118
131
|
*/
|
|
119
132
|
GetNumeric(self: DTextEntry): boolean;
|
|
133
|
+
|
|
120
134
|
/**
|
|
121
135
|
* Whether the background is displayed or not
|
|
122
136
|
* @realm client and menu
|
|
123
137
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetPaintBackground
|
|
124
138
|
*/
|
|
125
139
|
GetPaintBackground(self: DTextEntry): boolean;
|
|
140
|
+
|
|
126
141
|
/**
|
|
127
142
|
* Return current color of panel placeholder
|
|
128
143
|
* @realm client and menu
|
|
129
144
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetPlaceholderColor
|
|
130
145
|
*/
|
|
131
146
|
GetPlaceholderColor(self: DTextEntry): Color;
|
|
147
|
+
|
|
132
148
|
/**
|
|
133
149
|
* Returns the placeholder text set with [DTextEntry:SetPlaceholderText](https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderText).
|
|
134
150
|
* @realm client and menu
|
|
135
151
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetPlaceholderText
|
|
136
152
|
*/
|
|
137
153
|
GetPlaceholderText(self: DTextEntry): string;
|
|
154
|
+
|
|
138
155
|
/**
|
|
139
156
|
* Returns whether or not the panel accepts tab key.
|
|
140
157
|
* @realm client and menu
|
|
141
158
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetTabbingDisabled
|
|
142
159
|
*/
|
|
143
160
|
GetTabbingDisabled(self: DTextEntry): boolean;
|
|
161
|
+
|
|
144
162
|
/**
|
|
145
163
|
* Returns the text color of a DTextEntry.
|
|
146
164
|
* @realm client and menu
|
|
147
165
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetTextColor
|
|
148
166
|
*/
|
|
149
167
|
GetTextColor(self: DTextEntry): Color;
|
|
168
|
+
|
|
150
169
|
/**
|
|
151
170
|
* Returns whether the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) is set to run [DTextEntry:OnValueChange](https://wiki.facepunch.com/gmod/DTextEntry:OnValueChange) every time a character is typed or deleted or only when Enter is pressed.
|
|
152
171
|
* @realm client and menu
|
|
153
172
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:GetUpdateOnType
|
|
154
173
|
*/
|
|
155
174
|
GetUpdateOnType(self: DTextEntry): boolean;
|
|
175
|
+
|
|
156
176
|
/**
|
|
157
177
|
* Returns whether this DTextEntry is being edited or not. (i.e. has focus)
|
|
158
178
|
* @realm client and menu
|
|
159
179
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:IsEditing
|
|
160
180
|
*/
|
|
161
181
|
IsEditing(self: DTextEntry): boolean;
|
|
182
|
+
|
|
162
183
|
/**
|
|
163
184
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
164
185
|
*
|
|
@@ -170,6 +191,7 @@ interface DTextEntry extends TextEntry {
|
|
|
170
191
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:OnTextChanged
|
|
171
192
|
*/
|
|
172
193
|
OnTextChanged(self: DTextEntry, noMenuRemoval: boolean): void;
|
|
194
|
+
|
|
173
195
|
/**
|
|
174
196
|
* **INTERNAL**: You really should be using [DTextEntry:GetAutoComplete](https://wiki.facepunch.com/gmod/DTextEntry:GetAutoComplete) instead.
|
|
175
197
|
*
|
|
@@ -179,12 +201,14 @@ interface DTextEntry extends TextEntry {
|
|
|
179
201
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:OpenAutoComplete
|
|
180
202
|
*/
|
|
181
203
|
OpenAutoComplete(self: DTextEntry, tab: table): void;
|
|
204
|
+
|
|
182
205
|
/**
|
|
183
206
|
* Sets the cursor's color in DTextEntry (the blinking line).
|
|
184
207
|
* @realm client and menu
|
|
185
208
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetCursorColor
|
|
186
209
|
*/
|
|
187
210
|
SetCursorColor(self: DTextEntry, color: Color): void;
|
|
211
|
+
|
|
188
212
|
/**
|
|
189
213
|
* Disables input on a DTextEntry and greys it out visually. This differs from [DTextEntry:SetEditable](https://wiki.facepunch.com/gmod/DTextEntry:SetEditable) which doesn't visually change the textbox.
|
|
190
214
|
*
|
|
@@ -193,12 +217,14 @@ interface DTextEntry extends TextEntry {
|
|
|
193
217
|
* @deprecated Use Panel:SetEnabled instead.
|
|
194
218
|
*/
|
|
195
219
|
SetDisabled(self: DTextEntry, disabled: boolean): void;
|
|
220
|
+
|
|
196
221
|
/**
|
|
197
222
|
* Alias of [DTextEntry:SetPaintBackground](https://wiki.facepunch.com/gmod/DTextEntry:SetPaintBackground). Use that instead.
|
|
198
223
|
* @realm client and menu
|
|
199
224
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBackground
|
|
200
225
|
*/
|
|
201
226
|
SetDrawBackground(self: DTextEntry, show: boolean): void;
|
|
227
|
+
|
|
202
228
|
/**
|
|
203
229
|
* Does nothing.
|
|
204
230
|
*
|
|
@@ -206,24 +232,28 @@ interface DTextEntry extends TextEntry {
|
|
|
206
232
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetDrawBorder
|
|
207
233
|
*/
|
|
208
234
|
SetDrawBorder(self: DTextEntry, bool: boolean): void;
|
|
235
|
+
|
|
209
236
|
/**
|
|
210
237
|
* Disables Input on a DTextEntry. This differs from [DTextEntry:SetDisabled](https://wiki.facepunch.com/gmod/DTextEntry:SetDisabled) - SetEditable will not affect the appearance of the textbox.
|
|
211
238
|
* @realm client and menu
|
|
212
239
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetEditable
|
|
213
240
|
*/
|
|
214
241
|
SetEditable(self: DTextEntry, enabled: boolean): void;
|
|
242
|
+
|
|
215
243
|
/**
|
|
216
244
|
* Sets whether pressing the Enter key will cause the DTextEntry to lose focus or not, provided it is not multiline. This is true by default.
|
|
217
245
|
* @realm client and menu
|
|
218
246
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetEnterAllowed
|
|
219
247
|
*/
|
|
220
248
|
SetEnterAllowed(self: DTextEntry, allowEnter: boolean): void;
|
|
249
|
+
|
|
221
250
|
/**
|
|
222
251
|
* Changes the font of the DTextEntry.
|
|
223
252
|
* @realm client and menu
|
|
224
253
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetFont
|
|
225
254
|
*/
|
|
226
255
|
SetFont(self: DTextEntry, font: string): void;
|
|
256
|
+
|
|
227
257
|
/**
|
|
228
258
|
* Sets/overrides the default highlight/text selection color of the text entry.
|
|
229
259
|
*
|
|
@@ -231,6 +261,7 @@ interface DTextEntry extends TextEntry {
|
|
|
231
261
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetHighlightColor
|
|
232
262
|
*/
|
|
233
263
|
SetHighlightColor(self: DTextEntry, color: Color): void;
|
|
264
|
+
|
|
234
265
|
/**
|
|
235
266
|
* Enables or disables the history functionality of [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry). This allows the player to scroll through history elements using up and down arrow keys.
|
|
236
267
|
*
|
|
@@ -240,6 +271,7 @@ interface DTextEntry extends TextEntry {
|
|
|
240
271
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetHistoryEnabled
|
|
241
272
|
*/
|
|
242
273
|
SetHistoryEnabled(self: DTextEntry, enable: boolean): void;
|
|
274
|
+
|
|
243
275
|
/**
|
|
244
276
|
* Sets whether or not to decline non-numeric characters as input.
|
|
245
277
|
*
|
|
@@ -249,24 +281,28 @@ interface DTextEntry extends TextEntry {
|
|
|
249
281
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetNumeric
|
|
250
282
|
*/
|
|
251
283
|
SetNumeric(self: DTextEntry, numericOnly: boolean): void;
|
|
284
|
+
|
|
252
285
|
/**
|
|
253
286
|
* Sets whether to show the default background of the DTextEntry.
|
|
254
287
|
* @realm client and menu
|
|
255
288
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetPaintBackground
|
|
256
289
|
*/
|
|
257
290
|
SetPaintBackground(self: DTextEntry, show: boolean): void;
|
|
291
|
+
|
|
258
292
|
/**
|
|
259
293
|
* Allow you to set placeholder color.
|
|
260
294
|
* @realm client and menu
|
|
261
295
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderColor
|
|
262
296
|
*/
|
|
263
297
|
SetPlaceholderColor(self: DTextEntry, color?: Color): void;
|
|
298
|
+
|
|
264
299
|
/**
|
|
265
300
|
* Sets the placeholder text that will be shown while the text entry has no user text. The player will not need to delete the placeholder text if they decide to start typing.
|
|
266
301
|
* @realm client and menu
|
|
267
302
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetPlaceholderText
|
|
268
303
|
*/
|
|
269
304
|
SetPlaceholderText(self: DTextEntry, text?: string): void;
|
|
305
|
+
|
|
270
306
|
/**
|
|
271
307
|
* Sets whether or not the panel accepts tab key.
|
|
272
308
|
* **NOTE**: Disabling tab key prevents the panel from unfocusing by mouse, however, still works for focusing to other keyboard focus.
|
|
@@ -275,18 +311,21 @@ interface DTextEntry extends TextEntry {
|
|
|
275
311
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetTabbingDisabled
|
|
276
312
|
*/
|
|
277
313
|
SetTabbingDisabled(self: DTextEntry, enabled: boolean): void;
|
|
314
|
+
|
|
278
315
|
/**
|
|
279
316
|
* Sets the text color of the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry).
|
|
280
317
|
* @realm client and menu
|
|
281
318
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetTextColor
|
|
282
319
|
*/
|
|
283
320
|
SetTextColor(self: DTextEntry, color: Color): void;
|
|
321
|
+
|
|
284
322
|
/**
|
|
285
323
|
* Sets whether we should fire [DTextEntry:OnValueChange](https://wiki.facepunch.com/gmod/DTextEntry:OnValueChange) every time we type or delete a character or only when Enter is pressed.
|
|
286
324
|
* @realm client and menu
|
|
287
325
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:SetUpdateOnType
|
|
288
326
|
*/
|
|
289
327
|
SetUpdateOnType(self: DTextEntry, updateOnType: boolean): void;
|
|
328
|
+
|
|
290
329
|
/**
|
|
291
330
|
* **INTERNAL**: Used by [DTextEntry:OnTextChanged](https://wiki.facepunch.com/gmod/DTextEntry:OnTextChanged), [DTextEntry:OnEnter](https://wiki.facepunch.com/gmod/DTextEntry:OnEnter) and [DTextEntry:OnLoseFocus](https://wiki.facepunch.com/gmod/DTextEntry:OnLoseFocus)
|
|
292
331
|
*
|
|
@@ -297,6 +336,7 @@ interface DTextEntry extends TextEntry {
|
|
|
297
336
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:UpdateConvarValue
|
|
298
337
|
*/
|
|
299
338
|
UpdateConvarValue(self: DTextEntry): void;
|
|
339
|
+
|
|
300
340
|
/**
|
|
301
341
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
302
342
|
*
|
|
@@ -305,6 +345,7 @@ interface DTextEntry extends TextEntry {
|
|
|
305
345
|
* @source https://wiki.facepunch.com/gmod/DTextEntry:UpdateFromHistory
|
|
306
346
|
*/
|
|
307
347
|
UpdateFromHistory(self: DTextEntry): void;
|
|
348
|
+
|
|
308
349
|
/**
|
|
309
350
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
310
351
|
*
|
|
@@ -314,46 +355,3 @@ interface DTextEntry extends TextEntry {
|
|
|
314
355
|
*/
|
|
315
356
|
UpdateFromMenu(self: DTextEntry): void;
|
|
316
357
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
package/types/dtilelayout.d.tlua
CHANGED
|
@@ -32,6 +32,7 @@ interface DTileLayout extends DDragBase {
|
|
|
32
32
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:ClearTiles
|
|
33
33
|
*/
|
|
34
34
|
ClearTiles(self: DTileLayout): void;
|
|
35
|
+
|
|
35
36
|
/**
|
|
36
37
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
37
38
|
* Called to designate a range of tiles as occupied by a panel.
|
|
@@ -39,18 +40,21 @@ interface DTileLayout extends DDragBase {
|
|
|
39
40
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:ConsumeTiles
|
|
40
41
|
*/
|
|
41
42
|
ConsumeTiles(self: DTileLayout, x: number, y: number, w: number, h: number): void;
|
|
43
|
+
|
|
42
44
|
/**
|
|
43
45
|
* Creates and returns an exact copy of the DTileLayout.
|
|
44
46
|
* @realm client
|
|
45
47
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:Copy
|
|
46
48
|
*/
|
|
47
49
|
Copy(self: DTileLayout): Panel;
|
|
50
|
+
|
|
48
51
|
/**
|
|
49
52
|
* Creates copies of all the children from the given panel object and parents them to this one.
|
|
50
53
|
* @realm client
|
|
51
54
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:CopyContents
|
|
52
55
|
*/
|
|
53
56
|
CopyContents(self: DTileLayout, source: Panel): void;
|
|
57
|
+
|
|
54
58
|
/**
|
|
55
59
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
56
60
|
* Finds the coordinates of the first group of free tiles that fit the given size.
|
|
@@ -58,6 +62,7 @@ interface DTileLayout extends DDragBase {
|
|
|
58
62
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:FindFreeTile
|
|
59
63
|
*/
|
|
60
64
|
FindFreeTile(self: DTileLayout, x: number, y: number, w: number, h: number): (number, number);
|
|
65
|
+
|
|
61
66
|
/**
|
|
62
67
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
63
68
|
* Determines if a group of tiles is vacant.
|
|
@@ -65,36 +70,42 @@ interface DTileLayout extends DDragBase {
|
|
|
65
70
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:FitsInTile
|
|
66
71
|
*/
|
|
67
72
|
FitsInTile(self: DTileLayout, x: number, y: number, w: number, h: number): boolean;
|
|
73
|
+
|
|
68
74
|
/**
|
|
69
75
|
* Returns the size of each single tile, set with [DTileLayout:SetBaseSize](https://wiki.facepunch.com/gmod/DTileLayout:SetBaseSize).
|
|
70
76
|
* @realm client
|
|
71
77
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetBaseSize
|
|
72
78
|
*/
|
|
73
79
|
GetBaseSize(self: DTileLayout): number;
|
|
80
|
+
|
|
74
81
|
/**
|
|
75
82
|
* Returns the border spacing set by [DTileLayout:SetBorder](https://wiki.facepunch.com/gmod/DTileLayout:SetBorder).
|
|
76
83
|
* @realm client
|
|
77
84
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetBorder
|
|
78
85
|
*/
|
|
79
86
|
GetBorder(self: DTileLayout): number;
|
|
87
|
+
|
|
80
88
|
/**
|
|
81
89
|
* Returns the minimum height the DTileLayout can resize to.
|
|
82
90
|
* @realm client
|
|
83
91
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetMinHeight
|
|
84
92
|
*/
|
|
85
93
|
GetMinHeight(self: DTileLayout): number;
|
|
94
|
+
|
|
86
95
|
/**
|
|
87
96
|
* Returns the X axis spacing between 2 elements set by [DTileLayout:SetSpaceX](https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceX).
|
|
88
97
|
* @realm client
|
|
89
98
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetSpaceX
|
|
90
99
|
*/
|
|
91
100
|
GetSpaceX(self: DTileLayout): number;
|
|
101
|
+
|
|
92
102
|
/**
|
|
93
103
|
* Returns the Y axis spacing between 2 elements set by [DTileLayout:SetSpaceY](https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceY).
|
|
94
104
|
* @realm client
|
|
95
105
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetSpaceY
|
|
96
106
|
*/
|
|
97
107
|
GetSpaceY(self: DTileLayout): number;
|
|
108
|
+
|
|
98
109
|
/**
|
|
99
110
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
100
111
|
* Gets the occupied state of a tile.
|
|
@@ -102,12 +113,14 @@ interface DTileLayout extends DDragBase {
|
|
|
102
113
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetTile
|
|
103
114
|
*/
|
|
104
115
|
GetTile(self: DTileLayout, x: number, y: number): any;
|
|
116
|
+
|
|
105
117
|
/**
|
|
106
118
|
* Resets the last width/height info, and invalidates the panel's layout, causing it to recalculate all child positions. It is called whenever a child is added or removed, and can be called to refresh the panel.
|
|
107
119
|
* @realm client
|
|
108
120
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:Layout
|
|
109
121
|
*/
|
|
110
122
|
Layout(self: DTileLayout): void;
|
|
123
|
+
|
|
111
124
|
/**
|
|
112
125
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
113
126
|
* Called by [PANEL:PerformLayout](https://wiki.facepunch.com/gmod/PANEL:PerformLayout) to arrange and lay out the child panels, if it has changed in size.
|
|
@@ -115,6 +128,7 @@ interface DTileLayout extends DDragBase {
|
|
|
115
128
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:LayoutTiles
|
|
116
129
|
*/
|
|
117
130
|
LayoutTiles(self: DTileLayout): void;
|
|
131
|
+
|
|
118
132
|
/**
|
|
119
133
|
* Sets the size of a single tile. If a child panel is larger than this size, it will occupy several tiles.
|
|
120
134
|
*
|
|
@@ -124,30 +138,35 @@ interface DTileLayout extends DDragBase {
|
|
|
124
138
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetBaseSize
|
|
125
139
|
*/
|
|
126
140
|
SetBaseSize(self: DTileLayout, size: number): void;
|
|
141
|
+
|
|
127
142
|
/**
|
|
128
143
|
* Sets the spacing between the border/edge of the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) and all the elements inside.
|
|
129
144
|
* @realm client
|
|
130
145
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetBorder
|
|
131
146
|
*/
|
|
132
147
|
SetBorder(self: DTileLayout, border: number): void;
|
|
148
|
+
|
|
133
149
|
/**
|
|
134
150
|
* Determines the minimum height the DTileLayout will resize to. This is useful if child panels will be added/removed often.
|
|
135
151
|
* @realm client
|
|
136
152
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetMinHeight
|
|
137
153
|
*/
|
|
138
154
|
SetMinHeight(self: DTileLayout, minH: number): void;
|
|
155
|
+
|
|
139
156
|
/**
|
|
140
157
|
* Sets the spacing between 2 elements in the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) on the X axis.
|
|
141
158
|
* @realm client
|
|
142
159
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceX
|
|
143
160
|
*/
|
|
144
161
|
SetSpaceX(self: DTileLayout, spacingX: number): void;
|
|
162
|
+
|
|
145
163
|
/**
|
|
146
164
|
* Sets the spacing between 2 elements in the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) on the Y axis.
|
|
147
165
|
* @realm client
|
|
148
166
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceY
|
|
149
167
|
*/
|
|
150
168
|
SetSpaceY(self: DTileLayout, spaceY: number): void;
|
|
169
|
+
|
|
151
170
|
/**
|
|
152
171
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
153
172
|
* Called to set the occupied state of a tile.
|
|
@@ -156,24 +175,3 @@ interface DTileLayout extends DDragBase {
|
|
|
156
175
|
*/
|
|
157
176
|
SetTile(self: DTileLayout, x: number, y: number, state: any): void;
|
|
158
177
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
package/types/dtooltip.d.tlua
CHANGED
|
@@ -18,6 +18,7 @@ interface DTooltip extends DLabel {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/DTooltip:Close
|
|
19
19
|
*/
|
|
20
20
|
Close(self: DTooltip): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Used to draw a triangle beneath the [DTooltip](https://wiki.facepunch.com/gmod/DTooltip)
|
|
23
24
|
* **NOTE**: Requires [DTooltip:SetContents](https://wiki.facepunch.com/gmod/DTooltip:SetContents), without this it will error
|
|
@@ -27,6 +28,7 @@ interface DTooltip extends DLabel {
|
|
|
27
28
|
* @source https://wiki.facepunch.com/gmod/DTooltip:DrawArrow
|
|
28
29
|
*/
|
|
29
30
|
DrawArrow(self: DTooltip, x: number, y: number): void;
|
|
31
|
+
|
|
30
32
|
/**
|
|
31
33
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
32
34
|
*
|
|
@@ -38,6 +40,7 @@ interface DTooltip extends DLabel {
|
|
|
38
40
|
* @source https://wiki.facepunch.com/gmod/DTooltip:OpenForPanel
|
|
39
41
|
*/
|
|
40
42
|
OpenForPanel(self: DTooltip, pnl: Panel): void;
|
|
43
|
+
|
|
41
44
|
/**
|
|
42
45
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
43
46
|
*
|
|
@@ -48,6 +51,7 @@ interface DTooltip extends DLabel {
|
|
|
48
51
|
* @source https://wiki.facepunch.com/gmod/DTooltip:PositionTooltip
|
|
49
52
|
*/
|
|
50
53
|
PositionTooltip(self: DTooltip): void;
|
|
54
|
+
|
|
51
55
|
/**
|
|
52
56
|
* What Panel you want put inside of the [DTooltip](https://wiki.facepunch.com/gmod/DTooltip)
|
|
53
57
|
*
|
|
@@ -59,9 +63,3 @@ interface DTooltip extends DLabel {
|
|
|
59
63
|
*/
|
|
60
64
|
SetContents(self: DTooltip, panel: Panel, _delete?: boolean): void;
|
|
61
65
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
package/types/dtree.d.tlua
CHANGED
|
@@ -15,6 +15,7 @@ interface DTree extends DScrollPanel {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/DTree:AddNode
|
|
16
16
|
*/
|
|
17
17
|
AddNode(self: DTree, name: string, icon?: string): Panel;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
20
21
|
*
|
|
@@ -27,12 +28,14 @@ interface DTree extends DScrollPanel {
|
|
|
27
28
|
* @source https://wiki.facepunch.com/gmod/DTree:ExpandTo
|
|
28
29
|
*/
|
|
29
30
|
ExpandTo(self: DTree, bExpand: boolean): void;
|
|
31
|
+
|
|
30
32
|
/**
|
|
31
33
|
* Returns the status of [DTree:SetClickOnDragHover](https://wiki.facepunch.com/gmod/DTree:SetClickOnDragHover). See that for more info.
|
|
32
34
|
* @realm client and menu
|
|
33
35
|
* @source https://wiki.facepunch.com/gmod/DTree:GetClickOnDragHover
|
|
34
36
|
*/
|
|
35
37
|
GetClickOnDragHover(self: DTree): boolean;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* Returns the indentation size of the [DTree](https://wiki.facepunch.com/gmod/DTree), the distance between each "level" of the tree is offset on the left from the previous level.
|
|
38
41
|
*
|
|
@@ -42,12 +45,14 @@ interface DTree extends DScrollPanel {
|
|
|
42
45
|
* @source https://wiki.facepunch.com/gmod/DTree:GetIndentSize
|
|
43
46
|
*/
|
|
44
47
|
GetIndentSize(self: DTree): number;
|
|
48
|
+
|
|
45
49
|
/**
|
|
46
50
|
* Returns the currently selected node.
|
|
47
51
|
* @realm client and menu
|
|
48
52
|
* @source https://wiki.facepunch.com/gmod/DTree:GetSelectedItem
|
|
49
53
|
*/
|
|
50
54
|
GetSelectedItem(self: DTree): Panel;
|
|
55
|
+
|
|
51
56
|
/**
|
|
52
57
|
* Returns whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
53
58
|
*
|
|
@@ -57,6 +62,7 @@ interface DTree extends DScrollPanel {
|
|
|
57
62
|
* @source https://wiki.facepunch.com/gmod/DTree:GetShowIcons
|
|
58
63
|
*/
|
|
59
64
|
GetShowIcons(self: DTree): boolean;
|
|
65
|
+
|
|
60
66
|
/**
|
|
61
67
|
* Does nothing.
|
|
62
68
|
*
|
|
@@ -64,6 +70,7 @@ interface DTree extends DScrollPanel {
|
|
|
64
70
|
* @source https://wiki.facepunch.com/gmod/DTree:LayoutTree
|
|
65
71
|
*/
|
|
66
72
|
LayoutTree(self: DTree): void;
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* Moves given node to the top of [DTree](https://wiki.facepunch.com/gmod/DTree)s children. (Makes it the topmost mode)
|
|
69
76
|
*
|
|
@@ -75,12 +82,14 @@ interface DTree extends DScrollPanel {
|
|
|
75
82
|
* @source https://wiki.facepunch.com/gmod/DTree:MoveChildTo
|
|
76
83
|
*/
|
|
77
84
|
MoveChildTo(self: DTree, child: Panel, pos: number): void;
|
|
85
|
+
|
|
78
86
|
/**
|
|
79
87
|
* Returns the root [DTree_Node](https://wiki.facepunch.com/gmod/DTree_Node), the node that is the parent to all other nodes of the DTree.
|
|
80
88
|
* @realm client and menu
|
|
81
89
|
* @source https://wiki.facepunch.com/gmod/DTree:Root
|
|
82
90
|
*/
|
|
83
91
|
Root(self: DTree): Panel;
|
|
92
|
+
|
|
84
93
|
/**
|
|
85
94
|
* Enables the "click when drag-hovering" functionality.
|
|
86
95
|
*
|
|
@@ -92,6 +101,7 @@ interface DTree extends DScrollPanel {
|
|
|
92
101
|
* @source https://wiki.facepunch.com/gmod/DTree:SetClickOnDragHover
|
|
93
102
|
*/
|
|
94
103
|
SetClickOnDragHover(self: DTree, enable: boolean): void;
|
|
104
|
+
|
|
95
105
|
/**
|
|
96
106
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
97
107
|
*
|
|
@@ -104,6 +114,7 @@ interface DTree extends DScrollPanel {
|
|
|
104
114
|
* @source https://wiki.facepunch.com/gmod/DTree:SetExpanded
|
|
105
115
|
*/
|
|
106
116
|
SetExpanded(self: DTree, bExpand: boolean): void;
|
|
117
|
+
|
|
107
118
|
/**
|
|
108
119
|
* Sets the indentation size of the [DTree](https://wiki.facepunch.com/gmod/DTree), the distance between each "level" of the tree is offset on the left from the previous level.
|
|
109
120
|
*
|
|
@@ -113,12 +124,14 @@ interface DTree extends DScrollPanel {
|
|
|
113
124
|
* @source https://wiki.facepunch.com/gmod/DTree:SetIndentSize
|
|
114
125
|
*/
|
|
115
126
|
SetIndentSize(self: DTree, size: number): void;
|
|
127
|
+
|
|
116
128
|
/**
|
|
117
129
|
* Set the currently selected top-level node.
|
|
118
130
|
* @realm client and menu
|
|
119
131
|
* @source https://wiki.facepunch.com/gmod/DTree:SetSelectedItem
|
|
120
132
|
*/
|
|
121
133
|
SetSelectedItem(self: DTree, node: Panel): void;
|
|
134
|
+
|
|
122
135
|
/**
|
|
123
136
|
* Sets whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
124
137
|
*
|
|
@@ -128,6 +141,7 @@ interface DTree extends DScrollPanel {
|
|
|
128
141
|
* @source https://wiki.facepunch.com/gmod/DTree:SetShowIcons
|
|
129
142
|
*/
|
|
130
143
|
SetShowIcons(self: DTree, show: boolean): void;
|
|
144
|
+
|
|
131
145
|
/**
|
|
132
146
|
* Returns whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
133
147
|
*
|
|
@@ -138,19 +152,3 @@ interface DTree extends DScrollPanel {
|
|
|
138
152
|
*/
|
|
139
153
|
ShowIcons(self: DTree): boolean;
|
|
140
154
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|