@tlua/gmod 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +1 -26
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -11,9 +11,7 @@ interface DebugLib {
11
11
  * @source https://wiki.facepunch.com/gmod/debug.Trace
12
12
  */
13
13
  Trace(): void;
14
- }
15
14
 
16
- interface DebugLib {
17
15
  /**
18
16
  * **NOTE**: This only works on the source dedicated server.
19
17
  *
@@ -27,53 +25,21 @@ interface DebugLib {
27
25
  * @source https://wiki.facepunch.com/gmod/debug.debug
28
26
  */
29
27
  debug(): void;
30
- }
31
28
 
32
- interface DebugLib {
33
29
  /**
34
30
  * Returns the environment of the passed object. This can be set with [debug.setfenv](https://wiki.facepunch.com/gmod/debug.setfenv).
35
31
  * @realm shared and menu
36
32
  * @source https://wiki.facepunch.com/gmod/debug.getfenv
37
33
  */
38
34
  getfenv(object: table): table;
39
- }
40
35
 
41
- interface DebugLib {
42
36
  /**
43
37
  * Returns the current hook settings of the passed thread. The thread argument can be omitted. This is completely different to gamemode hooks. More information on hooks can be found at http://www.lua.org/pil/23.2.html. This function will simply return the function, mask, and count of the last called [debug.sethook](https://wiki.facepunch.com/gmod/debug.sethook).
44
38
  * @realm shared and menu
45
39
  * @source https://wiki.facepunch.com/gmod/debug.gethook
46
40
  */
47
41
  gethook(thread?: thread): (function, string, number);
48
- }
49
42
 
50
- /** Information returned by `debug.getinfo` about a function. */
51
- interface DebugInfo {
52
- name: string;
53
- namewhat: string;
54
- source: string;
55
- short_src: string;
56
- linedefined: number;
57
- lastlinedefined: number;
58
- what: string;
59
- currentline: number;
60
- istailcall: boolean;
61
- nups: number;
62
- nparams: number;
63
- isvararg: boolean;
64
- func: function;
65
- ftransfer: number;
66
- ntransfer: number;
67
- activelines: table;
68
- }
69
-
70
- /**
71
- * Selector for which fields `debug.getinfo` populates. Combines any of
72
- * `"n"`, `"S"`, `"l"`, `"t"`, `"u"`, `"f"`, `"r"`, `"L"`; degrades to `string`.
73
- */
74
- type DebugInfoWhat = string;
75
-
76
- interface DebugLib {
77
43
  /**
78
44
  * Returns debug information about a function.
79
45
  *
@@ -91,10 +57,7 @@ interface DebugLib {
91
57
  getinfo(thread: thread, f: function, what?: DebugInfoWhat): DebugInfo;
92
58
  /** @source https://wiki.facepunch.com/gmod/debug.getinfo */
93
59
  getinfo(thread: thread, f: 0, what?: DebugInfoWhat): DebugInfo;
94
- }
95
-
96
60
 
97
- interface DebugLib {
98
61
  /**
99
62
  * Gets the name and value of a local variable indexed from the level.
100
63
  * **WARNING**: When a function has a tailcall return, you cannot access the locals of this function.
@@ -104,9 +67,7 @@ interface DebugLib {
104
67
  * @source https://wiki.facepunch.com/gmod/debug.getlocal
105
68
  */
106
69
  getlocal(thread?: thread, level?: number, index?: number): (string, any);
107
- }
108
70
 
109
- interface DebugLib {
110
71
  /**
111
72
  * Returns the metatable of the specified value. Can return any value.
112
73
  * @realm shared
@@ -114,10 +75,7 @@ interface DebugLib {
114
75
  * @source https://wiki.facepunch.com/gmod/debug.getmetatable
115
76
  */
116
77
  getmetatable<T extends table>(object: T): T;
117
- }
118
-
119
78
 
120
- interface DebugLib {
121
79
  /**
122
80
  * Returns the internal Lua registry table.
123
81
  *
@@ -131,18 +89,14 @@ interface DebugLib {
131
89
  * @deprecated This function now returns a table that serves as a proxy to Global.FindMetaTable and Global.RegisterMetaTable. If you previously used the registry to get/add metatables, you should use those functions directly instead.
132
90
  */
133
91
  getregistry(): table;
134
- }
135
92
 
136
- interface DebugLib {
137
93
  /**
138
94
  * Used for getting variable values in an index from the passed function. This does nothing for C functions.
139
95
  * @realm shared and menu
140
96
  * @source https://wiki.facepunch.com/gmod/debug.getupvalue
141
97
  */
142
98
  getupvalue(func: function, index: number): (string, any);
143
- }
144
99
 
145
- interface DebugLib {
146
100
  /**
147
101
  * Sets the environment of the passed object.
148
102
  *
@@ -154,9 +108,7 @@ interface DebugLib {
154
108
  * @source https://wiki.facepunch.com/gmod/debug.setfenv
155
109
  */
156
110
  setfenv(object: any, env: table): table;
157
- }
158
111
 
159
- interface DebugLib {
160
112
  /**
161
113
  * Sets the given function as a Lua hook. This is completely different to gamemode hooks. The thread argument can be completely omitted and calling this function with no arguments will remove the current hook. This is used by default for infinite loop detection. More information on hooks can be found at http://www.lua.org/pil/23.2.html and https://www.gammon.com.au/scripts/doc.php?lua=debug.sethook
162
114
  *
@@ -166,9 +118,7 @@ interface DebugLib {
166
118
  * @source https://wiki.facepunch.com/gmod/debug.sethook
167
119
  */
168
120
  sethook(thread: thread, hook: function, mask: string, count: number): void;
169
- }
170
121
 
171
- interface DebugLib {
172
122
  /**
173
123
  * This function was removed due to security concerns.
174
124
  *
@@ -178,18 +128,14 @@ interface DebugLib {
178
128
  * @source https://wiki.facepunch.com/gmod/debug.setlocal
179
129
  */
180
130
  setlocal(thread?: thread, level?: number, index?: number, value?: any): string;
181
- }
182
131
 
183
- interface DebugLib {
184
132
  /**
185
133
  * Sets the object's metatable. Unlike [Global.setmetatable](https://wiki.facepunch.com/gmod/Global.setmetatable), this function works regardless of whether the first object passed is a valid table or not; this function even works on primitive datatypes such as numbers, functions, and even nil.
186
134
  * @realm shared and menu
187
135
  * @source https://wiki.facepunch.com/gmod/debug.setmetatable
188
136
  */
189
137
  setmetatable(object: any, metatable: table): boolean;
190
- }
191
138
 
192
- interface DebugLib {
193
139
  /**
194
140
  * This function was removed due to security concerns.
195
141
  *
@@ -199,18 +145,14 @@ interface DebugLib {
199
145
  * @source https://wiki.facepunch.com/gmod/debug.setupvalue
200
146
  */
201
147
  setupvalue(func: function, index: number, val?: any): string;
202
- }
203
148
 
204
- interface DebugLib {
205
149
  /**
206
150
  * Returns a full execution stack trace.
207
151
  * @realm shared and menu
208
152
  * @source https://wiki.facepunch.com/gmod/debug.traceback
209
153
  */
210
154
  traceback(thread?: thread, message?: string, level?: number): string;
211
- }
212
155
 
213
- interface DebugLib {
214
156
  /**
215
157
  * This function was removed due to security concerns.
216
158
  *
@@ -220,9 +162,7 @@ interface DebugLib {
220
162
  * @source https://wiki.facepunch.com/gmod/debug.upvalueid
221
163
  */
222
164
  upvalueid(func: function, index: number): number;
223
- }
224
165
 
225
- interface DebugLib {
226
166
  /**
227
167
  * This function was removed due to security concerns.
228
168
  *
@@ -234,3 +174,28 @@ interface DebugLib {
234
174
  upvaluejoin(func1: function, upvalueIndex1: number, func2: function, upvalueIndex2: number): void;
235
175
  }
236
176
 
177
+ /** Information returned by `debug.getinfo` about a function. */
178
+ interface DebugInfo {
179
+ name: string;
180
+ namewhat: string;
181
+ source: string;
182
+ short_src: string;
183
+ linedefined: number;
184
+ lastlinedefined: number;
185
+ what: string;
186
+ currentline: number;
187
+ istailcall: boolean;
188
+ nups: number;
189
+ nparams: number;
190
+ isvararg: boolean;
191
+ func: function;
192
+ ftransfer: number;
193
+ ntransfer: number;
194
+ activelines: table;
195
+ }
196
+
197
+ /**
198
+ * Selector for which fields `debug.getinfo` populates. Combines any of
199
+ * `"n"`, `"S"`, `"l"`, `"t"`, `"u"`, `"f"`, `"r"`, `"L"`; degrades to `string`.
200
+ */
201
+ type DebugInfoWhat = string;
@@ -24,9 +24,7 @@ interface DebugoverlayLib {
24
24
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Axis
25
25
  */
26
26
  Axis(origin: Vector, ang: Angle, size: number, lifetime?: number, ignoreZ?: boolean): void;
27
- }
28
27
 
29
- interface DebugoverlayLib {
30
28
  /**
31
29
  * Displays a solid coloured box at the specified position.
32
30
  *
@@ -39,9 +37,7 @@ interface DebugoverlayLib {
39
37
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Box
40
38
  */
41
39
  Box(origin: Vector, mins: Vector, maxs: Vector, lifetime?: number, color?: Color): void;
42
- }
43
40
 
44
- interface DebugoverlayLib {
45
41
  /**
46
42
  * Displays a solid colored rotated box at the specified position.
47
43
  *
@@ -54,9 +50,7 @@ interface DebugoverlayLib {
54
50
  * @source https://wiki.facepunch.com/gmod/debugoverlay.BoxAngles
55
51
  */
56
52
  BoxAngles(pos: Vector, mins: Vector, maxs: Vector, ang: Angle, lifetime?: number, color?: Color): void;
57
- }
58
53
 
59
- interface DebugoverlayLib {
60
54
  /**
61
55
  * Creates a coloured cross at the specified position for the specified time.
62
56
  *
@@ -69,9 +63,7 @@ interface DebugoverlayLib {
69
63
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Cross
70
64
  */
71
65
  Cross(position: Vector, size: number, lifetime?: number, color?: Color, ignoreZ?: boolean): void;
72
- }
73
66
 
74
- interface DebugoverlayLib {
75
67
  /**
76
68
  * Displays 2D text at the specified coordinates.
77
69
  *
@@ -84,9 +76,7 @@ interface DebugoverlayLib {
84
76
  * @source https://wiki.facepunch.com/gmod/debugoverlay.EntityTextAtPosition
85
77
  */
86
78
  EntityTextAtPosition(pos: Vector, line: number, text: string, lifetime?: number, color?: Color): void;
87
- }
88
79
 
89
- interface DebugoverlayLib {
90
80
  /**
91
81
  * Draws a 3D grid of limited size in given position.
92
82
  *
@@ -99,9 +89,7 @@ interface DebugoverlayLib {
99
89
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Grid
100
90
  */
101
91
  Grid(position: Vector): void;
102
- }
103
92
 
104
- interface DebugoverlayLib {
105
93
  /**
106
94
  * Displays a coloured line at the specified position.
107
95
  *
@@ -114,9 +102,7 @@ interface DebugoverlayLib {
114
102
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Line
115
103
  */
116
104
  Line(pos1: Vector, pos2: Vector, lifetime?: number, color?: Color, ignoreZ?: boolean): void;
117
- }
118
105
 
119
- interface DebugoverlayLib {
120
106
  /**
121
107
  * Displays text triangle at the specified coordinates.
122
108
  *
@@ -129,9 +115,7 @@ interface DebugoverlayLib {
129
115
  * @source https://wiki.facepunch.com/gmod/debugoverlay.ScreenText
130
116
  */
131
117
  ScreenText(x: number, y: number, text: string, lifetime?: number, color?: Color): void;
132
- }
133
118
 
134
- interface DebugoverlayLib {
135
119
  /**
136
120
  * Displays a coloured sphere at the specified position.
137
121
  *
@@ -144,9 +128,7 @@ interface DebugoverlayLib {
144
128
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Sphere
145
129
  */
146
130
  Sphere(origin: Vector, size: number, lifetime?: number, color?: Color, ignoreZ?: boolean): void;
147
- }
148
131
 
149
- interface DebugoverlayLib {
150
132
  /**
151
133
  * Displays "swept" box, two boxes connected with lines by their vertices.
152
134
  *
@@ -159,9 +141,7 @@ interface DebugoverlayLib {
159
141
  * @source https://wiki.facepunch.com/gmod/debugoverlay.SweptBox
160
142
  */
161
143
  SweptBox(vStart: Vector, vEnd: Vector, vMins: Vector, vMaxs: Vector, ang: Angle, lifetime?: number, color?: Color): void;
162
- }
163
144
 
164
- interface DebugoverlayLib {
165
145
  /**
166
146
  * Displays text at the specified position.
167
147
  *
@@ -174,9 +154,7 @@ interface DebugoverlayLib {
174
154
  * @source https://wiki.facepunch.com/gmod/debugoverlay.Text
175
155
  */
176
156
  Text(origin: Vector, text: string, lifetime?: number, viewCheck?: boolean): void;
177
- }
178
157
 
179
- interface DebugoverlayLib {
180
158
  /**
181
159
  * Displays a colored triangle at the specified coordinates.
182
160
  *
@@ -190,4 +168,3 @@ interface DebugoverlayLib {
190
168
  */
191
169
  Triangle(pos1: Vector, pos2: Vector, pos3: Vector, lifetime?: number, color?: Color, ignoreZ?: boolean): void;
192
170
  }
193
-
@@ -9,9 +9,7 @@
9
9
  * @realm client
10
10
  * @source https://wiki.facepunch.com/gmod/DEntityProperties
11
11
  */
12
- interface DEntityProperties extends DProperties {}
13
-
14
- interface DEntityProperties {
12
+ interface DEntityProperties extends DProperties {
15
13
  /**
16
14
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
17
15
  *
@@ -22,9 +20,7 @@ interface DEntityProperties {
22
20
  * @source https://wiki.facepunch.com/gmod/DEntityProperties:EditVariable
23
21
  */
24
22
  EditVariable(self: DEntityProperties, varname: string, editdata: table): void;
25
- }
26
23
 
27
- interface DEntityProperties {
28
24
  /**
29
25
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
30
26
  *
@@ -37,9 +33,7 @@ interface DEntityProperties {
37
33
  * @source https://wiki.facepunch.com/gmod/DEntityProperties:EntityLost
38
34
  */
39
35
  EntityLost(self: DEntityProperties): void;
40
- }
41
36
 
42
- interface DEntityProperties {
43
37
  /**
44
38
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
45
39
  *
@@ -50,9 +44,7 @@ interface DEntityProperties {
50
44
  * @source https://wiki.facepunch.com/gmod/DEntityProperties:RebuildControls
51
45
  */
52
46
  RebuildControls(self: DEntityProperties): void;
53
- }
54
47
 
55
- interface DEntityProperties {
56
48
  /**
57
49
  * Sets the entity to be edited by this panel. The entity must support the [Editable Entities](https://wiki.facepunch.com/gmod/Editable_Entities) system or nothing will happen.
58
50
  * @realm client
@@ -60,4 +52,3 @@ interface DEntityProperties {
60
52
  */
61
53
  SetEntity(self: DEntityProperties, ent: Entity): void;
62
54
  }
63
-
@@ -13,9 +13,7 @@ interface DermaLib {
13
13
  * @source https://wiki.facepunch.com/gmod/derma.Color
14
14
  */
15
15
  Color(name: string, pnl: Panel, _default: Color): void;
16
- }
17
16
 
18
- interface DermaLib {
19
17
  /**
20
18
  * Defines a new Derma control with an optional base.
21
19
  *
@@ -29,72 +27,56 @@ interface DermaLib {
29
27
  * @source https://wiki.facepunch.com/gmod/derma.DefineControl
30
28
  */
31
29
  DefineControl(name: string, description: string, tab: table, base: string): table;
32
- }
33
30
 
34
- interface DermaLib {
35
31
  /**
36
32
  * Defines a new skin so that it is usable by Derma. The default skin can be found in `garrysmod/lua/skins/default.lua`.
37
33
  * @realm client and menu
38
34
  * @source https://wiki.facepunch.com/gmod/derma.DefineSkin
39
35
  */
40
36
  DefineSkin(name: string, descriptions: string, skin: table): void;
41
- }
42
37
 
43
- interface DermaLib {
44
38
  /**
45
39
  * Returns the [derma.Controls](https://wiki.facepunch.com/gmod/derma.Controls) table, a list of all derma controls registered with [derma.DefineControl](https://wiki.facepunch.com/gmod/derma.DefineControl).
46
40
  * @realm client and menu
47
41
  * @source https://wiki.facepunch.com/gmod/derma.GetControlList
48
42
  */
49
43
  GetControlList(): table;
50
- }
51
44
 
52
- interface DermaLib {
53
45
  /**
54
46
  * Returns the default skin table, which can be changed with the hook [GM:ForceDermaSkin](https://wiki.facepunch.com/gmod/GM:ForceDermaSkin).
55
47
  * @realm client and menu
56
48
  * @source https://wiki.facepunch.com/gmod/derma.GetDefaultSkin
57
49
  */
58
50
  GetDefaultSkin(): table;
59
- }
60
51
 
61
- interface DermaLib {
62
52
  /**
63
53
  * Returns the skin table of the skin with the supplied name.
64
54
  * @realm client and menu
65
55
  * @source https://wiki.facepunch.com/gmod/derma.GetNamedSkin
66
56
  */
67
57
  GetNamedSkin(name: string): table;
68
- }
69
58
 
70
- interface DermaLib {
71
59
  /**
72
60
  * Returns a copy of the table containing every Derma skin.
73
61
  * @realm client and menu
74
62
  * @source https://wiki.facepunch.com/gmod/derma.GetSkinTable
75
63
  */
76
64
  GetSkinTable(): table;
77
- }
78
65
 
79
- interface DermaLib {
80
66
  /**
81
67
  * Clears all cached panels so that they reassess which skin they should be using.
82
68
  * @realm client and menu
83
69
  * @source https://wiki.facepunch.com/gmod/derma.RefreshSkins
84
70
  */
85
71
  RefreshSkins(): void;
86
- }
87
72
 
88
- interface DermaLib {
89
73
  /**
90
74
  * Returns how many times [derma.RefreshSkins](https://wiki.facepunch.com/gmod/derma.RefreshSkins) has been called.
91
75
  * @realm client and menu
92
76
  * @source https://wiki.facepunch.com/gmod/derma.SkinChangeIndex
93
77
  */
94
78
  SkinChangeIndex(): number;
95
- }
96
79
 
97
- interface DermaLib {
98
80
  /**
99
81
  * Checks if a matching hook function exists in the skin _(based on the concatenation of type and name args)_, then calls it.
100
82
  *
@@ -103,9 +85,7 @@ interface DermaLib {
103
85
  * @source https://wiki.facepunch.com/gmod/derma.SkinHook
104
86
  */
105
87
  SkinHook(type: string, name: string, panel: Panel, vararg1?: any, vararg2?: any): any;
106
- }
107
88
 
108
- interface DermaLib {
109
89
  /**
110
90
  * Returns a function to draw a specified texture of panels skin.
111
91
  *
@@ -116,4 +96,3 @@ interface DermaLib {
116
96
  */
117
97
  SkinTexture(name: string, pnl: Panel, fallback?: function | any): (x: number, y: number, w: number, h: number, clr?: Color) => void;
118
98
  }
119
-
@@ -8,18 +8,14 @@
8
8
  * @realm client and menu
9
9
  * @source https://wiki.facepunch.com/gmod/DExpandButton
10
10
  */
11
- interface DExpandButton extends DButton {}
12
-
13
- interface DExpandButton {
11
+ interface DExpandButton extends DButton {
14
12
  /**
15
13
  * Returns whether this DExpandButton is expanded or not.
16
14
  * @realm client and menu
17
15
  * @source https://wiki.facepunch.com/gmod/DExpandButton:GetExpanded
18
16
  */
19
17
  GetExpanded(self: DExpandButton): boolean;
20
- }
21
18
 
22
- interface DExpandButton {
23
19
  /**
24
20
  * Sets whether this DExpandButton should be expanded or not. Only changes appearance.
25
21
  * @realm client and menu
@@ -27,4 +23,3 @@ interface DExpandButton {
27
23
  */
28
24
  SetExpanded(self: DExpandButton, expanded: boolean): void;
29
25
  }
30
-
@@ -5,36 +5,28 @@ interface DFileBrowser extends DPanel {
5
5
  Divider: DHorizontalDivider;
6
6
  /** The tree view panel for directory navigation. */
7
7
  Tree: DTree;
8
- }
9
8
 
10
- interface DFileBrowser {
11
9
  /**
12
10
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the root directory/folder of the file tree.
13
11
  * @realm client
14
12
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetBaseFolder
15
13
  */
16
14
  GetBaseFolder(self: DFileBrowser): string;
17
- }
18
15
 
19
- interface DFileBrowser {
20
16
  /**
21
17
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the current directory/folder being displayed.
22
18
  * @realm client
23
19
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetCurrentFolder
24
20
  */
25
21
  GetCurrentFolder(self: DFileBrowser): string;
26
- }
27
22
 
28
- interface DFileBrowser {
29
23
  /**
30
24
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the current file type filter on the file list.
31
25
  * @realm client
32
26
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetFileTypes
33
27
  */
34
28
  GetFileTypes(self: DFileBrowser): string;
35
- }
36
29
 
37
- interface DFileBrowser {
38
30
  /**
39
31
  * Returns the [DTree Node](https://wiki.facepunch.com/gmod/DTree_Node) that the file tree stems from.
40
32
  *
@@ -44,27 +36,21 @@ interface DFileBrowser {
44
36
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetFolderNode
45
37
  */
46
38
  GetFolderNode(self: DFileBrowser): Panel;
47
- }
48
39
 
49
- interface DFileBrowser {
50
40
  /**
51
41
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns whether or not the model viewer mode is enabled. In this mode, files are displayed as [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon)s instead of a list.
52
42
  * @realm client
53
43
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetModels
54
44
  */
55
45
  GetModels(self: DFileBrowser): boolean;
56
- }
57
46
 
58
- interface DFileBrowser {
59
47
  /**
60
48
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns whether or not the file tree is open.
61
49
  * @realm client
62
50
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetOpen
63
51
  */
64
52
  GetOpen(self: DFileBrowser): boolean;
65
- }
66
53
 
67
- interface DFileBrowser {
68
54
  /**
69
55
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the access path of the file tree. This is `GAME` unless changed with [DFileBrowser:SetPath](https://wiki.facepunch.com/gmod/DFileBrowser:SetPath).
70
56
  *
@@ -74,18 +60,14 @@ interface DFileBrowser {
74
60
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetPath
75
61
  */
76
62
  GetPath(self: DFileBrowser): string;
77
- }
78
63
 
79
- interface DFileBrowser {
80
64
  /**
81
65
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the current search filter on the file tree.
82
66
  * @realm client
83
67
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:GetSearch
84
68
  */
85
69
  GetSearch(self: DFileBrowser): string;
86
- }
87
70
 
88
- interface DFileBrowser {
89
71
  /**
90
72
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the root directory/folder of the file tree.
91
73
  *
@@ -95,18 +77,14 @@ interface DFileBrowser {
95
77
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetBaseFolder
96
78
  */
97
79
  SetBaseFolder(self: DFileBrowser, baseDir: string): void;
98
- }
99
80
 
100
- interface DFileBrowser {
101
81
  /**
102
82
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the directory/folder from which to display the file list.
103
83
  * @realm client
104
84
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetCurrentFolder
105
85
  */
106
86
  SetCurrentFolder(self: DFileBrowser, currentDir: string): void;
107
- }
108
87
 
109
- interface DFileBrowser {
110
88
  /**
111
89
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the file type filter for the file list.
112
90
  *
@@ -116,9 +94,7 @@ interface DFileBrowser {
116
94
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetFileTypes
117
95
  */
118
96
  SetFileTypes(self: DFileBrowser, fileTypes?: string): void;
119
- }
120
97
 
121
- interface DFileBrowser {
122
98
  /**
123
99
  * Enables or disables the model viewer mode. In this mode, files are displayed as [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon)s instead of a list.
124
100
  *
@@ -129,18 +105,14 @@ interface DFileBrowser {
129
105
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetModels
130
106
  */
131
107
  SetModels(self: DFileBrowser, showModels?: boolean): void;
132
- }
133
108
 
134
- interface DFileBrowser {
135
109
  /**
136
110
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that opens or closes the file tree.
137
111
  * @realm client
138
112
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetOpen
139
113
  */
140
114
  SetOpen(self: DFileBrowser, open?: boolean, useAnim?: boolean): void;
141
- }
142
115
 
143
- interface DFileBrowser {
144
116
  /**
145
117
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the access path for the file tree. This is set to `GAME` by default.
146
118
  *
@@ -150,9 +122,7 @@ interface DFileBrowser {
150
122
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetPath
151
123
  */
152
124
  SetPath(self: DFileBrowser, path: string): void;
153
- }
154
125
 
155
- interface DFileBrowser {
156
126
  /**
157
127
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the search filter for the file tree.
158
128
  *
@@ -162,9 +132,7 @@ interface DFileBrowser {
162
132
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetSearch
163
133
  */
164
134
  SetSearch(self: DFileBrowser, filter?: string): void;
165
- }
166
135
 
167
- interface DFileBrowser {
168
136
  /**
169
137
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
170
138
  * Called to set up the [DTree](https://wiki.facepunch.com/gmod/DTree) and file viewer when a base path has been set.
@@ -175,9 +143,7 @@ interface DFileBrowser {
175
143
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:Setup
176
144
  */
177
145
  Setup(self: DFileBrowser): boolean;
178
- }
179
146
 
180
- interface DFileBrowser {
181
147
  /**
182
148
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
183
149
  * Called to set up the [DListView](https://wiki.facepunch.com/gmod/DListView) or [DIconBrowser](https://wiki.facepunch.com/gmod/DIconBrowser) by [DFileBrowser:Setup](https://wiki.facepunch.com/gmod/DFileBrowser:Setup).
@@ -188,9 +154,7 @@ interface DFileBrowser {
188
154
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetupFiles
189
155
  */
190
156
  SetupFiles(self: DFileBrowser): boolean;
191
- }
192
157
 
193
- interface DFileBrowser {
194
158
  /**
195
159
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
196
160
  * Called to set up the [DTree](https://wiki.facepunch.com/gmod/DTree) by [DFileBrowser:Setup](https://wiki.facepunch.com/gmod/DFileBrowser:Setup).
@@ -198,9 +162,7 @@ interface DFileBrowser {
198
162
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:SetupTree
199
163
  */
200
164
  SetupTree(self: DFileBrowser): boolean;
201
- }
202
165
 
203
- interface DFileBrowser {
204
166
  /**
205
167
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
206
168
  * Builds the file or icon list for the current directory.
@@ -211,9 +173,7 @@ interface DFileBrowser {
211
173
  * @source https://wiki.facepunch.com/gmod/DFileBrowser:ShowFolder
212
174
  */
213
175
  ShowFolder(self: DFileBrowser, currentDir: string): void;
214
- }
215
176
 
216
- interface DFileBrowser {
217
177
  /**
218
178
  * Sorts the file list.
219
179
  *
@@ -225,4 +185,3 @@ interface DFileBrowser {
225
185
  */
226
186
  SortFiles(self: DFileBrowser, descending?: boolean): void;
227
187
  }
228
-