@tlua/gmod 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -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,6 @@ 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
-
21
- interface Schedule {
22
17
  /**
23
18
  * Adds a task to the schedule with completely custom function names.
24
19
  *
@@ -28,27 +23,18 @@ interface Schedule {
28
23
  * @source https://wiki.facepunch.com/gmod/Schedule:AddTaskEx
29
24
  */
30
25
  AddTaskEx(self: Schedule, start: string, run: string, data: number): void;
31
- }
32
-
33
- interface Schedule {
34
26
  /**
35
27
  * Adds an engine task to the schedule.
36
28
  * @realm server
37
29
  * @source https://wiki.facepunch.com/gmod/Schedule:EngTask
38
30
  */
39
31
  EngTask(self: Schedule, taskname: string, taskdata: number): void;
40
- }
41
-
42
- interface Schedule {
43
32
  /**
44
33
  * Returns the task at the given index.
45
34
  * @realm server
46
35
  * @source https://wiki.facepunch.com/gmod/Schedule:GetTask
47
36
  */
48
37
  GetTask(self: Schedule, num: number): void;
49
- }
50
-
51
- interface Schedule {
52
38
  /**
53
39
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
54
40
  * Initialises the Schedule. Called by [ai_schedule.New](https://wiki.facepunch.com/gmod/ai_schedule.New) when the Schedule is created.
@@ -56,9 +42,6 @@ interface Schedule {
56
42
  * @source https://wiki.facepunch.com/gmod/Schedule:Init
57
43
  */
58
44
  Init(self: Schedule, debugName: string): void;
59
- }
60
-
61
- interface Schedule {
62
45
  /**
63
46
  * Returns the number of tasks in the schedule.
64
47
  * @realm server
@@ -67,3 +50,9 @@ interface Schedule {
67
50
  NumTasks(self: Schedule): number;
68
51
  }
69
52
 
53
+
54
+
55
+
56
+
57
+
58
+
@@ -13,9 +13,6 @@ 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
-
18
- interface Scripted_entsLib {
19
16
  /**
20
17
  * Returns a copy of the ENT table for a class, including functions defined by
21
18
  * the base class.
@@ -30,19 +27,12 @@ interface Scripted_entsLib {
30
27
  * @source https://wiki.facepunch.com/gmod/scripted_ents.Get
31
28
  */
32
29
  Get(classname: string): table;
33
- }
34
-
35
-
36
- interface Scripted_entsLib {
37
30
  /**
38
31
  * Returns a copy of the list of all ENT tables registered
39
32
  * @realm shared
40
33
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetList
41
34
  */
42
35
  GetList(): Table<string, table>;
43
- }
44
-
45
- interface Scripted_entsLib {
46
36
  /**
47
37
  * Retrieves a member of an entity's table.
48
38
  *
@@ -53,46 +43,30 @@ interface Scripted_entsLib {
53
43
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetMember
54
44
  */
55
45
  GetMember(classname: string, name: string): any;
56
- }
57
-
58
-
59
- interface Scripted_entsLib {
60
46
  /**
61
47
  * Returns a list of all ENT tables which contain ENT.Spawnable
62
48
  * @realm shared
63
49
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetSpawnable
64
50
  */
65
51
  GetSpawnable(): table;
66
- }
67
-
68
- interface Scripted_entsLib {
69
52
  /**
70
53
  * Returns the actual ENT table for a class. Modifying functions/variables in this table will change newly spawned entities
71
54
  * @realm shared
72
55
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetStored
73
56
  */
74
57
  GetStored(classname: string): table;
75
- }
76
-
77
- interface Scripted_entsLib {
78
58
  /**
79
59
  * Returns the 'type' of a class, this will one of the following: 'anim', 'ai', 'brush', 'point'.
80
60
  * @realm shared
81
61
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetType
82
62
  */
83
63
  GetType(classname: string): string;
84
- }
85
-
86
- interface Scripted_entsLib {
87
64
  /**
88
65
  * Checks if name is based on base
89
66
  * @realm shared
90
67
  * @source https://wiki.facepunch.com/gmod/scripted_ents.IsBasedOn
91
68
  */
92
69
  IsBasedOn(name: string, base: string): boolean;
93
- }
94
-
95
- interface Scripted_entsLib {
96
70
  /**
97
71
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
98
72
  *
@@ -108,9 +82,6 @@ interface Scripted_entsLib {
108
82
  * @source https://wiki.facepunch.com/gmod/scripted_ents.OnLoaded
109
83
  */
110
84
  OnLoaded(): void;
111
- }
112
-
113
- interface Scripted_entsLib {
114
85
  /**
115
86
  * Registers an ENT table with a classname. Reregistering an existing classname will automatically update the functions of all existing entities of that class.
116
87
  *
@@ -122,3 +93,14 @@ interface Scripted_entsLib {
122
93
  Register(ENT: ENT, classname: string): void;
123
94
  }
124
95
 
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
@@ -13,9 +13,6 @@ 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
-
18
- interface SearchLib {
19
16
  /**
20
17
  * Retrieves search results.
21
18
  * @realm client
@@ -24,3 +21,4 @@ interface SearchLib {
24
21
  GetResults(query: string, types?: string, maxResults?: number): table;
25
22
  }
26
23
 
24
+
@@ -14,9 +14,6 @@ interface ServerlistLib {
14
14
  * @source https://wiki.facepunch.com/gmod/serverlist.AddCurrentServerToFavorites
15
15
  */
16
16
  AddCurrentServerToFavorites(addOrRemove: boolean): void;
17
- }
18
-
19
- interface ServerlistLib {
20
17
  /**
21
18
  * Adds the given server address to their favorites.
22
19
  *
@@ -24,9 +21,6 @@ interface ServerlistLib {
24
21
  * @source https://wiki.facepunch.com/gmod/serverlist.AddServerToFavorites
25
22
  */
26
23
  AddServerToFavorites(address: string): void;
27
- }
28
-
29
- interface ServerlistLib {
30
24
  /**
31
25
  * Returns true if the current server address is in their favorites.
32
26
  *
@@ -34,9 +28,6 @@ interface ServerlistLib {
34
28
  * @source https://wiki.facepunch.com/gmod/serverlist.IsCurrentServerFavorite
35
29
  */
36
30
  IsCurrentServerFavorite(): boolean;
37
- }
38
-
39
- interface ServerlistLib {
40
31
  /**
41
32
  * Returns true if the given server address is in their favorites.
42
33
  *
@@ -44,36 +35,24 @@ interface ServerlistLib {
44
35
  * @source https://wiki.facepunch.com/gmod/serverlist.IsServerFavorite
45
36
  */
46
37
  IsServerFavorite(address: string): boolean;
47
- }
48
-
49
- interface ServerlistLib {
50
38
  /**
51
39
  * Queries a server for its information/ping.
52
40
  * @realm menu
53
41
  * @source https://wiki.facepunch.com/gmod/serverlist.PingServer
54
42
  */
55
43
  PingServer(ip: string, callback: function): void;
56
- }
57
-
58
- interface ServerlistLib {
59
44
  /**
60
45
  * Queries a server for its player list.
61
46
  * @realm menu
62
47
  * @source https://wiki.facepunch.com/gmod/serverlist.PlayerList
63
48
  */
64
49
  PlayerList(ip: string, callback: (data: table) => void): void;
65
- }
66
-
67
- interface ServerlistLib {
68
50
  /**
69
51
  * Queries the master server for server list.
70
52
  * @realm menu
71
53
  * @source https://wiki.facepunch.com/gmod/serverlist.Query
72
54
  */
73
55
  Query(data: ServerQueryData): void;
74
- }
75
-
76
- interface ServerlistLib {
77
56
  /**
78
57
  * Removes the given server address from their favorites.
79
58
  *
@@ -83,3 +62,10 @@ interface ServerlistLib {
83
62
  RemoveServerFromFavorites(address: string): void;
84
63
  }
85
64
 
65
+
66
+
67
+
68
+
69
+
70
+
71
+
@@ -18,27 +18,18 @@ interface SoundLib {
18
18
  * @source https://wiki.facepunch.com/gmod/sound.Add
19
19
  */
20
20
  Add(soundData: SoundData): void;
21
- }
22
-
23
- interface SoundLib {
24
21
  /**
25
22
  * Overrides [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts) defined inside of a `.txt` file; typically used for adding map-specific sounds.
26
23
  * @realm shared
27
24
  * @source https://wiki.facepunch.com/gmod/sound.AddSoundOverrides
28
25
  */
29
26
  AddSoundOverrides(filepath: string): void;
30
- }
31
-
32
- interface SoundLib {
33
27
  /**
34
28
  * Emits a sound hint to the game elements to react to, for example to repel or attract antlions.
35
29
  * @realm server
36
30
  * @source https://wiki.facepunch.com/gmod/sound.EmitHint
37
31
  */
38
32
  EmitHint(hint: number, pos: Vector, volume: number, duration: number, owner?: Entity): void;
39
- }
40
-
41
- interface SoundLib {
42
33
  /**
43
34
  * Creates a sound from a function.
44
35
  *
@@ -46,27 +37,18 @@ interface SoundLib {
46
37
  * @source https://wiki.facepunch.com/gmod/sound.Generate
47
38
  */
48
39
  Generate(identifier: string, samplerate: number, length: number, callbackOrData: (sampleIndex: number) => number | table, loopStart?: number): void;
49
- }
50
-
51
- interface SoundLib {
52
40
  /**
53
41
  * Returns the most dangerous/closest sound hint based on given location and types of sounds to sense.
54
42
  * @realm server
55
43
  * @source https://wiki.facepunch.com/gmod/sound.GetLoudestSoundHint
56
44
  */
57
45
  GetLoudestSoundHint(types: number, pos: Vector): table;
58
- }
59
-
60
- interface SoundLib {
61
46
  /**
62
47
  * Returns properties of a [sound script](https://developer.valvesoftware.com/wiki/Soundscripts).
63
48
  * @realm shared
64
49
  * @source https://wiki.facepunch.com/gmod/sound.GetProperties
65
50
  */
66
51
  GetProperties(name: string): SoundData;
67
- }
68
-
69
- interface SoundLib {
70
52
  /**
71
53
  * Returns a list of all registered [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts).
72
54
  *
@@ -75,9 +57,6 @@ interface SoundLib {
75
57
  * @source https://wiki.facepunch.com/gmod/sound.GetTable
76
58
  */
77
59
  GetTable(): string[];
78
- }
79
-
80
- interface SoundLib {
81
60
  /**
82
61
  * Plays a sound from the specified position in the world.
83
62
  * 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 +67,6 @@ interface SoundLib {
88
67
  * @source https://wiki.facepunch.com/gmod/sound.Play
89
68
  */
90
69
  Play(snd: string, pos: Vector, level?: number, pitch?: number, volume?: number, dsp?: number): void;
91
- }
92
-
93
- interface SoundLib {
94
70
  /**
95
71
  * 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
72
  *
@@ -104,9 +80,6 @@ interface SoundLib {
104
80
  * @source https://wiki.facepunch.com/gmod/sound.PlayFile
105
81
  */
106
82
  PlayFile(path: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
107
- }
108
-
109
- interface SoundLib {
110
83
  /**
111
84
  * Allows you to play external sound files, as well as online radio streams.
112
85
  * You can find a list of all error codes [here](http://www.un4seen.com/doc/#bass/BASS_ErrorGetCode.html)
@@ -119,9 +92,6 @@ interface SoundLib {
119
92
  * @source https://wiki.facepunch.com/gmod/sound.PlayURL
120
93
  */
121
94
  PlayURL(url: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
122
- }
123
-
124
- interface SoundLib {
125
95
  /**
126
96
  * 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
97
  *
@@ -138,3 +108,13 @@ interface SoundLib {
138
108
  SetActorGender(modelPath: string, gender: string): void;
139
109
  }
140
110
 
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
@@ -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,6 @@ interface SpawnIcon {
20
18
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetBodyGroup
21
19
  */
22
20
  GetBodyGroup(self: SpawnIcon): string;
23
- }
24
-
25
- interface SpawnIcon {
26
21
  /**
27
22
  * Returns the currently set model name. This is set by [SpawnIcon:SetModelName](https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName).
28
23
  *
@@ -30,9 +25,6 @@ interface SpawnIcon {
30
25
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetModelName
31
26
  */
32
27
  GetModelName(self: SpawnIcon): string;
33
- }
34
-
35
- interface SpawnIcon {
36
28
  /**
37
29
  * Returns the currently set skin of the spawnicon. This is set by [SpawnIcon:SetSkinID](https://wiki.facepunch.com/gmod/SpawnIcon:SetSkinID).
38
30
  *
@@ -40,9 +32,6 @@ interface SpawnIcon {
40
32
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetSkinID
41
33
  */
42
34
  GetSkinID(self: SpawnIcon): number;
43
- }
44
-
45
- interface SpawnIcon {
46
35
  /**
47
36
  * 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
37
  *
@@ -50,9 +39,6 @@ interface SpawnIcon {
50
39
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:OpenMenu
51
40
  */
52
41
  OpenMenu(self: SpawnIcon): void;
53
- }
54
-
55
- interface SpawnIcon {
56
42
  /**
57
43
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
58
44
  *
@@ -65,9 +51,6 @@ interface SpawnIcon {
65
51
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetBodyGroup
66
52
  */
67
53
  SetBodyGroup(self: SpawnIcon, bodyGroupId: number, activeSubModelId: number): void;
68
- }
69
-
70
- interface SpawnIcon {
71
54
  /**
72
55
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
73
56
  *
@@ -78,9 +61,6 @@ interface SpawnIcon {
78
61
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName
79
62
  */
80
63
  SetModelName(self: SpawnIcon, mdl: string): void;
81
- }
82
-
83
- interface SpawnIcon {
84
64
  /**
85
65
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
86
66
  *
@@ -93,3 +73,10 @@ interface SpawnIcon {
93
73
  SetSkinID(self: SpawnIcon, skin: number): void;
94
74
  }
95
75
 
76
+
77
+
78
+
79
+
80
+
81
+
82
+
@@ -13,27 +13,18 @@ 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
-
18
- interface SpawnmenuLib {
19
16
  /**
20
17
  * Activates tools context menu in specified tool tab.
21
18
  * @realm client
22
19
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActivateToolPanel
23
20
  */
24
21
  ActivateToolPanel(tab: number, cp: Panel): void;
25
- }
26
-
27
- interface SpawnmenuLib {
28
22
  /**
29
23
  * Returns currently opened control panel of a tool, post process effect or some other menu in spawnmenu.
30
24
  * @realm client
31
25
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel
32
26
  */
33
27
  ActiveControlPanel(): Panel;
34
- }
35
-
36
- interface SpawnmenuLib {
37
28
  /**
38
29
  * Registers a new content type that is saveable into spawnlists.
39
30
  * Created/called by [spawnmenu.CreateContentIcon](https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon).
@@ -42,9 +33,6 @@ interface SpawnmenuLib {
42
33
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddContentType
43
34
  */
44
35
  AddContentType(name: string, constructor: (container: Panel, data: table) => Panel): void;
45
- }
46
-
47
- interface SpawnmenuLib {
48
36
  /**
49
37
  * Inserts a new tab into the CreationMenus table, used by the creation menu to
50
38
  * generate its tabs (Spawnlists, Weapons, Entities, etc.).
@@ -52,10 +40,6 @@ interface SpawnmenuLib {
52
40
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab
53
41
  */
54
42
  AddCreationTab<T extends Panel>(name: string, _function: () => T, material?: string, order?: number, tooltip?: string): void;
55
- }
56
-
57
-
58
- interface SpawnmenuLib {
59
43
  /**
60
44
  * 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
45
  *
@@ -68,9 +52,6 @@ interface SpawnmenuLib {
68
52
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddPropCategory
69
53
  */
70
54
  AddPropCategory(classname: string, name: string, contents: table, icon: string, id?: number, parentID?: number, needsApp?: string): void;
71
- }
72
-
73
- interface SpawnmenuLib {
74
55
  /**
75
56
  * Used to create a new category in the list inside of a spawnmenu Tool Tab.
76
57
  *
@@ -83,9 +64,6 @@ interface SpawnmenuLib {
83
64
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolCategory
84
65
  */
85
66
  AddToolCategory(tabName: string, className: string, printName: string): void;
86
- }
87
-
88
- interface SpawnmenuLib {
89
67
  /**
90
68
  * Adds an option to the right side of the spawnmenu.
91
69
  *
@@ -96,9 +74,6 @@ interface SpawnmenuLib {
96
74
  * @deprecated Legacy argument, no longer works.
97
75
  */
98
76
  AddToolMenuOption(tab: string, category: string, _class: string, name: string, cmd?: string, config?: string, cpanel?: (pnl: Panel) => void, table?: table): void;
99
- }
100
-
101
- interface SpawnmenuLib {
102
77
  /**
103
78
  * 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
79
  *
@@ -113,9 +88,6 @@ interface SpawnmenuLib {
113
88
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolTab
114
89
  */
115
90
  AddToolTab(name: string, label?: string, icon?: string): void;
116
- }
117
-
118
- interface SpawnmenuLib {
119
91
  /**
120
92
  * Clears all the tools from the different tool categories and the categories itself, if ran at the correct place.
121
93
  *
@@ -125,18 +97,12 @@ interface SpawnmenuLib {
125
97
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ClearToolMenus
126
98
  */
127
99
  ClearToolMenus(): void;
128
- }
129
-
130
- interface SpawnmenuLib {
131
100
  /**
132
101
  * Creates a new [ContentIcon](https://wiki.facepunch.com/gmod/ContentIcon) previously defined via [spawnmenu.AddContentType](https://wiki.facepunch.com/gmod/spawnmenu.AddContentType).
133
102
  * @realm client
134
103
  * @source https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon
135
104
  */
136
105
  CreateContentIcon(type: string, parent?: Panel, data?: table): Panel;
137
- }
138
-
139
- interface SpawnmenuLib {
140
106
  /**
141
107
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
142
108
  *
@@ -147,9 +113,6 @@ interface SpawnmenuLib {
147
113
  * @source https://wiki.facepunch.com/gmod/spawnmenu.DoSaveToTextFiles
148
114
  */
149
115
  DoSaveToTextFiles(spawnlists: table): void;
150
- }
151
-
152
- interface SpawnmenuLib {
153
116
  /**
154
117
  * 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
118
  *
@@ -161,18 +124,12 @@ interface SpawnmenuLib {
161
124
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetContentType
162
125
  */
163
126
  GetContentType(contentType: string): (container: Panel, data: table) => Panel;
164
- }
165
-
166
- interface SpawnmenuLib {
167
127
  /**
168
128
  * Returns the list of Creation tabs. Creation tabs are added via [spawnmenu.AddCreationTab](https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab).
169
129
  * @realm client
170
130
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCreationTabs
171
131
  */
172
132
  GetCreationTabs(): table;
173
- }
174
-
175
- interface SpawnmenuLib {
176
133
  /**
177
134
  * 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
135
  *
@@ -182,9 +139,6 @@ interface SpawnmenuLib {
182
139
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCustomPropTable
183
140
  */
184
141
  GetCustomPropTable(): table;
185
- }
186
-
187
- interface SpawnmenuLib {
188
142
  /**
189
143
  * Returns a table of all prop categories and their props in the spawnmenu.
190
144
  *
@@ -196,9 +150,6 @@ interface SpawnmenuLib {
196
150
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetPropTable
197
151
  */
198
152
  GetPropTable(): table;
199
- }
200
-
201
- interface SpawnmenuLib {
202
153
  /**
203
154
  * 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
155
  *
@@ -207,18 +158,12 @@ interface SpawnmenuLib {
207
158
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetToolMenu
208
159
  */
209
160
  GetToolMenu(name: string, label?: string, icon?: string): table;
210
- }
211
-
212
- interface SpawnmenuLib {
213
161
  /**
214
162
  * Gets a table of tools on the client.
215
163
  * @realm client
216
164
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetTools
217
165
  */
218
166
  GetTools(): table;
219
- }
220
-
221
- interface SpawnmenuLib {
222
167
  /**
223
168
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
224
169
  *
@@ -229,9 +174,6 @@ interface SpawnmenuLib {
229
174
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles
230
175
  */
231
176
  PopulateFromEngineTextFiles(): void;
232
- }
233
-
234
- interface SpawnmenuLib {
235
177
  /**
236
178
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
237
179
  *
@@ -240,9 +182,6 @@ interface SpawnmenuLib {
240
182
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromTextFiles
241
183
  */
242
184
  PopulateFromTextFiles(callback: (strFilename: string, strName: string, tabContents: table, icon: string, id: number, parentid: number, needsapp: string) => void): void;
243
- }
244
-
245
- interface SpawnmenuLib {
246
185
  /**
247
186
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
248
187
  *
@@ -253,9 +192,6 @@ interface SpawnmenuLib {
253
192
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SaveToTextFiles
254
193
  */
255
194
  SaveToTextFiles(spawnlists: table): void;
256
- }
257
-
258
- interface SpawnmenuLib {
259
195
  /**
260
196
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
261
197
  * Sets currently active control panel to be returned by [spawnmenu.ActiveControlPanel](https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel).
@@ -263,18 +199,12 @@ interface SpawnmenuLib {
263
199
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SetActiveControlPanel
264
200
  */
265
201
  SetActiveControlPanel(pnl: Panel): void;
266
- }
267
-
268
- interface SpawnmenuLib {
269
202
  /**
270
203
  * Switches the creation tab (left side of the spawnmenu) on the spawnmenu to the given tab.
271
204
  * @realm client
272
205
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SwitchCreationTab
273
206
  */
274
207
  SwitchCreationTab(id: string): void;
275
- }
276
-
277
- interface SpawnmenuLib {
278
208
  /**
279
209
  * Opens specified tool tab in spawnmenu.
280
210
  *
@@ -284,3 +214,27 @@ interface SpawnmenuLib {
284
214
  SwitchToolTab(id: number): void;
285
215
  }
286
216
 
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+