@tlua/gmod 1.0.5 → 1.0.6

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