@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/dmodelpanel.d.tlua
CHANGED
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* @realm client
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DModelPanel
|
|
7
7
|
*/
|
|
8
|
-
interface DModelPanel extends DButton {
|
|
9
|
-
|
|
10
|
-
interface DModelPanel {
|
|
8
|
+
interface DModelPanel extends DButton {
|
|
11
9
|
/**
|
|
12
10
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
13
11
|
* Used by the DModelPanel's paint hook to draw the model and background.
|
|
@@ -15,108 +13,72 @@ interface DModelPanel {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:DrawModel
|
|
16
14
|
*/
|
|
17
15
|
DrawModel(self: DModelPanel): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface DModelPanel {
|
|
21
16
|
/**
|
|
22
17
|
* Returns the ambient lighting used on the rendered entity.
|
|
23
18
|
* @realm client
|
|
24
19
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAmbientLight
|
|
25
20
|
*/
|
|
26
21
|
GetAmbientLight(self: DModelPanel): Color;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface DModelPanel {
|
|
30
22
|
/**
|
|
31
23
|
* Returns the animation speed of the panel entity, see [DModelPanel:SetAnimSpeed](https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed).
|
|
32
24
|
* @realm client
|
|
33
25
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimSpeed
|
|
34
26
|
*/
|
|
35
27
|
GetAnimSpeed(self: DModelPanel): number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface DModelPanel {
|
|
39
28
|
/**
|
|
40
29
|
* Returns whether or not the panel entity should be animated when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) function is called.
|
|
41
30
|
* @realm client
|
|
42
31
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimated
|
|
43
32
|
*/
|
|
44
33
|
GetAnimated(self: DModelPanel): boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface DModelPanel {
|
|
48
34
|
/**
|
|
49
35
|
* Returns the position of the model viewing camera.
|
|
50
36
|
* @realm client
|
|
51
37
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetCamPos
|
|
52
38
|
*/
|
|
53
39
|
GetCamPos(self: DModelPanel): Vector;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface DModelPanel {
|
|
57
40
|
/**
|
|
58
41
|
* Returns the entity being rendered by the model panel.
|
|
59
42
|
* @realm client
|
|
60
43
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetEntity
|
|
61
44
|
*/
|
|
62
45
|
GetEntity(self: DModelPanel): CSEnt;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface DModelPanel {
|
|
66
46
|
/**
|
|
67
47
|
* Returns the FOV (field of view) the camera is using.
|
|
68
48
|
* @realm client
|
|
69
49
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetFOV
|
|
70
50
|
*/
|
|
71
51
|
GetFOV(self: DModelPanel): number;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface DModelPanel {
|
|
75
52
|
/**
|
|
76
53
|
* Returns the angles of the model viewing camera. Is **nil** until changed with [DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng).
|
|
77
54
|
* @realm client
|
|
78
55
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAng
|
|
79
56
|
*/
|
|
80
57
|
GetLookAng(self: DModelPanel): Angle;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface DModelPanel {
|
|
84
58
|
/**
|
|
85
59
|
* Returns the position the viewing camera is pointing toward.
|
|
86
60
|
* @realm client
|
|
87
61
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAt
|
|
88
62
|
*/
|
|
89
63
|
GetLookAt(self: DModelPanel): Vector;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface DModelPanel {
|
|
93
64
|
/**
|
|
94
65
|
* Gets the model of the rendered entity.
|
|
95
66
|
* @realm client
|
|
96
67
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetModel
|
|
97
68
|
*/
|
|
98
69
|
GetModel(self: DModelPanel): string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface DModelPanel {
|
|
102
70
|
/**
|
|
103
71
|
* This function is used in [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity). It will progress the animation, set using [Entity:SetSequence](https://wiki.facepunch.com/gmod/Entity:SetSequence). By default, it is the walking animation.
|
|
104
72
|
* @realm client
|
|
105
73
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation
|
|
106
74
|
*/
|
|
107
75
|
RunAnimation(self: DModelPanel): void;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface DModelPanel {
|
|
111
76
|
/**
|
|
112
77
|
* Sets the ambient lighting used on the rendered entity.
|
|
113
78
|
* @realm client
|
|
114
79
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAmbientLight
|
|
115
80
|
*/
|
|
116
81
|
SetAmbientLight(self: DModelPanel, color: Color): void;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
interface DModelPanel {
|
|
120
82
|
/**
|
|
121
83
|
* Sets the speed used by [DModelPanel:RunAnimation](https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation) to advance frame on an entity sequence.
|
|
122
84
|
*
|
|
@@ -127,36 +89,24 @@ interface DModelPanel {
|
|
|
127
89
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed
|
|
128
90
|
*/
|
|
129
91
|
SetAnimSpeed(self: DModelPanel, animSpeed: number): void;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface DModelPanel {
|
|
133
92
|
/**
|
|
134
93
|
* Sets whether or not to animate the entity when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) is called.
|
|
135
94
|
* @realm client
|
|
136
95
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimated
|
|
137
96
|
*/
|
|
138
97
|
SetAnimated(self: DModelPanel, animated: boolean): void;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface DModelPanel {
|
|
142
98
|
/**
|
|
143
99
|
* Sets the position of the camera.
|
|
144
100
|
* @realm client
|
|
145
101
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetCamPos
|
|
146
102
|
*/
|
|
147
103
|
SetCamPos(self: DModelPanel, pos: Vector): void;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface DModelPanel {
|
|
151
104
|
/**
|
|
152
105
|
* Sets the directional lighting used on the rendered entity.
|
|
153
106
|
* @realm client
|
|
154
107
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetDirectionalLight
|
|
155
108
|
*/
|
|
156
109
|
SetDirectionalLight(self: DModelPanel, direction: number, color: Color): void;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface DModelPanel {
|
|
160
110
|
/**
|
|
161
111
|
* Sets the entity to be rendered by the model panel.
|
|
162
112
|
*
|
|
@@ -167,36 +117,24 @@ interface DModelPanel {
|
|
|
167
117
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetEntity
|
|
168
118
|
*/
|
|
169
119
|
SetEntity(self: DModelPanel, ent: Entity): void;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
interface DModelPanel {
|
|
173
120
|
/**
|
|
174
121
|
* Sets the panel camera's FOV (field of view).
|
|
175
122
|
* @realm client
|
|
176
123
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetFOV
|
|
177
124
|
*/
|
|
178
125
|
SetFOV(self: DModelPanel, fov: number): void;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
interface DModelPanel {
|
|
182
126
|
/**
|
|
183
127
|
* Sets the angles of the camera.
|
|
184
128
|
* @realm client
|
|
185
129
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng
|
|
186
130
|
*/
|
|
187
131
|
SetLookAng(self: DModelPanel, ang: Angle): void;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface DModelPanel {
|
|
191
132
|
/**
|
|
192
133
|
* Makes the panel's camera face the given position. Basically sets the camera's angles ([DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng)) after doing some math.
|
|
193
134
|
* @realm client
|
|
194
135
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAt
|
|
195
136
|
*/
|
|
196
137
|
SetLookAt(self: DModelPanel, pos: Vector): void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface DModelPanel {
|
|
200
138
|
/**
|
|
201
139
|
* Runs a [Global.ClientsideScene](https://wiki.facepunch.com/gmod/Global.ClientsideScene) on the panel's entity.
|
|
202
140
|
* @realm client
|
|
@@ -205,3 +143,24 @@ interface DModelPanel {
|
|
|
205
143
|
StartScene(self: DModelPanel, path: string): void;
|
|
206
144
|
}
|
|
207
145
|
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DModelSelect
|
|
8
8
|
* @deprecated This is derived from the deprecated DPanelList.
|
|
9
9
|
*/
|
|
10
|
-
interface DModelSelect extends DPanelSelect {
|
|
11
|
-
|
|
12
|
-
interface DModelSelect {
|
|
10
|
+
interface DModelSelect extends DPanelSelect {
|
|
13
11
|
/**
|
|
14
12
|
* Called to set the list of models within the panel element.
|
|
15
13
|
* @realm client
|
|
@@ -18,3 +16,4 @@ interface DModelSelect {
|
|
|
18
16
|
SetModelList(self: DModelSelect, models: table, convar: string, dontSort: boolean, dontCallListConVars: boolean): void;
|
|
19
17
|
}
|
|
20
18
|
|
|
19
|
+
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
* @realm client
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DModelSelectMulti
|
|
8
8
|
*/
|
|
9
|
-
interface DModelSelectMulti extends DPropertySheet {
|
|
10
|
-
|
|
11
|
-
interface DModelSelectMulti {
|
|
9
|
+
interface DModelSelectMulti extends DPropertySheet {
|
|
12
10
|
/**
|
|
13
11
|
* Adds a new tab of models.
|
|
14
12
|
* @realm client and menu
|
|
@@ -17,3 +15,4 @@ interface DModelSelectMulti {
|
|
|
17
15
|
AddModelList(self: DModelSelectMulti, name: string, models: table, convar: string, dontSort: boolean, dontCallListConVars: boolean): void;
|
|
18
16
|
}
|
|
19
17
|
|
|
18
|
+
|
package/types/dnotify.d.tlua
CHANGED
|
@@ -5,36 +5,25 @@
|
|
|
5
5
|
* @realm client
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DNotify
|
|
7
7
|
*/
|
|
8
|
-
interface DNotify extends Panel {
|
|
9
|
-
|
|
10
|
-
interface DNotify {
|
|
8
|
+
interface DNotify extends Panel {
|
|
11
9
|
/**
|
|
12
10
|
* Adds a panel to the notification
|
|
13
11
|
* @realm client
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/DNotify:AddItem
|
|
15
13
|
*/
|
|
16
14
|
AddItem(self: DNotify, pnl: Panel, lifeLength?: number): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface DNotify {
|
|
20
15
|
/**
|
|
21
16
|
* Returns the current alignment of this notification panel. Set by [DNotify:SetAlignment](https://wiki.facepunch.com/gmod/DNotify:SetAlignment).
|
|
22
17
|
* @realm client
|
|
23
18
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetAlignment
|
|
24
19
|
*/
|
|
25
20
|
GetAlignment(self: DNotify): number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface DNotify {
|
|
29
21
|
/**
|
|
30
22
|
* Returns all the items added with [DNotify:AddItem](https://wiki.facepunch.com/gmod/DNotify:AddItem).
|
|
31
23
|
* @realm client
|
|
32
24
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetItems
|
|
33
25
|
*/
|
|
34
26
|
GetItems(self: DNotify): table;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface DNotify {
|
|
38
27
|
/**
|
|
39
28
|
* Returns the display time in seconds of the DNotify. This is set with
|
|
40
29
|
* [DNotify:SetLife](https://wiki.facepunch.com/gmod/DNotify:SetLife).
|
|
@@ -43,45 +32,30 @@ interface DNotify {
|
|
|
43
32
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetLife
|
|
44
33
|
*/
|
|
45
34
|
GetLife(self: DNotify): number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface DNotify {
|
|
49
35
|
/**
|
|
50
36
|
* Returns the spacing between items set by [DNotify:SetSpacing](https://wiki.facepunch.com/gmod/DNotify:SetSpacing).
|
|
51
37
|
* @realm client
|
|
52
38
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetSpacing
|
|
53
39
|
*/
|
|
54
40
|
GetSpacing(self: DNotify): number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface DNotify {
|
|
58
41
|
/**
|
|
59
42
|
* Sets the alignment of the child panels in the notification
|
|
60
43
|
* @realm client
|
|
61
44
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetAlignment
|
|
62
45
|
*/
|
|
63
46
|
SetAlignment(self: DNotify, alignment: number): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface DNotify {
|
|
67
47
|
/**
|
|
68
48
|
* Sets the display time in seconds for the DNotify.
|
|
69
49
|
* @realm client
|
|
70
50
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetLife
|
|
71
51
|
*/
|
|
72
52
|
SetLife(self: DNotify, time: number): void;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface DNotify {
|
|
76
53
|
/**
|
|
77
54
|
* Sets the spacing between child elements of the notification panel.
|
|
78
55
|
* @realm client
|
|
79
56
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetSpacing
|
|
80
57
|
*/
|
|
81
58
|
SetSpacing(self: DNotify, spacing: number): void;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface DNotify {
|
|
85
59
|
/**
|
|
86
60
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
87
61
|
* Used internally to position and fade in/out its [DNotify:GetItems](https://wiki.facepunch.com/gmod/DNotify:GetItems).
|
|
@@ -91,3 +65,12 @@ interface DNotify {
|
|
|
91
65
|
Shuffle(self: DNotify): void;
|
|
92
66
|
}
|
|
93
67
|
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* @realm client and menu
|
|
8
8
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch
|
|
9
9
|
*/
|
|
10
|
-
interface DNumberScratch extends DImageButton {
|
|
11
|
-
|
|
12
|
-
interface DNumberScratch {
|
|
10
|
+
interface DNumberScratch extends DImageButton {
|
|
13
11
|
/**
|
|
14
12
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
15
13
|
*
|
|
@@ -20,9 +18,6 @@ interface DNumberScratch {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:DrawNotches
|
|
21
19
|
*/
|
|
22
20
|
DrawNotches(self: DNumberScratch, level: number, x: number, y: number, w: number, h: number, range: number, value: number, min: number, max: number): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface DNumberScratch {
|
|
26
21
|
/**
|
|
27
22
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
28
23
|
*
|
|
@@ -33,27 +28,18 @@ interface DNumberScratch {
|
|
|
33
28
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:DrawScreen
|
|
34
29
|
*/
|
|
35
30
|
DrawScreen(self: DNumberScratch, x: number, y: number, w: number, h: number): void;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface DNumberScratch {
|
|
39
31
|
/**
|
|
40
32
|
* Returns whether this panel is active or not, i.e. if the player is currently changing its value.
|
|
41
33
|
* @realm client and menu
|
|
42
34
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetActive
|
|
43
35
|
*/
|
|
44
36
|
GetActive(self: DNumberScratch): boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface DNumberScratch {
|
|
48
37
|
/**
|
|
49
38
|
* Returns the desired amount of numbers after the decimal point.
|
|
50
39
|
* @realm client and menu
|
|
51
40
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetDecimals
|
|
52
41
|
*/
|
|
53
42
|
GetDecimals(self: DNumberScratch): number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface DNumberScratch {
|
|
57
43
|
/**
|
|
58
44
|
* Returns the real value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a number.
|
|
59
45
|
*
|
|
@@ -63,9 +49,6 @@ interface DNumberScratch {
|
|
|
63
49
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetFloatValue
|
|
64
50
|
*/
|
|
65
51
|
GetFloatValue(self: DNumberScratch): number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
interface DNumberScratch {
|
|
69
52
|
/**
|
|
70
53
|
* Returns the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a fraction, a value between 0 and 1 where 0 is the minimum and 1 is the maximum value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch).
|
|
71
54
|
*
|
|
@@ -78,45 +61,30 @@ interface DNumberScratch {
|
|
|
78
61
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetFraction
|
|
79
62
|
*/
|
|
80
63
|
GetFraction(self: DNumberScratch): number;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface DNumberScratch {
|
|
84
64
|
/**
|
|
85
65
|
* Returns the maximum value that can be selected on the number scratch
|
|
86
66
|
* @realm client and menu
|
|
87
67
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetMax
|
|
88
68
|
*/
|
|
89
69
|
GetMax(self: DNumberScratch): number;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface DNumberScratch {
|
|
93
70
|
/**
|
|
94
71
|
* Returns the minimum value that can be selected on the number scratch
|
|
95
72
|
* @realm client and menu
|
|
96
73
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetMin
|
|
97
74
|
*/
|
|
98
75
|
GetMin(self: DNumberScratch): number;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface DNumberScratch {
|
|
102
76
|
/**
|
|
103
77
|
* Returns the range of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch). Basically max value - min value.
|
|
104
78
|
* @realm client and menu
|
|
105
79
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetRange
|
|
106
80
|
*/
|
|
107
81
|
GetRange(self: DNumberScratch): number;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
interface DNumberScratch {
|
|
111
82
|
/**
|
|
112
83
|
* Returns whether the scratch window should be visible or not.
|
|
113
84
|
* @realm client and menu
|
|
114
85
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetShouldDrawScreen
|
|
115
86
|
*/
|
|
116
87
|
GetShouldDrawScreen(self: DNumberScratch): boolean;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
interface DNumberScratch {
|
|
120
88
|
/**
|
|
121
89
|
* Returns the real value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a string.
|
|
122
90
|
*
|
|
@@ -126,36 +94,24 @@ interface DNumberScratch {
|
|
|
126
94
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetTextValue
|
|
127
95
|
*/
|
|
128
96
|
GetTextValue(self: DNumberScratch): string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface DNumberScratch {
|
|
132
97
|
/**
|
|
133
98
|
* Returns the zoom level of the scratch window
|
|
134
99
|
* @realm client and menu
|
|
135
100
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetZoom
|
|
136
101
|
*/
|
|
137
102
|
GetZoom(self: DNumberScratch): number;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface DNumberScratch {
|
|
141
103
|
/**
|
|
142
104
|
* Returns the ideal zoom level for the panel based on the [DNumberScratch:GetRange](https://wiki.facepunch.com/gmod/DNumberScratch:GetRange).
|
|
143
105
|
* @realm client and menu
|
|
144
106
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:IdealZoom
|
|
145
107
|
*/
|
|
146
108
|
IdealZoom(self: DNumberScratch): number;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface DNumberScratch {
|
|
150
109
|
/**
|
|
151
110
|
* Returns whether the player is currently editing the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch).
|
|
152
111
|
* @realm client and menu
|
|
153
112
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:IsEditing
|
|
154
113
|
*/
|
|
155
114
|
IsEditing(self: DNumberScratch): boolean;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface DNumberScratch {
|
|
159
115
|
/**
|
|
160
116
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
161
117
|
*
|
|
@@ -166,9 +122,6 @@ interface DNumberScratch {
|
|
|
166
122
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:LockCursor
|
|
167
123
|
*/
|
|
168
124
|
LockCursor(self: DNumberScratch): void;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface DNumberScratch {
|
|
172
125
|
/**
|
|
173
126
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
174
127
|
*
|
|
@@ -179,9 +132,6 @@ interface DNumberScratch {
|
|
|
179
132
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:PaintScratchWindow
|
|
180
133
|
*/
|
|
181
134
|
PaintScratchWindow(self: DNumberScratch): void;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
interface DNumberScratch {
|
|
185
135
|
/**
|
|
186
136
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
187
137
|
*
|
|
@@ -194,18 +144,12 @@ interface DNumberScratch {
|
|
|
194
144
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetActive
|
|
195
145
|
*/
|
|
196
146
|
SetActive(self: DNumberScratch, active: boolean): void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface DNumberScratch {
|
|
200
147
|
/**
|
|
201
148
|
* Sets the desired amount of numbers after the decimal point.
|
|
202
149
|
* @realm client and menu
|
|
203
150
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetDecimals
|
|
204
151
|
*/
|
|
205
152
|
SetDecimals(self: DNumberScratch, decimals: number): void;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
interface DNumberScratch {
|
|
209
153
|
/**
|
|
210
154
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
211
155
|
*
|
|
@@ -218,36 +162,24 @@ interface DNumberScratch {
|
|
|
218
162
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetFloatValue
|
|
219
163
|
*/
|
|
220
164
|
SetFloatValue(self: DNumberScratch, val: number): void;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
interface DNumberScratch {
|
|
224
165
|
/**
|
|
225
166
|
* Sets the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a fraction, a value between 0 and 1 where 0 is the minimum and 1 is the maximum value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch)
|
|
226
167
|
* @realm client and menu
|
|
227
168
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetFraction
|
|
228
169
|
*/
|
|
229
170
|
SetFraction(self: DNumberScratch, frac: number): void;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
interface DNumberScratch {
|
|
233
171
|
/**
|
|
234
172
|
* Sets the max value that can be selected on the number scratch
|
|
235
173
|
* @realm client and menu
|
|
236
174
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetMax
|
|
237
175
|
*/
|
|
238
176
|
SetMax(self: DNumberScratch, max: number): void;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
interface DNumberScratch {
|
|
242
177
|
/**
|
|
243
178
|
* Sets the minimum value that can be selected on the number scratch.
|
|
244
179
|
* @realm client and menu
|
|
245
180
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetMin
|
|
246
181
|
*/
|
|
247
182
|
SetMin(self: DNumberScratch, min: number): void;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
interface DNumberScratch {
|
|
251
183
|
/**
|
|
252
184
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
253
185
|
*
|
|
@@ -258,18 +190,12 @@ interface DNumberScratch {
|
|
|
258
190
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetShouldDrawScreen
|
|
259
191
|
*/
|
|
260
192
|
SetShouldDrawScreen(self: DNumberScratch, shouldDraw: boolean): void;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
interface DNumberScratch {
|
|
264
193
|
/**
|
|
265
194
|
* Sets the zoom level of the scratch panel.
|
|
266
195
|
* @realm client and menu
|
|
267
196
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetZoom
|
|
268
197
|
*/
|
|
269
198
|
SetZoom(self: DNumberScratch, zoom: number): void;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
interface DNumberScratch {
|
|
273
199
|
/**
|
|
274
200
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
275
201
|
*
|
|
@@ -282,3 +208,28 @@ interface DNumberScratch {
|
|
|
282
208
|
UpdateConVar(self: DNumberScratch): void;
|
|
283
209
|
}
|
|
284
210
|
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|