@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
@@ -4,8 +4,6 @@
4
4
  * The object returned by [ai_schedule.New](https://wiki.facepunch.com/gmod/ai_schedule.New).
5
5
  * @source https://wiki.facepunch.com/gmod/Schedule
6
6
  */
7
- interface Schedule {}
8
-
9
7
  interface Schedule {
10
8
  /**
11
9
  * Adds a task to the schedule. See also [Schedule:AddTaskEx](https://wiki.facepunch.com/gmod/Schedule:AddTaskEx) if you wish to customize task start and run function names.
@@ -16,9 +14,7 @@ interface Schedule {
16
14
  * @source https://wiki.facepunch.com/gmod/Schedule:AddTask
17
15
  */
18
16
  AddTask(self: Schedule, taskname: string, taskdata: any): void;
19
- }
20
17
 
21
- interface Schedule {
22
18
  /**
23
19
  * Adds a task to the schedule with completely custom function names.
24
20
  *
@@ -28,27 +24,21 @@ interface Schedule {
28
24
  * @source https://wiki.facepunch.com/gmod/Schedule:AddTaskEx
29
25
  */
30
26
  AddTaskEx(self: Schedule, start: string, run: string, data: number): void;
31
- }
32
27
 
33
- interface Schedule {
34
28
  /**
35
29
  * Adds an engine task to the schedule.
36
30
  * @realm server
37
31
  * @source https://wiki.facepunch.com/gmod/Schedule:EngTask
38
32
  */
39
33
  EngTask(self: Schedule, taskname: string, taskdata: number): void;
40
- }
41
34
 
42
- interface Schedule {
43
35
  /**
44
36
  * Returns the task at the given index.
45
37
  * @realm server
46
38
  * @source https://wiki.facepunch.com/gmod/Schedule:GetTask
47
39
  */
48
40
  GetTask(self: Schedule, num: number): void;
49
- }
50
41
 
51
- interface Schedule {
52
42
  /**
53
43
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
54
44
  * Initialises the Schedule. Called by [ai_schedule.New](https://wiki.facepunch.com/gmod/ai_schedule.New) when the Schedule is created.
@@ -56,9 +46,7 @@ interface Schedule {
56
46
  * @source https://wiki.facepunch.com/gmod/Schedule:Init
57
47
  */
58
48
  Init(self: Schedule, debugName: string): void;
59
- }
60
49
 
61
- interface Schedule {
62
50
  /**
63
51
  * Returns the number of tasks in the schedule.
64
52
  * @realm server
@@ -66,4 +54,3 @@ interface Schedule {
66
54
  */
67
55
  NumTasks(self: Schedule): number;
68
56
  }
69
-
@@ -13,9 +13,7 @@ interface Scripted_entsLib {
13
13
  * @source https://wiki.facepunch.com/gmod/scripted_ents.Alias
14
14
  */
15
15
  Alias(alias: string, classname: string): void;
16
- }
17
16
 
18
- interface Scripted_entsLib {
19
17
  /**
20
18
  * Returns a copy of the ENT table for a class, including functions defined by
21
19
  * the base class.
@@ -30,19 +28,14 @@ interface Scripted_entsLib {
30
28
  * @source https://wiki.facepunch.com/gmod/scripted_ents.Get
31
29
  */
32
30
  Get(classname: string): table;
33
- }
34
31
 
35
-
36
- interface Scripted_entsLib {
37
32
  /**
38
33
  * Returns a copy of the list of all ENT tables registered
39
34
  * @realm shared
40
35
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetList
41
36
  */
42
37
  GetList(): Table<string, table>;
43
- }
44
38
 
45
- interface Scripted_entsLib {
46
39
  /**
47
40
  * Retrieves a member of an entity's table.
48
41
  *
@@ -53,46 +46,35 @@ interface Scripted_entsLib {
53
46
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetMember
54
47
  */
55
48
  GetMember(classname: string, name: string): any;
56
- }
57
-
58
49
 
59
- interface Scripted_entsLib {
60
50
  /**
61
51
  * Returns a list of all ENT tables which contain ENT.Spawnable
62
52
  * @realm shared
63
53
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetSpawnable
64
54
  */
65
55
  GetSpawnable(): table;
66
- }
67
56
 
68
- interface Scripted_entsLib {
69
57
  /**
70
58
  * Returns the actual ENT table for a class. Modifying functions/variables in this table will change newly spawned entities
71
59
  * @realm shared
72
60
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetStored
73
61
  */
74
62
  GetStored(classname: string): table;
75
- }
76
63
 
77
- interface Scripted_entsLib {
78
64
  /**
79
65
  * Returns the 'type' of a class, this will one of the following: 'anim', 'ai', 'brush', 'point'.
80
66
  * @realm shared
81
67
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetType
82
68
  */
83
69
  GetType(classname: string): string;
84
- }
85
70
 
86
- interface Scripted_entsLib {
87
71
  /**
88
72
  * Checks if name is based on base
89
73
  * @realm shared
90
74
  * @source https://wiki.facepunch.com/gmod/scripted_ents.IsBasedOn
91
75
  */
92
76
  IsBasedOn(name: string, base: string): boolean;
93
- }
94
77
 
95
- interface Scripted_entsLib {
96
78
  /**
97
79
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
98
80
  *
@@ -108,9 +90,7 @@ interface Scripted_entsLib {
108
90
  * @source https://wiki.facepunch.com/gmod/scripted_ents.OnLoaded
109
91
  */
110
92
  OnLoaded(): void;
111
- }
112
93
 
113
- interface Scripted_entsLib {
114
94
  /**
115
95
  * Registers an ENT table with a classname. Reregistering an existing classname will automatically update the functions of all existing entities of that class.
116
96
  *
@@ -121,4 +101,3 @@ interface Scripted_entsLib {
121
101
  */
122
102
  Register(ENT: ENT, classname: string): void;
123
103
  }
124
-
@@ -13,9 +13,7 @@ interface SearchLib {
13
13
  * @source https://wiki.facepunch.com/gmod/search.AddProvider
14
14
  */
15
15
  AddProvider(provider: (searchQuery: string) => table, id?: string): void;
16
- }
17
16
 
18
- interface SearchLib {
19
17
  /**
20
18
  * Retrieves search results.
21
19
  * @realm client
@@ -23,4 +21,3 @@ interface SearchLib {
23
21
  */
24
22
  GetResults(query: string, types?: string, maxResults?: number): table;
25
23
  }
26
-
@@ -14,9 +14,7 @@ interface ServerlistLib {
14
14
  * @source https://wiki.facepunch.com/gmod/serverlist.AddCurrentServerToFavorites
15
15
  */
16
16
  AddCurrentServerToFavorites(addOrRemove: boolean): void;
17
- }
18
17
 
19
- interface ServerlistLib {
20
18
  /**
21
19
  * Adds the given server address to their favorites.
22
20
  *
@@ -24,9 +22,7 @@ interface ServerlistLib {
24
22
  * @source https://wiki.facepunch.com/gmod/serverlist.AddServerToFavorites
25
23
  */
26
24
  AddServerToFavorites(address: string): void;
27
- }
28
25
 
29
- interface ServerlistLib {
30
26
  /**
31
27
  * Returns true if the current server address is in their favorites.
32
28
  *
@@ -34,9 +30,7 @@ interface ServerlistLib {
34
30
  * @source https://wiki.facepunch.com/gmod/serverlist.IsCurrentServerFavorite
35
31
  */
36
32
  IsCurrentServerFavorite(): boolean;
37
- }
38
33
 
39
- interface ServerlistLib {
40
34
  /**
41
35
  * Returns true if the given server address is in their favorites.
42
36
  *
@@ -44,36 +38,28 @@ interface ServerlistLib {
44
38
  * @source https://wiki.facepunch.com/gmod/serverlist.IsServerFavorite
45
39
  */
46
40
  IsServerFavorite(address: string): boolean;
47
- }
48
41
 
49
- interface ServerlistLib {
50
42
  /**
51
43
  * Queries a server for its information/ping.
52
44
  * @realm menu
53
45
  * @source https://wiki.facepunch.com/gmod/serverlist.PingServer
54
46
  */
55
47
  PingServer(ip: string, callback: function): void;
56
- }
57
48
 
58
- interface ServerlistLib {
59
49
  /**
60
50
  * Queries a server for its player list.
61
51
  * @realm menu
62
52
  * @source https://wiki.facepunch.com/gmod/serverlist.PlayerList
63
53
  */
64
54
  PlayerList(ip: string, callback: (data: table) => void): void;
65
- }
66
55
 
67
- interface ServerlistLib {
68
56
  /**
69
57
  * Queries the master server for server list.
70
58
  * @realm menu
71
59
  * @source https://wiki.facepunch.com/gmod/serverlist.Query
72
60
  */
73
61
  Query(data: ServerQueryData): void;
74
- }
75
62
 
76
- interface ServerlistLib {
77
63
  /**
78
64
  * Removes the given server address from their favorites.
79
65
  *
@@ -82,4 +68,3 @@ interface ServerlistLib {
82
68
  */
83
69
  RemoveServerFromFavorites(address: string): void;
84
70
  }
85
-
@@ -9,4 +9,3 @@
9
9
  * @deprecated Used in deprecated PanelList. Use DVScrollBar (Used in DScrollPanel).
10
10
  */
11
11
  interface SlideBar extends Panel {}
12
-
@@ -8,4 +8,3 @@
8
8
  * @deprecated Only exists for backwards compatibility with Panel:SetActionFunction and Panel:PostMessage. Use DNumSlider instead.
9
9
  */
10
10
  interface Slider extends Panel {}
11
-
@@ -18,27 +18,21 @@ interface SoundLib {
18
18
  * @source https://wiki.facepunch.com/gmod/sound.Add
19
19
  */
20
20
  Add(soundData: SoundData): void;
21
- }
22
21
 
23
- interface SoundLib {
24
22
  /**
25
23
  * Overrides [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts) defined inside of a `.txt` file; typically used for adding map-specific sounds.
26
24
  * @realm shared
27
25
  * @source https://wiki.facepunch.com/gmod/sound.AddSoundOverrides
28
26
  */
29
27
  AddSoundOverrides(filepath: string): void;
30
- }
31
28
 
32
- interface SoundLib {
33
29
  /**
34
30
  * Emits a sound hint to the game elements to react to, for example to repel or attract antlions.
35
31
  * @realm server
36
32
  * @source https://wiki.facepunch.com/gmod/sound.EmitHint
37
33
  */
38
34
  EmitHint(hint: number, pos: Vector, volume: number, duration: number, owner?: Entity): void;
39
- }
40
35
 
41
- interface SoundLib {
42
36
  /**
43
37
  * Creates a sound from a function.
44
38
  *
@@ -46,27 +40,21 @@ interface SoundLib {
46
40
  * @source https://wiki.facepunch.com/gmod/sound.Generate
47
41
  */
48
42
  Generate(identifier: string, samplerate: number, length: number, callbackOrData: (sampleIndex: number) => number | table, loopStart?: number): void;
49
- }
50
43
 
51
- interface SoundLib {
52
44
  /**
53
45
  * Returns the most dangerous/closest sound hint based on given location and types of sounds to sense.
54
46
  * @realm server
55
47
  * @source https://wiki.facepunch.com/gmod/sound.GetLoudestSoundHint
56
48
  */
57
49
  GetLoudestSoundHint(types: number, pos: Vector): table;
58
- }
59
50
 
60
- interface SoundLib {
61
51
  /**
62
52
  * Returns properties of a [sound script](https://developer.valvesoftware.com/wiki/Soundscripts).
63
53
  * @realm shared
64
54
  * @source https://wiki.facepunch.com/gmod/sound.GetProperties
65
55
  */
66
56
  GetProperties(name: string): SoundData;
67
- }
68
57
 
69
- interface SoundLib {
70
58
  /**
71
59
  * Returns a list of all registered [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts).
72
60
  *
@@ -75,9 +63,7 @@ interface SoundLib {
75
63
  * @source https://wiki.facepunch.com/gmod/sound.GetTable
76
64
  */
77
65
  GetTable(): string[];
78
- }
79
66
 
80
- interface SoundLib {
81
67
  /**
82
68
  * Plays a sound from the specified position in the world.
83
69
  * If you want to play a sound without a position, such as a UI sound, use [surface.PlaySound](https://wiki.facepunch.com/gmod/surface.PlaySound) instead.
@@ -88,9 +74,7 @@ interface SoundLib {
88
74
  * @source https://wiki.facepunch.com/gmod/sound.Play
89
75
  */
90
76
  Play(snd: string, pos: Vector, level?: number, pitch?: number, volume?: number, dsp?: number): void;
91
- }
92
77
 
93
- interface SoundLib {
94
78
  /**
95
79
  * Plays a file from GMod directory. You can find a list of all error codes [here](http://www.un4seen.com/doc/#bass/BASS_ErrorGetCode.html)
96
80
  *
@@ -104,9 +88,7 @@ interface SoundLib {
104
88
  * @source https://wiki.facepunch.com/gmod/sound.PlayFile
105
89
  */
106
90
  PlayFile(path: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
107
- }
108
91
 
109
- interface SoundLib {
110
92
  /**
111
93
  * Allows you to play external sound files, as well as online radio streams.
112
94
  * You can find a list of all error codes [here](http://www.un4seen.com/doc/#bass/BASS_ErrorGetCode.html)
@@ -119,9 +101,7 @@ interface SoundLib {
119
101
  * @source https://wiki.facepunch.com/gmod/sound.PlayURL
120
102
  */
121
103
  PlayURL(url: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
122
- }
123
104
 
124
- interface SoundLib {
125
105
  /**
126
106
  * Sets the gender of a specific actor (model). This is a system from [base Half-Life 2](https://developer.valvesoftware.com/wiki/Global_actors) - `global_actors.txt`.
127
107
  *
@@ -137,4 +117,3 @@ interface SoundLib {
137
117
  */
138
118
  SetActorGender(modelPath: string, gender: string): void;
139
119
  }
140
-
@@ -8,9 +8,7 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/SpawnIcon
10
10
  */
11
- interface SpawnIcon extends DButton {}
12
-
13
- interface SpawnIcon {
11
+ interface SpawnIcon extends DButton {
14
12
  /**
15
13
  * Returns the currently active [Sub Model IDs](https://wiki.facepunch.com/gmod/Structures/BodyGroupData#submodels) for each Body Group of the spawn icon.
16
14
  *
@@ -20,9 +18,7 @@ interface SpawnIcon {
20
18
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetBodyGroup
21
19
  */
22
20
  GetBodyGroup(self: SpawnIcon): string;
23
- }
24
21
 
25
- interface SpawnIcon {
26
22
  /**
27
23
  * Returns the currently set model name. This is set by [SpawnIcon:SetModelName](https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName).
28
24
  *
@@ -30,9 +26,7 @@ interface SpawnIcon {
30
26
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetModelName
31
27
  */
32
28
  GetModelName(self: SpawnIcon): string;
33
- }
34
29
 
35
- interface SpawnIcon {
36
30
  /**
37
31
  * Returns the currently set skin of the spawnicon. This is set by [SpawnIcon:SetSkinID](https://wiki.facepunch.com/gmod/SpawnIcon:SetSkinID).
38
32
  *
@@ -40,9 +34,7 @@ interface SpawnIcon {
40
34
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetSkinID
41
35
  */
42
36
  GetSkinID(self: SpawnIcon): number;
43
- }
44
37
 
45
- interface SpawnIcon {
46
38
  /**
47
39
  * Called when right clicked on the SpawnIcon. It will not be called if there is a selection ([Panel:GetSelectionCanvas](https://wiki.facepunch.com/gmod/Panel:GetSelectionCanvas)), in which case [SANDBOX:SpawnlistOpenGenericMenu](https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistOpenGenericMenu) is called.
48
40
  *
@@ -50,9 +42,7 @@ interface SpawnIcon {
50
42
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:OpenMenu
51
43
  */
52
44
  OpenMenu(self: SpawnIcon): void;
53
- }
54
45
 
55
- interface SpawnIcon {
56
46
  /**
57
47
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
58
48
  *
@@ -65,9 +55,7 @@ interface SpawnIcon {
65
55
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetBodyGroup
66
56
  */
67
57
  SetBodyGroup(self: SpawnIcon, bodyGroupId: number, activeSubModelId: number): void;
68
- }
69
58
 
70
- interface SpawnIcon {
71
59
  /**
72
60
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
73
61
  *
@@ -78,9 +66,7 @@ interface SpawnIcon {
78
66
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName
79
67
  */
80
68
  SetModelName(self: SpawnIcon, mdl: string): void;
81
- }
82
69
 
83
- interface SpawnIcon {
84
70
  /**
85
71
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
86
72
  *
@@ -92,4 +78,3 @@ interface SpawnIcon {
92
78
  */
93
79
  SetSkinID(self: SpawnIcon, skin: number): void;
94
80
  }
95
-
@@ -13,27 +13,21 @@ interface SpawnmenuLib {
13
13
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActivateTool
14
14
  */
15
15
  ActivateTool(tool: string, menu_only?: boolean): void;
16
- }
17
16
 
18
- interface SpawnmenuLib {
19
17
  /**
20
18
  * Activates tools context menu in specified tool tab.
21
19
  * @realm client
22
20
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActivateToolPanel
23
21
  */
24
22
  ActivateToolPanel(tab: number, cp: Panel): void;
25
- }
26
23
 
27
- interface SpawnmenuLib {
28
24
  /**
29
25
  * Returns currently opened control panel of a tool, post process effect or some other menu in spawnmenu.
30
26
  * @realm client
31
27
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel
32
28
  */
33
29
  ActiveControlPanel(): Panel;
34
- }
35
30
 
36
- interface SpawnmenuLib {
37
31
  /**
38
32
  * Registers a new content type that is saveable into spawnlists.
39
33
  * Created/called by [spawnmenu.CreateContentIcon](https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon).
@@ -42,9 +36,7 @@ interface SpawnmenuLib {
42
36
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddContentType
43
37
  */
44
38
  AddContentType(name: string, constructor: (container: Panel, data: table) => Panel): void;
45
- }
46
39
 
47
- interface SpawnmenuLib {
48
40
  /**
49
41
  * Inserts a new tab into the CreationMenus table, used by the creation menu to
50
42
  * generate its tabs (Spawnlists, Weapons, Entities, etc.).
@@ -52,10 +44,7 @@ interface SpawnmenuLib {
52
44
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab
53
45
  */
54
46
  AddCreationTab<T extends Panel>(name: string, _function: () => T, material?: string, order?: number, tooltip?: string): void;
55
- }
56
47
 
57
-
58
- interface SpawnmenuLib {
59
48
  /**
60
49
  * Used to add addon spawnlists to the spawnmenu tree. This function should be called within [SANDBOX:PopulatePropMenu](https://wiki.facepunch.com/gmod/SANDBOX:PopulatePropMenu).
61
50
  *
@@ -68,9 +57,7 @@ interface SpawnmenuLib {
68
57
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddPropCategory
69
58
  */
70
59
  AddPropCategory(classname: string, name: string, contents: table, icon: string, id?: number, parentID?: number, needsApp?: string): void;
71
- }
72
60
 
73
- interface SpawnmenuLib {
74
61
  /**
75
62
  * Used to create a new category in the list inside of a spawnmenu Tool Tab.
76
63
  *
@@ -83,9 +70,7 @@ interface SpawnmenuLib {
83
70
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolCategory
84
71
  */
85
72
  AddToolCategory(tabName: string, className: string, printName: string): void;
86
- }
87
73
 
88
- interface SpawnmenuLib {
89
74
  /**
90
75
  * Adds an option to the right side of the spawnmenu.
91
76
  *
@@ -96,9 +81,7 @@ interface SpawnmenuLib {
96
81
  * @deprecated Legacy argument, no longer works.
97
82
  */
98
83
  AddToolMenuOption(tab: string, category: string, _class: string, name: string, cmd?: string, config?: string, cpanel?: (pnl: Panel) => void, table?: table): void;
99
- }
100
84
 
101
- interface SpawnmenuLib {
102
85
  /**
103
86
  * Adds a new tool tab to the right side of the spawnmenu. (usually via the [SANDBOX:AddToolMenuTabs](https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuTabs) hook)
104
87
  *
@@ -113,9 +96,7 @@ interface SpawnmenuLib {
113
96
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolTab
114
97
  */
115
98
  AddToolTab(name: string, label?: string, icon?: string): void;
116
- }
117
99
 
118
- interface SpawnmenuLib {
119
100
  /**
120
101
  * Clears all the tools from the different tool categories and the categories itself, if ran at the correct place.
121
102
  *
@@ -125,18 +106,14 @@ interface SpawnmenuLib {
125
106
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ClearToolMenus
126
107
  */
127
108
  ClearToolMenus(): void;
128
- }
129
109
 
130
- interface SpawnmenuLib {
131
110
  /**
132
111
  * Creates a new [ContentIcon](https://wiki.facepunch.com/gmod/ContentIcon) previously defined via [spawnmenu.AddContentType](https://wiki.facepunch.com/gmod/spawnmenu.AddContentType).
133
112
  * @realm client
134
113
  * @source https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon
135
114
  */
136
115
  CreateContentIcon(type: string, parent?: Panel, data?: table): Panel;
137
- }
138
116
 
139
- interface SpawnmenuLib {
140
117
  /**
141
118
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
142
119
  *
@@ -147,9 +124,7 @@ interface SpawnmenuLib {
147
124
  * @source https://wiki.facepunch.com/gmod/spawnmenu.DoSaveToTextFiles
148
125
  */
149
126
  DoSaveToTextFiles(spawnlists: table): void;
150
- }
151
127
 
152
- interface SpawnmenuLib {
153
128
  /**
154
129
  * Returns the function to create an vgui element for a specified content type, previously defined by [spawnmenu.AddContentType](https://wiki.facepunch.com/gmod/spawnmenu.AddContentType).
155
130
  *
@@ -161,18 +136,14 @@ interface SpawnmenuLib {
161
136
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetContentType
162
137
  */
163
138
  GetContentType(contentType: string): (container: Panel, data: table) => Panel;
164
- }
165
139
 
166
- interface SpawnmenuLib {
167
140
  /**
168
141
  * Returns the list of Creation tabs. Creation tabs are added via [spawnmenu.AddCreationTab](https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab).
169
142
  * @realm client
170
143
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCreationTabs
171
144
  */
172
145
  GetCreationTabs(): table;
173
- }
174
146
 
175
- interface SpawnmenuLib {
176
147
  /**
177
148
  * Similar to [spawnmenu.GetPropTable](https://wiki.facepunch.com/gmod/spawnmenu.GetPropTable), but only returns spawnlists created by addons via [spawnmenu.AddPropCategory](https://wiki.facepunch.com/gmod/spawnmenu.AddPropCategory).
178
149
  *
@@ -182,9 +153,7 @@ interface SpawnmenuLib {
182
153
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCustomPropTable
183
154
  */
184
155
  GetCustomPropTable(): table;
185
- }
186
156
 
187
- interface SpawnmenuLib {
188
157
  /**
189
158
  * Returns a table of all prop categories and their props in the spawnmenu.
190
159
  *
@@ -196,9 +165,7 @@ interface SpawnmenuLib {
196
165
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetPropTable
197
166
  */
198
167
  GetPropTable(): table;
199
- }
200
168
 
201
- interface SpawnmenuLib {
202
169
  /**
203
170
  * Returns an existing tool tab by name from the right side of the spawnmenu (usually during the [SANDBOX:AddToolMenuTabs](https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuTabs) hook)
204
171
  *
@@ -207,18 +174,14 @@ interface SpawnmenuLib {
207
174
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetToolMenu
208
175
  */
209
176
  GetToolMenu(name: string, label?: string, icon?: string): table;
210
- }
211
177
 
212
- interface SpawnmenuLib {
213
178
  /**
214
179
  * Gets a table of tools on the client.
215
180
  * @realm client
216
181
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetTools
217
182
  */
218
183
  GetTools(): table;
219
- }
220
184
 
221
- interface SpawnmenuLib {
222
185
  /**
223
186
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
224
187
  *
@@ -229,9 +192,7 @@ interface SpawnmenuLib {
229
192
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles
230
193
  */
231
194
  PopulateFromEngineTextFiles(): void;
232
- }
233
195
 
234
- interface SpawnmenuLib {
235
196
  /**
236
197
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
237
198
  *
@@ -240,9 +201,7 @@ interface SpawnmenuLib {
240
201
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromTextFiles
241
202
  */
242
203
  PopulateFromTextFiles(callback: (strFilename: string, strName: string, tabContents: table, icon: string, id: number, parentid: number, needsapp: string) => void): void;
243
- }
244
204
 
245
- interface SpawnmenuLib {
246
205
  /**
247
206
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
248
207
  *
@@ -253,9 +212,7 @@ interface SpawnmenuLib {
253
212
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SaveToTextFiles
254
213
  */
255
214
  SaveToTextFiles(spawnlists: table): void;
256
- }
257
215
 
258
- interface SpawnmenuLib {
259
216
  /**
260
217
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
261
218
  * Sets currently active control panel to be returned by [spawnmenu.ActiveControlPanel](https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel).
@@ -263,18 +220,14 @@ interface SpawnmenuLib {
263
220
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SetActiveControlPanel
264
221
  */
265
222
  SetActiveControlPanel(pnl: Panel): void;
266
- }
267
223
 
268
- interface SpawnmenuLib {
269
224
  /**
270
225
  * Switches the creation tab (left side of the spawnmenu) on the spawnmenu to the given tab.
271
226
  * @realm client
272
227
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SwitchCreationTab
273
228
  */
274
229
  SwitchCreationTab(id: string): void;
275
- }
276
230
 
277
- interface SpawnmenuLib {
278
231
  /**
279
232
  * Opens specified tool tab in spawnmenu.
280
233
  *
@@ -283,4 +236,3 @@ interface SpawnmenuLib {
283
236
  */
284
237
  SwitchToolTab(id: number): void;
285
238
  }
286
-
@@ -8,9 +8,7 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel
10
10
  */
11
- interface SpawnmenuContentPanel extends DPanel {}
12
-
13
- interface SpawnmenuContentPanel {
11
+ interface SpawnmenuContentPanel extends DPanel {
14
12
  /**
15
13
  * Changes the Spawnmenu category to search in
16
14
  *
@@ -18,9 +16,7 @@ interface SpawnmenuContentPanel {
18
16
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:CallPopulateHook
19
17
  */
20
18
  CallPopulateHook(self: SpawnmenuContentPanel, hookname: string): void;
21
- }
22
19
 
23
- interface SpawnmenuContentPanel {
24
20
  /**
25
21
  * Allows the modification of the ContentSidebar
26
22
  *
@@ -28,9 +24,7 @@ interface SpawnmenuContentPanel {
28
24
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableModify
29
25
  */
30
26
  EnableModify(self: SpawnmenuContentPanel): void;
31
- }
32
27
 
33
- interface SpawnmenuContentPanel {
34
28
  /**
35
29
  * Changes the Spawnmenu category to search in
36
30
  *
@@ -38,9 +32,7 @@ interface SpawnmenuContentPanel {
38
32
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableSearch
39
33
  */
40
34
  EnableSearch(self: SpawnmenuContentPanel, category: string, hookname: string): void;
41
- }
42
35
 
43
- interface SpawnmenuContentPanel {
44
36
  /**
45
37
  * Switches the current panel with the given panel
46
38
  *
@@ -49,4 +41,3 @@ interface SpawnmenuContentPanel {
49
41
  */
50
42
  SwitchPanel(self: SpawnmenuContentPanel, panel: Panel): void;
51
43
  }
52
-