@tlua/gmod 1.0.4 → 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.
Files changed (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -15,8 +15,6 @@
15
15
  * @realm client and menu
16
16
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad
17
17
  */
18
- interface CtrlNumPad {}
19
-
20
18
  interface CtrlNumPad {
21
19
  /**
22
20
  * The value (key bind) of the first [DBinder](https://wiki.facepunch.com/gmod/DBinder).
@@ -24,45 +22,30 @@ interface CtrlNumPad {
24
22
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad:GetValue1
25
23
  */
26
24
  GetValue1(self: CtrlNumPad): KEY;
27
- }
28
-
29
- interface CtrlNumPad {
30
25
  /**
31
26
  * The value (key bind) of the second [DBinder](https://wiki.facepunch.com/gmod/DBinder), if it's enabled.
32
27
  * @realm client
33
28
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad:GetValue2
34
29
  */
35
30
  GetValue2(self: CtrlNumPad): KEY;
36
- }
37
-
38
- interface CtrlNumPad {
39
31
  /**
40
32
  * The name of the convar that will store the key code for player selected key of the left key binder.
41
33
  * @realm client
42
34
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad:SetConVar1
43
35
  */
44
36
  SetConVar1(self: CtrlNumPad, cvar: string): void;
45
- }
46
-
47
- interface CtrlNumPad {
48
37
  /**
49
38
  * If set and label2 is set, the name of the convar that will store the key code for player selected key of the right key binder.
50
39
  * @realm client
51
40
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad:SetConVar2
52
41
  */
53
42
  SetConVar2(self: CtrlNumPad, cvar: string): void;
54
- }
55
-
56
- interface CtrlNumPad {
57
43
  /**
58
44
  * The label for the left key binder.
59
45
  * @realm client
60
46
  * @source https://wiki.facepunch.com/gmod/CtrlNumPad:SetLabel1
61
47
  */
62
48
  SetLabel1(self: CtrlNumPad, txt: string): void;
63
- }
64
-
65
- interface CtrlNumPad {
66
49
  /**
67
50
  * If set and convar2 is set, the label for the right key binder.
68
51
  * @realm client
@@ -71,3 +54,9 @@ interface CtrlNumPad {
71
54
  SetLabel2(self: CtrlNumPad, txt: string): void;
72
55
  }
73
56
 
57
+
58
+
59
+
60
+
61
+
62
+
@@ -6,8 +6,6 @@
6
6
  * Can be modified during [GM:CreateMove](https://wiki.facepunch.com/gmod/GM:CreateMove), [GM:StartCommand](https://wiki.facepunch.com/gmod/GM:StartCommand) and used in read only with [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) and [Player:GetCurrentCommand](https://wiki.facepunch.com/gmod/Player:GetCurrentCommand).
7
7
  * @source https://wiki.facepunch.com/gmod/CUserCmd
8
8
  */
9
- interface CUserCmd {}
10
-
11
9
  interface CUserCmd {
12
10
  /**
13
11
  * Adds a single key to the active buttons bitflag. See also [CUserCmd:SetButtons](https://wiki.facepunch.com/gmod/CUserCmd:SetButtons).
@@ -16,9 +14,6 @@ interface CUserCmd {
16
14
  * @source https://wiki.facepunch.com/gmod/CUserCmd:AddKey
17
15
  */
18
16
  AddKey(self: CUserCmd, key: number): void;
19
- }
20
-
21
- interface CUserCmd {
22
17
  /**
23
18
  * Removes all keys from the command.
24
19
  *
@@ -29,9 +24,6 @@ interface CUserCmd {
29
24
  * @source https://wiki.facepunch.com/gmod/CUserCmd:ClearButtons
30
25
  */
31
26
  ClearButtons(self: CUserCmd): void;
32
- }
33
-
34
- interface CUserCmd {
35
27
  /**
36
28
  * Clears the movement from the command.
37
29
  *
@@ -41,9 +33,6 @@ interface CUserCmd {
41
33
  * @source https://wiki.facepunch.com/gmod/CUserCmd:ClearMovement
42
34
  */
43
35
  ClearMovement(self: CUserCmd): void;
44
- }
45
-
46
- interface CUserCmd {
47
36
  /**
48
37
  * Returns an increasing number representing the index of the user cmd.
49
38
  *
@@ -54,90 +43,60 @@ interface CUserCmd {
54
43
  * @source https://wiki.facepunch.com/gmod/CUserCmd:CommandNumber
55
44
  */
56
45
  CommandNumber(self: CUserCmd): number;
57
- }
58
-
59
- interface CUserCmd {
60
46
  /**
61
47
  * Returns a bitflag indicating which buttons are pressed.
62
48
  * @realm shared
63
49
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetButtons
64
50
  */
65
51
  GetButtons(self: CUserCmd): number;
66
- }
67
-
68
- interface CUserCmd {
69
52
  /**
70
53
  * The speed the client wishes to move forward with, negative if the clients wants to move backwards.
71
54
  * @realm shared
72
55
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetForwardMove
73
56
  */
74
57
  GetForwardMove(self: CUserCmd): number;
75
- }
76
-
77
- interface CUserCmd {
78
58
  /**
79
59
  * Gets the current impulse from the client, usually 0. [See impulses list](https://developer.valvesoftware.com/wiki/Impulse) and some [GMod specific impulses](https://wiki.facepunch.com/gmod/CUserCmd:SetImpulse).
80
60
  * @realm shared
81
61
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetImpulse
82
62
  */
83
63
  GetImpulse(self: CUserCmd): number;
84
- }
85
-
86
- interface CUserCmd {
87
64
  /**
88
65
  * Returns the scroll delta as whole number.
89
66
  * @realm shared
90
67
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseWheel
91
68
  */
92
69
  GetMouseWheel(self: CUserCmd): number;
93
- }
94
-
95
- interface CUserCmd {
96
70
  /**
97
71
  * Returns the delta of the angular horizontal mouse movement of the player.
98
72
  * @realm shared
99
73
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseX
100
74
  */
101
75
  GetMouseX(self: CUserCmd): number;
102
- }
103
-
104
- interface CUserCmd {
105
76
  /**
106
77
  * Returns the delta of the angular vertical mouse movement of the player.
107
78
  * @realm shared
108
79
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseY
109
80
  */
110
81
  GetMouseY(self: CUserCmd): number;
111
- }
112
-
113
- interface CUserCmd {
114
82
  /**
115
83
  * The speed the client wishes to move sideways with, positive if it wants to move right, negative if it wants to move left.
116
84
  * @realm shared
117
85
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetSideMove
118
86
  */
119
87
  GetSideMove(self: CUserCmd): number;
120
- }
121
-
122
- interface CUserCmd {
123
88
  /**
124
89
  * The speed the client wishes to move up with, negative if the clients wants to move down.
125
90
  * @realm shared
126
91
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetUpMove
127
92
  */
128
93
  GetUpMove(self: CUserCmd): number;
129
- }
130
-
131
- interface CUserCmd {
132
94
  /**
133
95
  * Gets the direction the player is looking in.
134
96
  * @realm shared
135
97
  * @source https://wiki.facepunch.com/gmod/CUserCmd:GetViewAngles
136
98
  */
137
99
  GetViewAngles(self: CUserCmd): Angle;
138
- }
139
-
140
- interface CUserCmd {
141
100
  /**
142
101
  * When players are not sending usercommands to the server (often due to lag), their last usercommand will be executed multiple times as a backup. This function returns true if that is happening.
143
102
  *
@@ -147,18 +106,12 @@ interface CUserCmd {
147
106
  * @source https://wiki.facepunch.com/gmod/CUserCmd:IsForced
148
107
  */
149
108
  IsForced(self: CUserCmd): boolean;
150
- }
151
-
152
- interface CUserCmd {
153
109
  /**
154
110
  * Returns true if the specified button(s) is pressed.
155
111
  * @realm shared
156
112
  * @source https://wiki.facepunch.com/gmod/CUserCmd:KeyDown
157
113
  */
158
114
  KeyDown(self: CUserCmd, key: number): boolean;
159
- }
160
-
161
- interface CUserCmd {
162
115
  /**
163
116
  * Removes a key bit from the current key bitflag.
164
117
  *
@@ -167,9 +120,6 @@ interface CUserCmd {
167
120
  * @source https://wiki.facepunch.com/gmod/CUserCmd:RemoveKey
168
121
  */
169
122
  RemoveKey(self: CUserCmd, button: number): void;
170
- }
171
-
172
- interface CUserCmd {
173
123
  /**
174
124
  * Forces the associated player to select a weapon. This is used internally in the default HL2 weapon selection HUD.
175
125
  *
@@ -182,9 +132,6 @@ interface CUserCmd {
182
132
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SelectWeapon
183
133
  */
184
134
  SelectWeapon(self: CUserCmd, weapon: Weapon): void;
185
- }
186
-
187
- interface CUserCmd {
188
135
  /**
189
136
  * Sets the buttons as a bitflag. See also [CUserCmd:GetButtons](https://wiki.facepunch.com/gmod/CUserCmd:GetButtons).
190
137
  *
@@ -195,9 +142,6 @@ interface CUserCmd {
195
142
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetButtons
196
143
  */
197
144
  SetButtons(self: CUserCmd, buttons: number): void;
198
- }
199
-
200
- interface CUserCmd {
201
145
  /**
202
146
  * Sets speed the client wishes to move forward with, negative if the clients wants to move backwards.
203
147
  *
@@ -207,9 +151,6 @@ interface CUserCmd {
207
151
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetForwardMove
208
152
  */
209
153
  SetForwardMove(self: CUserCmd, speed: number): void;
210
- }
211
-
212
- interface CUserCmd {
213
154
  /**
214
155
  * Sets the impulse command to be sent to the server.
215
156
  *
@@ -226,18 +167,12 @@ interface CUserCmd {
226
167
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetImpulse
227
168
  */
228
169
  SetImpulse(self: CUserCmd, impulse: number): void;
229
- }
230
-
231
- interface CUserCmd {
232
170
  /**
233
171
  * Sets the scroll delta.
234
172
  * @realm shared
235
173
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseWheel
236
174
  */
237
175
  SetMouseWheel(self: CUserCmd, speed: number): void;
238
- }
239
-
240
- interface CUserCmd {
241
176
  /**
242
177
  * Sets the delta of the angular horizontal mouse movement of the player.
243
178
  *
@@ -247,9 +182,6 @@ interface CUserCmd {
247
182
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseX
248
183
  */
249
184
  SetMouseX(self: CUserCmd, speed: number): void;
250
- }
251
-
252
- interface CUserCmd {
253
185
  /**
254
186
  * Sets the delta of the angular vertical mouse movement of the player.
255
187
  *
@@ -259,9 +191,6 @@ interface CUserCmd {
259
191
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseY
260
192
  */
261
193
  SetMouseY(self: CUserCmd, speed: number): void;
262
- }
263
-
264
- interface CUserCmd {
265
194
  /**
266
195
  * Sets speed the client wishes to move sidewards with, positive to move right, negative to move left.
267
196
  *
@@ -271,9 +200,6 @@ interface CUserCmd {
271
200
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetSideMove
272
201
  */
273
202
  SetSideMove(self: CUserCmd, speed: number): void;
274
- }
275
-
276
- interface CUserCmd {
277
203
  /**
278
204
  * Sets speed the client wishes to move upwards with, negative to move down.
279
205
  *
@@ -285,9 +211,6 @@ interface CUserCmd {
285
211
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetUpMove
286
212
  */
287
213
  SetUpMove(self: CUserCmd, speed: number): void;
288
- }
289
-
290
- interface CUserCmd {
291
214
  /**
292
215
  * Sets the direction the client wants to move in.
293
216
  *
@@ -300,9 +223,6 @@ interface CUserCmd {
300
223
  * @source https://wiki.facepunch.com/gmod/CUserCmd:SetViewAngles
301
224
  */
302
225
  SetViewAngles(self: CUserCmd, viewAngle: Angle): void;
303
- }
304
-
305
- interface CUserCmd {
306
226
  /**
307
227
  * Returns tick count since joining the server.
308
228
  *
@@ -318,3 +238,30 @@ interface CUserCmd {
318
238
  TickCount(self: CUserCmd): number;
319
239
  }
320
240
 
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
@@ -18,36 +18,24 @@ interface CvarsLib {
18
18
  * @source https://wiki.facepunch.com/gmod/cvars.AddChangeCallback
19
19
  */
20
20
  AddChangeCallback(name: string, callback: (convar: string, oldValue: string, newValue: string) => void, identifier?: string): void;
21
- }
22
-
23
- interface CvarsLib {
24
21
  /**
25
22
  * Retrieves console variable as a boolean.
26
23
  * @realm shared and menu
27
24
  * @source https://wiki.facepunch.com/gmod/cvars.Bool
28
25
  */
29
26
  Bool(cvar: string, _default?: boolean): boolean;
30
- }
31
-
32
- interface CvarsLib {
33
27
  /**
34
28
  * Returns a table of the given [ConVar](https://wiki.facepunch.com/gmod/ConVar)s callbacks.
35
29
  * @realm shared and menu
36
30
  * @source https://wiki.facepunch.com/gmod/cvars.GetConVarCallbacks
37
31
  */
38
32
  GetConVarCallbacks(name: string, createIfNotFound?: boolean): table;
39
- }
40
-
41
- interface CvarsLib {
42
33
  /**
43
34
  * Retrieves console variable as a number.
44
35
  * @realm shared and menu
45
36
  * @source https://wiki.facepunch.com/gmod/cvars.Number
46
37
  */
47
38
  Number(cvar: string, _default?: any): number;
48
- }
49
-
50
- interface CvarsLib {
51
39
  /**
52
40
  * **INTERNAL**: You are probably looking for [cvars.AddChangeCallback](https://wiki.facepunch.com/gmod/cvars.AddChangeCallback).
53
41
  *
@@ -58,18 +46,12 @@ interface CvarsLib {
58
46
  * @source https://wiki.facepunch.com/gmod/cvars.OnConVarChanged
59
47
  */
60
48
  OnConVarChanged(name: string, oldVal: string, newVal: string): void;
61
- }
62
-
63
- interface CvarsLib {
64
49
  /**
65
50
  * Removes a callback for a convar using the the callback's identifier. The identifier should be the third argument specified for [cvars.AddChangeCallback](https://wiki.facepunch.com/gmod/cvars.AddChangeCallback).
66
51
  * @realm shared and menu
67
52
  * @source https://wiki.facepunch.com/gmod/cvars.RemoveChangeCallback
68
53
  */
69
54
  RemoveChangeCallback(name: string, indentifier: string): void;
70
- }
71
-
72
- interface CvarsLib {
73
55
  /**
74
56
  * Retrieves console variable as a string.
75
57
  * @realm shared and menu
@@ -78,3 +60,9 @@ interface CvarsLib {
78
60
  String(cvar: string, _default?: any): string;
79
61
  }
80
62
 
63
+
64
+
65
+
66
+
67
+
68
+
@@ -10,9 +10,7 @@
10
10
  * @realm client
11
11
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel
12
12
  */
13
- interface DAdjustableModelPanel extends DModelPanel {}
14
-
15
- interface DAdjustableModelPanel {
13
+ interface DAdjustableModelPanel extends DModelPanel {
16
14
  /**
17
15
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
18
16
  * Used by the panel to perform mouse capture operations when adjusting the model.
@@ -20,9 +18,6 @@ interface DAdjustableModelPanel {
20
18
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:CaptureMouse
21
19
  */
22
20
  CaptureMouse(self: DAdjustableModelPanel): void;
23
- }
24
-
25
- interface DAdjustableModelPanel {
26
21
  /**
27
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
28
23
  * Used to adjust the perspective in the model panel via the keyboard, when the right mouse button is used.
@@ -30,9 +25,6 @@ interface DAdjustableModelPanel {
30
25
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:FirstPersonControls
31
26
  */
32
27
  FirstPersonControls(self: DAdjustableModelPanel): void;
33
- }
34
-
35
- interface DAdjustableModelPanel {
36
28
  /**
37
29
  * Gets whether mouse and keyboard-based adjustment of the perspective has been enabled. See [DAdjustableModelPanel:SetFirstPerson](https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetFirstPerson) for more information.
38
30
  *
@@ -42,9 +34,6 @@ interface DAdjustableModelPanel {
42
34
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:GetFirstPerson
43
35
  */
44
36
  GetFirstPerson(self: DAdjustableModelPanel): boolean;
45
- }
46
-
47
- interface DAdjustableModelPanel {
48
37
  /**
49
38
  * Returns the movement speed multiplier set by [DAdjustableModelPanel:SetMovementScale](https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetMovementScale).
50
39
  *
@@ -54,9 +43,6 @@ interface DAdjustableModelPanel {
54
43
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:GetMovementScale
55
44
  */
56
45
  GetMovementScale(self: DAdjustableModelPanel): number;
57
- }
58
-
59
- interface DAdjustableModelPanel {
60
46
  /**
61
47
  * Enables mouse and keyboard-based adjustment of the perspective.
62
48
  *
@@ -68,9 +54,6 @@ interface DAdjustableModelPanel {
68
54
  * @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetFirstPerson
69
55
  */
70
56
  SetFirstPerson(self: DAdjustableModelPanel, enable: boolean): void;
71
- }
72
-
73
- interface DAdjustableModelPanel {
74
57
  /**
75
58
  * Sets the movement speed multiplier. Currently this only affects first person camera controls.
76
59
  * @realm client
@@ -79,3 +62,9 @@ interface DAdjustableModelPanel {
79
62
  SetMovementScale(self: DAdjustableModelPanel, arg0: number): void;
80
63
  }
81
64
 
65
+
66
+
67
+
68
+
69
+
70
+
@@ -5,18 +5,13 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DAlphaBar
7
7
  */
8
- interface DAlphaBar extends DPanel {}
9
-
10
- interface DAlphaBar {
8
+ interface DAlphaBar extends DPanel {
11
9
  /**
12
10
  * Returns the base color of the alpha bar. This is the color for which the alpha channel is being modified. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DAlphaBar:GetBarColor
15
13
  */
16
14
  GetBarColor(self: DAlphaBar): Color;
17
- }
18
-
19
- interface DAlphaBar {
20
15
  /**
21
16
  * Sets the base color of the alpha bar. This is the color for which the alpha channel is being modified. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
22
17
  * @realm client and menu
@@ -25,3 +20,5 @@ interface DAlphaBar {
25
20
  SetBarColor(self: DAlphaBar, clr: Color): void;
26
21
  }
27
22
 
23
+
24
+
@@ -5,27 +5,19 @@
5
5
  * @realm client
6
6
  * @source https://wiki.facepunch.com/gmod/DBinder
7
7
  */
8
- interface DBinder extends DButton {}
9
-
10
- interface DBinder {
8
+ interface DBinder extends DButton {
11
9
  /**
12
10
  * Gets the code of the key currently bound by the DBinder. Same as [DBinder:GetValue](https://wiki.facepunch.com/gmod/DBinder:GetValue). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
13
11
  * @realm client
14
12
  * @source https://wiki.facepunch.com/gmod/DBinder:GetSelectedNumber
15
13
  */
16
14
  GetSelectedNumber(self: DBinder): number;
17
- }
18
-
19
- interface DBinder {
20
15
  /**
21
16
  * Sets the current key bound by the [DBinder](https://wiki.facepunch.com/gmod/DBinder), and updates the button's text as well as the [ConVar](https://wiki.facepunch.com/gmod/ConVar).
22
17
  * @realm client
23
18
  * @source https://wiki.facepunch.com/gmod/DBinder:SetSelectedNumber
24
19
  */
25
20
  SetSelectedNumber(self: DBinder, keyCode: number): void;
26
- }
27
-
28
- interface DBinder {
29
21
  /**
30
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
23
  * Used to set the text of the DBinder to the current key binding, or `NONE`.
@@ -35,3 +27,6 @@ interface DBinder {
35
27
  UpdateText(self: DBinder): void;
36
28
  }
37
29
 
30
+
31
+
32
+
@@ -5,9 +5,7 @@
5
5
  * @realm client
6
6
  * @source https://wiki.facepunch.com/gmod/DBubbleContainer
7
7
  */
8
- interface DBubbleContainer extends DPanel {}
9
-
10
- interface DBubbleContainer {
8
+ interface DBubbleContainer extends DPanel {
11
9
  /**
12
10
  * Sets the speech bubble position and size along with the dialog point position.
13
11
  * @realm client
@@ -16,3 +14,4 @@ interface DBubbleContainer {
16
14
  OpenForPos(self: DBubbleContainer, x: number, y: number, w: number, h: number): void;
17
15
  }
18
16
 
17
+
@@ -8,9 +8,7 @@
8
8
  * @realm client and menu
9
9
  * @source https://wiki.facepunch.com/gmod/DButton
10
10
  */
11
- interface DButton extends DLabel {}
12
-
13
- interface DButton {
11
+ interface DButton extends DLabel {
14
12
  /**
15
13
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns value set by [DButton:SetDrawBorder](https://wiki.facepunch.com/gmod/DButton:SetDrawBorder). See that page for more info.
16
14
  *
@@ -18,18 +16,12 @@ interface DButton {
18
16
  * @source https://wiki.facepunch.com/gmod/DButton:GetDrawBorder
19
17
  */
20
18
  GetDrawBorder(self: DButton): boolean;
21
- }
22
-
23
- interface DButton {
24
19
  /**
25
20
  * Returns true if the DButton is currently depressed (a user is clicking on it).
26
21
  * @realm client and menu
27
22
  * @source https://wiki.facepunch.com/gmod/DButton:IsDown
28
23
  */
29
24
  IsDown(self: DButton): boolean;
30
- }
31
-
32
- interface DButton {
33
25
  /**
34
26
  * Sets a console command to be called when the button is clicked.
35
27
  *
@@ -39,9 +31,6 @@ interface DButton {
39
31
  * @source https://wiki.facepunch.com/gmod/DButton:SetConsoleCommand
40
32
  */
41
33
  SetConsoleCommand(self: DButton, command: string, args?: string): void;
42
- }
43
-
44
- interface DButton {
45
34
  /**
46
35
  * Does absolutely nothing at all. Default value is automatically set to true.
47
36
  *
@@ -49,18 +38,12 @@ interface DButton {
49
38
  * @source https://wiki.facepunch.com/gmod/DButton:SetDrawBorder
50
39
  */
51
40
  SetDrawBorder(self: DButton, draw: boolean): void;
52
- }
53
-
54
- interface DButton {
55
41
  /**
56
42
  * Sets an image to be displayed as the button's background. Alias of [DButton:SetImage](https://wiki.facepunch.com/gmod/DButton:SetImage)
57
43
  * @realm client and menu
58
44
  * @source https://wiki.facepunch.com/gmod/DButton:SetIcon
59
45
  */
60
46
  SetIcon(self: DButton, img?: string): void;
61
- }
62
-
63
- interface DButton {
64
47
  /**
65
48
  * Sets an image to be displayed as the button's background.
66
49
  *
@@ -72,9 +55,6 @@ interface DButton {
72
55
  * @source https://wiki.facepunch.com/gmod/DButton:SetImage
73
56
  */
74
57
  SetImage(self: DButton, img?: string): void;
75
- }
76
-
77
- interface DButton {
78
58
  /**
79
59
  * Sets an image to be displayed as the button's background.
80
60
  *
@@ -86,3 +66,10 @@ interface DButton {
86
66
  SetMaterial(self: DButton, img?: IMaterial): void;
87
67
  }
88
68
 
69
+
70
+
71
+
72
+
73
+
74
+
75
+
@@ -6,36 +6,25 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DCheckBox
8
8
  */
9
- interface DCheckBox extends DButton {}
10
-
11
- interface DCheckBox {
9
+ interface DCheckBox extends DButton {
12
10
  /**
13
11
  * Calls [DCheckBox:Toggle](https://wiki.facepunch.com/gmod/DCheckBox:Toggle)
14
12
  * @realm client and menu
15
13
  * @source https://wiki.facepunch.com/gmod/DCheckBox:DoClick
16
14
  */
17
15
  DoClick(self: DCheckBox): void;
18
- }
19
-
20
- interface DCheckBox {
21
16
  /**
22
17
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the checked state of the checkbox.
23
18
  * @realm client and menu
24
19
  * @source https://wiki.facepunch.com/gmod/DCheckBox:GetChecked
25
20
  */
26
21
  GetChecked(self: DCheckBox): boolean;
27
- }
28
-
29
- interface DCheckBox {
30
22
  /**
31
23
  * Returns whether the state of the checkbox is being edited. This means whether the user is currently clicking (mouse-down) on the checkbox, and applies to both the left and right mouse buttons.
32
24
  * @realm client and menu
33
25
  * @source https://wiki.facepunch.com/gmod/DCheckBox:IsEditing
34
26
  */
35
27
  IsEditing(self: DCheckBox): boolean;
36
- }
37
-
38
- interface DCheckBox {
39
28
  /**
40
29
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the checked state of the checkbox. Does not call the checkbox's [DCheckBox:OnChange](https://wiki.facepunch.com/gmod/DCheckBox:OnChange) and [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged) methods, unlike [DCheckBox:SetValue](https://wiki.facepunch.com/gmod/DCheckBox:SetValue).
41
30
  * @realm client and menu
@@ -44,3 +33,7 @@ interface DCheckBox {
44
33
  SetChecked(self: DCheckBox, checked: boolean): void;
45
34
  }
46
35
 
36
+
37
+
38
+
39
+