@tlua/gmod 1.0.3 → 1.0.5
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/index.d.tlua +1 -0
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +8 -17
- package/types/hook_events.d.tlua +2412 -0
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/dtilelayout.d.tlua
CHANGED
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
* @realm client
|
|
25
25
|
* @source https://wiki.facepunch.com/gmod/DTileLayout
|
|
26
26
|
*/
|
|
27
|
-
interface DTileLayout extends DDragBase {
|
|
28
|
-
|
|
29
|
-
interface DTileLayout {
|
|
27
|
+
interface DTileLayout extends DDragBase {
|
|
30
28
|
/**
|
|
31
29
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
32
30
|
* Clears the panel's tile table. Used by [DTileLayout:LayoutTiles](https://wiki.facepunch.com/gmod/DTileLayout:LayoutTiles).
|
|
@@ -34,9 +32,6 @@ interface DTileLayout {
|
|
|
34
32
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:ClearTiles
|
|
35
33
|
*/
|
|
36
34
|
ClearTiles(self: DTileLayout): void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface DTileLayout {
|
|
40
35
|
/**
|
|
41
36
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
42
37
|
* Called to designate a range of tiles as occupied by a panel.
|
|
@@ -44,27 +39,18 @@ interface DTileLayout {
|
|
|
44
39
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:ConsumeTiles
|
|
45
40
|
*/
|
|
46
41
|
ConsumeTiles(self: DTileLayout, x: number, y: number, w: number, h: number): void;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface DTileLayout {
|
|
50
42
|
/**
|
|
51
43
|
* Creates and returns an exact copy of the DTileLayout.
|
|
52
44
|
* @realm client
|
|
53
45
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:Copy
|
|
54
46
|
*/
|
|
55
47
|
Copy(self: DTileLayout): Panel;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface DTileLayout {
|
|
59
48
|
/**
|
|
60
49
|
* Creates copies of all the children from the given panel object and parents them to this one.
|
|
61
50
|
* @realm client
|
|
62
51
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:CopyContents
|
|
63
52
|
*/
|
|
64
53
|
CopyContents(self: DTileLayout, source: Panel): void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface DTileLayout {
|
|
68
54
|
/**
|
|
69
55
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
70
56
|
* Finds the coordinates of the first group of free tiles that fit the given size.
|
|
@@ -72,9 +58,6 @@ interface DTileLayout {
|
|
|
72
58
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:FindFreeTile
|
|
73
59
|
*/
|
|
74
60
|
FindFreeTile(self: DTileLayout, x: number, y: number, w: number, h: number): (number, number);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface DTileLayout {
|
|
78
61
|
/**
|
|
79
62
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
80
63
|
* Determines if a group of tiles is vacant.
|
|
@@ -82,54 +65,36 @@ interface DTileLayout {
|
|
|
82
65
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:FitsInTile
|
|
83
66
|
*/
|
|
84
67
|
FitsInTile(self: DTileLayout, x: number, y: number, w: number, h: number): boolean;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface DTileLayout {
|
|
88
68
|
/**
|
|
89
69
|
* Returns the size of each single tile, set with [DTileLayout:SetBaseSize](https://wiki.facepunch.com/gmod/DTileLayout:SetBaseSize).
|
|
90
70
|
* @realm client
|
|
91
71
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetBaseSize
|
|
92
72
|
*/
|
|
93
73
|
GetBaseSize(self: DTileLayout): number;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface DTileLayout {
|
|
97
74
|
/**
|
|
98
75
|
* Returns the border spacing set by [DTileLayout:SetBorder](https://wiki.facepunch.com/gmod/DTileLayout:SetBorder).
|
|
99
76
|
* @realm client
|
|
100
77
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetBorder
|
|
101
78
|
*/
|
|
102
79
|
GetBorder(self: DTileLayout): number;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface DTileLayout {
|
|
106
80
|
/**
|
|
107
81
|
* Returns the minimum height the DTileLayout can resize to.
|
|
108
82
|
* @realm client
|
|
109
83
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetMinHeight
|
|
110
84
|
*/
|
|
111
85
|
GetMinHeight(self: DTileLayout): number;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
interface DTileLayout {
|
|
115
86
|
/**
|
|
116
87
|
* Returns the X axis spacing between 2 elements set by [DTileLayout:SetSpaceX](https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceX).
|
|
117
88
|
* @realm client
|
|
118
89
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetSpaceX
|
|
119
90
|
*/
|
|
120
91
|
GetSpaceX(self: DTileLayout): number;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface DTileLayout {
|
|
124
92
|
/**
|
|
125
93
|
* Returns the Y axis spacing between 2 elements set by [DTileLayout:SetSpaceY](https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceY).
|
|
126
94
|
* @realm client
|
|
127
95
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetSpaceY
|
|
128
96
|
*/
|
|
129
97
|
GetSpaceY(self: DTileLayout): number;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface DTileLayout {
|
|
133
98
|
/**
|
|
134
99
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
135
100
|
* Gets the occupied state of a tile.
|
|
@@ -137,18 +102,12 @@ interface DTileLayout {
|
|
|
137
102
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:GetTile
|
|
138
103
|
*/
|
|
139
104
|
GetTile(self: DTileLayout, x: number, y: number): any;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
interface DTileLayout {
|
|
143
105
|
/**
|
|
144
106
|
* 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.
|
|
145
107
|
* @realm client
|
|
146
108
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:Layout
|
|
147
109
|
*/
|
|
148
110
|
Layout(self: DTileLayout): void;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
interface DTileLayout {
|
|
152
111
|
/**
|
|
153
112
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
154
113
|
* 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.
|
|
@@ -156,9 +115,6 @@ interface DTileLayout {
|
|
|
156
115
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:LayoutTiles
|
|
157
116
|
*/
|
|
158
117
|
LayoutTiles(self: DTileLayout): void;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface DTileLayout {
|
|
162
118
|
/**
|
|
163
119
|
* Sets the size of a single tile. If a child panel is larger than this size, it will occupy several tiles.
|
|
164
120
|
*
|
|
@@ -168,45 +124,30 @@ interface DTileLayout {
|
|
|
168
124
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetBaseSize
|
|
169
125
|
*/
|
|
170
126
|
SetBaseSize(self: DTileLayout, size: number): void;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
interface DTileLayout {
|
|
174
127
|
/**
|
|
175
128
|
* Sets the spacing between the border/edge of the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) and all the elements inside.
|
|
176
129
|
* @realm client
|
|
177
130
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetBorder
|
|
178
131
|
*/
|
|
179
132
|
SetBorder(self: DTileLayout, border: number): void;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface DTileLayout {
|
|
183
133
|
/**
|
|
184
134
|
* Determines the minimum height the DTileLayout will resize to. This is useful if child panels will be added/removed often.
|
|
185
135
|
* @realm client
|
|
186
136
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetMinHeight
|
|
187
137
|
*/
|
|
188
138
|
SetMinHeight(self: DTileLayout, minH: number): void;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
interface DTileLayout {
|
|
192
139
|
/**
|
|
193
140
|
* Sets the spacing between 2 elements in the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) on the X axis.
|
|
194
141
|
* @realm client
|
|
195
142
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceX
|
|
196
143
|
*/
|
|
197
144
|
SetSpaceX(self: DTileLayout, spacingX: number): void;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface DTileLayout {
|
|
201
145
|
/**
|
|
202
146
|
* Sets the spacing between 2 elements in the [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout) on the Y axis.
|
|
203
147
|
* @realm client
|
|
204
148
|
* @source https://wiki.facepunch.com/gmod/DTileLayout:SetSpaceY
|
|
205
149
|
*/
|
|
206
150
|
SetSpaceY(self: DTileLayout, spaceY: number): void;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
interface DTileLayout {
|
|
210
151
|
/**
|
|
211
152
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
212
153
|
* Called to set the occupied state of a tile.
|
|
@@ -216,3 +157,23 @@ interface DTileLayout {
|
|
|
216
157
|
SetTile(self: DTileLayout, x: number, y: number, state: any): void;
|
|
217
158
|
}
|
|
218
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
|
@@ -11,18 +11,13 @@
|
|
|
11
11
|
* @realm client and menu
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DTooltip
|
|
13
13
|
*/
|
|
14
|
-
interface DTooltip extends DLabel {
|
|
15
|
-
|
|
16
|
-
interface DTooltip {
|
|
14
|
+
interface DTooltip extends DLabel {
|
|
17
15
|
/**
|
|
18
16
|
* Forces the tooltip to close. This will remove the panel.
|
|
19
17
|
* @realm client and menu
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/DTooltip:Close
|
|
21
19
|
*/
|
|
22
20
|
Close(self: DTooltip): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface DTooltip {
|
|
26
21
|
/**
|
|
27
22
|
* Used to draw a triangle beneath the [DTooltip](https://wiki.facepunch.com/gmod/DTooltip)
|
|
28
23
|
* **NOTE**: Requires [DTooltip:SetContents](https://wiki.facepunch.com/gmod/DTooltip:SetContents), without this it will error
|
|
@@ -32,9 +27,6 @@ interface DTooltip {
|
|
|
32
27
|
* @source https://wiki.facepunch.com/gmod/DTooltip:DrawArrow
|
|
33
28
|
*/
|
|
34
29
|
DrawArrow(self: DTooltip, x: number, y: number): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface DTooltip {
|
|
38
30
|
/**
|
|
39
31
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
32
|
*
|
|
@@ -46,9 +38,6 @@ interface DTooltip {
|
|
|
46
38
|
* @source https://wiki.facepunch.com/gmod/DTooltip:OpenForPanel
|
|
47
39
|
*/
|
|
48
40
|
OpenForPanel(self: DTooltip, pnl: Panel): void;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface DTooltip {
|
|
52
41
|
/**
|
|
53
42
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
54
43
|
*
|
|
@@ -59,9 +48,6 @@ interface DTooltip {
|
|
|
59
48
|
* @source https://wiki.facepunch.com/gmod/DTooltip:PositionTooltip
|
|
60
49
|
*/
|
|
61
50
|
PositionTooltip(self: DTooltip): void;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface DTooltip {
|
|
65
51
|
/**
|
|
66
52
|
* What Panel you want put inside of the [DTooltip](https://wiki.facepunch.com/gmod/DTooltip)
|
|
67
53
|
*
|
|
@@ -74,3 +60,8 @@ interface DTooltip {
|
|
|
74
60
|
SetContents(self: DTooltip, panel: Panel, _delete?: boolean): void;
|
|
75
61
|
}
|
|
76
62
|
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
package/types/dtree.d.tlua
CHANGED
|
@@ -8,18 +8,13 @@
|
|
|
8
8
|
* @realm client and menu
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/DTree
|
|
10
10
|
*/
|
|
11
|
-
interface DTree extends DScrollPanel {
|
|
12
|
-
|
|
13
|
-
interface DTree {
|
|
11
|
+
interface DTree extends DScrollPanel {
|
|
14
12
|
/**
|
|
15
13
|
* Add a node to the DTree
|
|
16
14
|
* @realm client and menu
|
|
17
15
|
* @source https://wiki.facepunch.com/gmod/DTree:AddNode
|
|
18
16
|
*/
|
|
19
17
|
AddNode(self: DTree, name: string, icon?: string): Panel;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface DTree {
|
|
23
18
|
/**
|
|
24
19
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
25
20
|
*
|
|
@@ -32,18 +27,12 @@ interface DTree {
|
|
|
32
27
|
* @source https://wiki.facepunch.com/gmod/DTree:ExpandTo
|
|
33
28
|
*/
|
|
34
29
|
ExpandTo(self: DTree, bExpand: boolean): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface DTree {
|
|
38
30
|
/**
|
|
39
31
|
* Returns the status of [DTree:SetClickOnDragHover](https://wiki.facepunch.com/gmod/DTree:SetClickOnDragHover). See that for more info.
|
|
40
32
|
* @realm client and menu
|
|
41
33
|
* @source https://wiki.facepunch.com/gmod/DTree:GetClickOnDragHover
|
|
42
34
|
*/
|
|
43
35
|
GetClickOnDragHover(self: DTree): boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface DTree {
|
|
47
36
|
/**
|
|
48
37
|
* 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.
|
|
49
38
|
*
|
|
@@ -53,18 +42,12 @@ interface DTree {
|
|
|
53
42
|
* @source https://wiki.facepunch.com/gmod/DTree:GetIndentSize
|
|
54
43
|
*/
|
|
55
44
|
GetIndentSize(self: DTree): number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface DTree {
|
|
59
45
|
/**
|
|
60
46
|
* Returns the currently selected node.
|
|
61
47
|
* @realm client and menu
|
|
62
48
|
* @source https://wiki.facepunch.com/gmod/DTree:GetSelectedItem
|
|
63
49
|
*/
|
|
64
50
|
GetSelectedItem(self: DTree): Panel;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface DTree {
|
|
68
51
|
/**
|
|
69
52
|
* Returns whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
70
53
|
*
|
|
@@ -74,9 +57,6 @@ interface DTree {
|
|
|
74
57
|
* @source https://wiki.facepunch.com/gmod/DTree:GetShowIcons
|
|
75
58
|
*/
|
|
76
59
|
GetShowIcons(self: DTree): boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface DTree {
|
|
80
60
|
/**
|
|
81
61
|
* Does nothing.
|
|
82
62
|
*
|
|
@@ -84,9 +64,6 @@ interface DTree {
|
|
|
84
64
|
* @source https://wiki.facepunch.com/gmod/DTree:LayoutTree
|
|
85
65
|
*/
|
|
86
66
|
LayoutTree(self: DTree): void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface DTree {
|
|
90
67
|
/**
|
|
91
68
|
* Moves given node to the top of [DTree](https://wiki.facepunch.com/gmod/DTree)s children. (Makes it the topmost mode)
|
|
92
69
|
*
|
|
@@ -98,18 +75,12 @@ interface DTree {
|
|
|
98
75
|
* @source https://wiki.facepunch.com/gmod/DTree:MoveChildTo
|
|
99
76
|
*/
|
|
100
77
|
MoveChildTo(self: DTree, child: Panel, pos: number): void;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface DTree {
|
|
104
78
|
/**
|
|
105
79
|
* 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.
|
|
106
80
|
* @realm client and menu
|
|
107
81
|
* @source https://wiki.facepunch.com/gmod/DTree:Root
|
|
108
82
|
*/
|
|
109
83
|
Root(self: DTree): Panel;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface DTree {
|
|
113
84
|
/**
|
|
114
85
|
* Enables the "click when drag-hovering" functionality.
|
|
115
86
|
*
|
|
@@ -121,9 +92,6 @@ interface DTree {
|
|
|
121
92
|
* @source https://wiki.facepunch.com/gmod/DTree:SetClickOnDragHover
|
|
122
93
|
*/
|
|
123
94
|
SetClickOnDragHover(self: DTree, enable: boolean): void;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface DTree {
|
|
127
95
|
/**
|
|
128
96
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
129
97
|
*
|
|
@@ -136,9 +104,6 @@ interface DTree {
|
|
|
136
104
|
* @source https://wiki.facepunch.com/gmod/DTree:SetExpanded
|
|
137
105
|
*/
|
|
138
106
|
SetExpanded(self: DTree, bExpand: boolean): void;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface DTree {
|
|
142
107
|
/**
|
|
143
108
|
* 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.
|
|
144
109
|
*
|
|
@@ -148,18 +113,12 @@ interface DTree {
|
|
|
148
113
|
* @source https://wiki.facepunch.com/gmod/DTree:SetIndentSize
|
|
149
114
|
*/
|
|
150
115
|
SetIndentSize(self: DTree, size: number): void;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface DTree {
|
|
154
116
|
/**
|
|
155
117
|
* Set the currently selected top-level node.
|
|
156
118
|
* @realm client and menu
|
|
157
119
|
* @source https://wiki.facepunch.com/gmod/DTree:SetSelectedItem
|
|
158
120
|
*/
|
|
159
121
|
SetSelectedItem(self: DTree, node: Panel): void;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
interface DTree {
|
|
163
122
|
/**
|
|
164
123
|
* Sets whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
165
124
|
*
|
|
@@ -169,9 +128,6 @@ interface DTree {
|
|
|
169
128
|
* @source https://wiki.facepunch.com/gmod/DTree:SetShowIcons
|
|
170
129
|
*/
|
|
171
130
|
SetShowIcons(self: DTree, show: boolean): void;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
interface DTree {
|
|
175
131
|
/**
|
|
176
132
|
* Returns whether or not the [Silkicons](https://wiki.facepunch.com/gmod/Silkicons) next to each node of the DTree will be displayed.
|
|
177
133
|
*
|
|
@@ -183,3 +139,18 @@ interface DTree {
|
|
|
183
139
|
ShowIcons(self: DTree): boolean;
|
|
184
140
|
}
|
|
185
141
|
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|