@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
@@ -13,6 +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
+
16
17
  /**
17
18
  * Retrieves search results.
18
19
  * @realm client
@@ -20,5 +21,3 @@ interface SearchLib {
20
21
  */
21
22
  GetResults(query: string, types?: string, maxResults?: number): table;
22
23
  }
23
-
24
-
@@ -14,6 +14,7 @@ interface ServerlistLib {
14
14
  * @source https://wiki.facepunch.com/gmod/serverlist.AddCurrentServerToFavorites
15
15
  */
16
16
  AddCurrentServerToFavorites(addOrRemove: boolean): void;
17
+
17
18
  /**
18
19
  * Adds the given server address to their favorites.
19
20
  *
@@ -21,6 +22,7 @@ interface ServerlistLib {
21
22
  * @source https://wiki.facepunch.com/gmod/serverlist.AddServerToFavorites
22
23
  */
23
24
  AddServerToFavorites(address: string): void;
25
+
24
26
  /**
25
27
  * Returns true if the current server address is in their favorites.
26
28
  *
@@ -28,6 +30,7 @@ interface ServerlistLib {
28
30
  * @source https://wiki.facepunch.com/gmod/serverlist.IsCurrentServerFavorite
29
31
  */
30
32
  IsCurrentServerFavorite(): boolean;
33
+
31
34
  /**
32
35
  * Returns true if the given server address is in their favorites.
33
36
  *
@@ -35,24 +38,28 @@ interface ServerlistLib {
35
38
  * @source https://wiki.facepunch.com/gmod/serverlist.IsServerFavorite
36
39
  */
37
40
  IsServerFavorite(address: string): boolean;
41
+
38
42
  /**
39
43
  * Queries a server for its information/ping.
40
44
  * @realm menu
41
45
  * @source https://wiki.facepunch.com/gmod/serverlist.PingServer
42
46
  */
43
47
  PingServer(ip: string, callback: function): void;
48
+
44
49
  /**
45
50
  * Queries a server for its player list.
46
51
  * @realm menu
47
52
  * @source https://wiki.facepunch.com/gmod/serverlist.PlayerList
48
53
  */
49
54
  PlayerList(ip: string, callback: (data: table) => void): void;
55
+
50
56
  /**
51
57
  * Queries the master server for server list.
52
58
  * @realm menu
53
59
  * @source https://wiki.facepunch.com/gmod/serverlist.Query
54
60
  */
55
61
  Query(data: ServerQueryData): void;
62
+
56
63
  /**
57
64
  * Removes the given server address from their favorites.
58
65
  *
@@ -61,11 +68,3 @@ interface ServerlistLib {
61
68
  */
62
69
  RemoveServerFromFavorites(address: string): void;
63
70
  }
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
@@ -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,18 +18,21 @@ interface SoundLib {
18
18
  * @source https://wiki.facepunch.com/gmod/sound.Add
19
19
  */
20
20
  Add(soundData: SoundData): void;
21
+
21
22
  /**
22
23
  * Overrides [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts) defined inside of a `.txt` file; typically used for adding map-specific sounds.
23
24
  * @realm shared
24
25
  * @source https://wiki.facepunch.com/gmod/sound.AddSoundOverrides
25
26
  */
26
27
  AddSoundOverrides(filepath: string): void;
28
+
27
29
  /**
28
30
  * Emits a sound hint to the game elements to react to, for example to repel or attract antlions.
29
31
  * @realm server
30
32
  * @source https://wiki.facepunch.com/gmod/sound.EmitHint
31
33
  */
32
34
  EmitHint(hint: number, pos: Vector, volume: number, duration: number, owner?: Entity): void;
35
+
33
36
  /**
34
37
  * Creates a sound from a function.
35
38
  *
@@ -37,18 +40,21 @@ interface SoundLib {
37
40
  * @source https://wiki.facepunch.com/gmod/sound.Generate
38
41
  */
39
42
  Generate(identifier: string, samplerate: number, length: number, callbackOrData: (sampleIndex: number) => number | table, loopStart?: number): void;
43
+
40
44
  /**
41
45
  * Returns the most dangerous/closest sound hint based on given location and types of sounds to sense.
42
46
  * @realm server
43
47
  * @source https://wiki.facepunch.com/gmod/sound.GetLoudestSoundHint
44
48
  */
45
49
  GetLoudestSoundHint(types: number, pos: Vector): table;
50
+
46
51
  /**
47
52
  * Returns properties of a [sound script](https://developer.valvesoftware.com/wiki/Soundscripts).
48
53
  * @realm shared
49
54
  * @source https://wiki.facepunch.com/gmod/sound.GetProperties
50
55
  */
51
56
  GetProperties(name: string): SoundData;
57
+
52
58
  /**
53
59
  * Returns a list of all registered [sound scripts](https://developer.valvesoftware.com/wiki/Soundscripts).
54
60
  *
@@ -57,6 +63,7 @@ interface SoundLib {
57
63
  * @source https://wiki.facepunch.com/gmod/sound.GetTable
58
64
  */
59
65
  GetTable(): string[];
66
+
60
67
  /**
61
68
  * Plays a sound from the specified position in the world.
62
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.
@@ -67,6 +74,7 @@ interface SoundLib {
67
74
  * @source https://wiki.facepunch.com/gmod/sound.Play
68
75
  */
69
76
  Play(snd: string, pos: Vector, level?: number, pitch?: number, volume?: number, dsp?: number): void;
77
+
70
78
  /**
71
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)
72
80
  *
@@ -80,6 +88,7 @@ interface SoundLib {
80
88
  * @source https://wiki.facepunch.com/gmod/sound.PlayFile
81
89
  */
82
90
  PlayFile(path: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
91
+
83
92
  /**
84
93
  * Allows you to play external sound files, as well as online radio streams.
85
94
  * You can find a list of all error codes [here](http://www.un4seen.com/doc/#bass/BASS_ErrorGetCode.html)
@@ -92,6 +101,7 @@ interface SoundLib {
92
101
  * @source https://wiki.facepunch.com/gmod/sound.PlayURL
93
102
  */
94
103
  PlayURL(url: string, flags: string, callback: (channel: IGModAudioChannel, errorID: number, errorName: string) => void): void;
104
+
95
105
  /**
96
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`.
97
107
  *
@@ -107,14 +117,3 @@ interface SoundLib {
107
117
  */
108
118
  SetActorGender(modelPath: string, gender: string): void;
109
119
  }
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
@@ -18,6 +18,7 @@ interface SpawnIcon extends DButton {
18
18
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetBodyGroup
19
19
  */
20
20
  GetBodyGroup(self: SpawnIcon): string;
21
+
21
22
  /**
22
23
  * Returns the currently set model name. This is set by [SpawnIcon:SetModelName](https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName).
23
24
  *
@@ -25,6 +26,7 @@ interface SpawnIcon extends DButton {
25
26
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetModelName
26
27
  */
27
28
  GetModelName(self: SpawnIcon): string;
29
+
28
30
  /**
29
31
  * Returns the currently set skin of the spawnicon. This is set by [SpawnIcon:SetSkinID](https://wiki.facepunch.com/gmod/SpawnIcon:SetSkinID).
30
32
  *
@@ -32,6 +34,7 @@ interface SpawnIcon extends DButton {
32
34
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:GetSkinID
33
35
  */
34
36
  GetSkinID(self: SpawnIcon): number;
37
+
35
38
  /**
36
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.
37
40
  *
@@ -39,6 +42,7 @@ interface SpawnIcon extends DButton {
39
42
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:OpenMenu
40
43
  */
41
44
  OpenMenu(self: SpawnIcon): void;
45
+
42
46
  /**
43
47
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
44
48
  *
@@ -51,6 +55,7 @@ interface SpawnIcon extends DButton {
51
55
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetBodyGroup
52
56
  */
53
57
  SetBodyGroup(self: SpawnIcon, bodyGroupId: number, activeSubModelId: number): void;
58
+
54
59
  /**
55
60
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
56
61
  *
@@ -61,6 +66,7 @@ interface SpawnIcon extends DButton {
61
66
  * @source https://wiki.facepunch.com/gmod/SpawnIcon:SetModelName
62
67
  */
63
68
  SetModelName(self: SpawnIcon, mdl: string): void;
69
+
64
70
  /**
65
71
  * **INTERNAL**: This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.
66
72
  *
@@ -72,11 +78,3 @@ interface SpawnIcon extends DButton {
72
78
  */
73
79
  SetSkinID(self: SpawnIcon, skin: number): void;
74
80
  }
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
@@ -13,18 +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
+
16
17
  /**
17
18
  * Activates tools context menu in specified tool tab.
18
19
  * @realm client
19
20
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActivateToolPanel
20
21
  */
21
22
  ActivateToolPanel(tab: number, cp: Panel): void;
23
+
22
24
  /**
23
25
  * Returns currently opened control panel of a tool, post process effect or some other menu in spawnmenu.
24
26
  * @realm client
25
27
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel
26
28
  */
27
29
  ActiveControlPanel(): Panel;
30
+
28
31
  /**
29
32
  * Registers a new content type that is saveable into spawnlists.
30
33
  * Created/called by [spawnmenu.CreateContentIcon](https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon).
@@ -33,6 +36,7 @@ interface SpawnmenuLib {
33
36
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddContentType
34
37
  */
35
38
  AddContentType(name: string, constructor: (container: Panel, data: table) => Panel): void;
39
+
36
40
  /**
37
41
  * Inserts a new tab into the CreationMenus table, used by the creation menu to
38
42
  * generate its tabs (Spawnlists, Weapons, Entities, etc.).
@@ -40,6 +44,7 @@ interface SpawnmenuLib {
40
44
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab
41
45
  */
42
46
  AddCreationTab<T extends Panel>(name: string, _function: () => T, material?: string, order?: number, tooltip?: string): void;
47
+
43
48
  /**
44
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).
45
50
  *
@@ -52,6 +57,7 @@ interface SpawnmenuLib {
52
57
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddPropCategory
53
58
  */
54
59
  AddPropCategory(classname: string, name: string, contents: table, icon: string, id?: number, parentID?: number, needsApp?: string): void;
60
+
55
61
  /**
56
62
  * Used to create a new category in the list inside of a spawnmenu Tool Tab.
57
63
  *
@@ -64,6 +70,7 @@ interface SpawnmenuLib {
64
70
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolCategory
65
71
  */
66
72
  AddToolCategory(tabName: string, className: string, printName: string): void;
73
+
67
74
  /**
68
75
  * Adds an option to the right side of the spawnmenu.
69
76
  *
@@ -74,6 +81,7 @@ interface SpawnmenuLib {
74
81
  * @deprecated Legacy argument, no longer works.
75
82
  */
76
83
  AddToolMenuOption(tab: string, category: string, _class: string, name: string, cmd?: string, config?: string, cpanel?: (pnl: Panel) => void, table?: table): void;
84
+
77
85
  /**
78
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)
79
87
  *
@@ -88,6 +96,7 @@ interface SpawnmenuLib {
88
96
  * @source https://wiki.facepunch.com/gmod/spawnmenu.AddToolTab
89
97
  */
90
98
  AddToolTab(name: string, label?: string, icon?: string): void;
99
+
91
100
  /**
92
101
  * Clears all the tools from the different tool categories and the categories itself, if ran at the correct place.
93
102
  *
@@ -97,12 +106,14 @@ interface SpawnmenuLib {
97
106
  * @source https://wiki.facepunch.com/gmod/spawnmenu.ClearToolMenus
98
107
  */
99
108
  ClearToolMenus(): void;
109
+
100
110
  /**
101
111
  * Creates a new [ContentIcon](https://wiki.facepunch.com/gmod/ContentIcon) previously defined via [spawnmenu.AddContentType](https://wiki.facepunch.com/gmod/spawnmenu.AddContentType).
102
112
  * @realm client
103
113
  * @source https://wiki.facepunch.com/gmod/spawnmenu.CreateContentIcon
104
114
  */
105
115
  CreateContentIcon(type: string, parent?: Panel, data?: table): Panel;
116
+
106
117
  /**
107
118
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
108
119
  *
@@ -113,6 +124,7 @@ interface SpawnmenuLib {
113
124
  * @source https://wiki.facepunch.com/gmod/spawnmenu.DoSaveToTextFiles
114
125
  */
115
126
  DoSaveToTextFiles(spawnlists: table): void;
127
+
116
128
  /**
117
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).
118
130
  *
@@ -124,12 +136,14 @@ interface SpawnmenuLib {
124
136
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetContentType
125
137
  */
126
138
  GetContentType(contentType: string): (container: Panel, data: table) => Panel;
139
+
127
140
  /**
128
141
  * Returns the list of Creation tabs. Creation tabs are added via [spawnmenu.AddCreationTab](https://wiki.facepunch.com/gmod/spawnmenu.AddCreationTab).
129
142
  * @realm client
130
143
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCreationTabs
131
144
  */
132
145
  GetCreationTabs(): table;
146
+
133
147
  /**
134
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).
135
149
  *
@@ -139,6 +153,7 @@ interface SpawnmenuLib {
139
153
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetCustomPropTable
140
154
  */
141
155
  GetCustomPropTable(): table;
156
+
142
157
  /**
143
158
  * Returns a table of all prop categories and their props in the spawnmenu.
144
159
  *
@@ -150,6 +165,7 @@ interface SpawnmenuLib {
150
165
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetPropTable
151
166
  */
152
167
  GetPropTable(): table;
168
+
153
169
  /**
154
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)
155
171
  *
@@ -158,12 +174,14 @@ interface SpawnmenuLib {
158
174
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetToolMenu
159
175
  */
160
176
  GetToolMenu(name: string, label?: string, icon?: string): table;
177
+
161
178
  /**
162
179
  * Gets a table of tools on the client.
163
180
  * @realm client
164
181
  * @source https://wiki.facepunch.com/gmod/spawnmenu.GetTools
165
182
  */
166
183
  GetTools(): table;
184
+
167
185
  /**
168
186
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
169
187
  *
@@ -174,6 +192,7 @@ interface SpawnmenuLib {
174
192
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles
175
193
  */
176
194
  PopulateFromEngineTextFiles(): void;
195
+
177
196
  /**
178
197
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
179
198
  *
@@ -182,6 +201,7 @@ interface SpawnmenuLib {
182
201
  * @source https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromTextFiles
183
202
  */
184
203
  PopulateFromTextFiles(callback: (strFilename: string, strName: string, tabContents: table, icon: string, id: number, parentid: number, needsapp: string) => void): void;
204
+
185
205
  /**
186
206
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
187
207
  *
@@ -192,6 +212,7 @@ interface SpawnmenuLib {
192
212
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SaveToTextFiles
193
213
  */
194
214
  SaveToTextFiles(spawnlists: table): void;
215
+
195
216
  /**
196
217
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
197
218
  * Sets currently active control panel to be returned by [spawnmenu.ActiveControlPanel](https://wiki.facepunch.com/gmod/spawnmenu.ActiveControlPanel).
@@ -199,12 +220,14 @@ interface SpawnmenuLib {
199
220
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SetActiveControlPanel
200
221
  */
201
222
  SetActiveControlPanel(pnl: Panel): void;
223
+
202
224
  /**
203
225
  * Switches the creation tab (left side of the spawnmenu) on the spawnmenu to the given tab.
204
226
  * @realm client
205
227
  * @source https://wiki.facepunch.com/gmod/spawnmenu.SwitchCreationTab
206
228
  */
207
229
  SwitchCreationTab(id: string): void;
230
+
208
231
  /**
209
232
  * Opens specified tool tab in spawnmenu.
210
233
  *
@@ -213,28 +236,3 @@ interface SpawnmenuLib {
213
236
  */
214
237
  SwitchToolTab(id: number): void;
215
238
  }
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
-
@@ -16,6 +16,7 @@ interface SpawnmenuContentPanel extends DPanel {
16
16
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:CallPopulateHook
17
17
  */
18
18
  CallPopulateHook(self: SpawnmenuContentPanel, hookname: string): void;
19
+
19
20
  /**
20
21
  * Allows the modification of the ContentSidebar
21
22
  *
@@ -23,6 +24,7 @@ interface SpawnmenuContentPanel extends DPanel {
23
24
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableModify
24
25
  */
25
26
  EnableModify(self: SpawnmenuContentPanel): void;
27
+
26
28
  /**
27
29
  * Changes the Spawnmenu category to search in
28
30
  *
@@ -30,6 +32,7 @@ interface SpawnmenuContentPanel extends DPanel {
30
32
  * @source https://wiki.facepunch.com/gmod/SpawnmenuContentPanel:EnableSearch
31
33
  */
32
34
  EnableSearch(self: SpawnmenuContentPanel, category: string, hookname: string): void;
35
+
33
36
  /**
34
37
  * Switches the current panel with the given panel
35
38
  *
@@ -38,8 +41,3 @@ interface SpawnmenuContentPanel extends DPanel {
38
41
  */
39
42
  SwitchPanel(self: SpawnmenuContentPanel, panel: Panel): void;
40
43
  }
41
-
42
-
43
-
44
-
45
-
package/types/sql.d.tlua CHANGED
@@ -42,6 +42,7 @@ interface SqlLib {
42
42
  * @source https://wiki.facepunch.com/gmod/sql.Begin
43
43
  */
44
44
  Begin(): void;
45
+
45
46
  /**
46
47
  * Tells the engine to execute a series of queries queued for execution, must be preceded by [sql.Begin](https://wiki.facepunch.com/gmod/sql.Begin).
47
48
  *
@@ -51,18 +52,21 @@ interface SqlLib {
51
52
  * @source https://wiki.facepunch.com/gmod/sql.Commit
52
53
  */
53
54
  Commit(): void;
55
+
54
56
  /**
55
57
  * Returns true if the index with the specified name exists.
56
58
  * @realm shared and menu
57
59
  * @source https://wiki.facepunch.com/gmod/sql.IndexExists
58
60
  */
59
61
  IndexExists(indexName: string): boolean;
62
+
60
63
  /**
61
64
  * Returns the last error from a SQLite query.
62
65
  * @realm shared and menu
63
66
  * @source https://wiki.facepunch.com/gmod/sql.LastError
64
67
  */
65
68
  LastError(): string;
69
+
66
70
  /**
67
71
  * Performs a query on the local SQLite database, returns a table as result set, nil if result is empty and false on error.
68
72
  * **WARNING**: To run SQL queries with this function safely, it is crucial to ensure that the concatenated variables in the query string are safe to avoid vulnerabilities like SQL injections. For this, it is recommended to use the [sql.SQLStr](https://wiki.facepunch.com/gmod/sql.SQLStr), which allows arguments to be escaped correctly.
@@ -74,6 +78,7 @@ interface SqlLib {
74
78
  * @source https://wiki.facepunch.com/gmod/sql.Query
75
79
  */
76
80
  Query(query: string): table | boolean | nil;
81
+
77
82
  /**
78
83
  * Performs the [sql.Query](https://wiki.facepunch.com/gmod/sql.Query) and returns the n'th row.
79
84
  *
@@ -86,6 +91,7 @@ interface SqlLib {
86
91
  * @source https://wiki.facepunch.com/gmod/sql.QueryRow
87
92
  */
88
93
  QueryRow(query: string, row?: number): table;
94
+
89
95
  /**
90
96
  * Performs a query on the local SQLite database with proper type handling and parameter binding, returns a table as result set, empty table if no results, and false on error. Unlike [sql.Query](https://wiki.facepunch.com/gmod/sql.Query), this function properly handles SQLite data types and allows safe parameter binding to prevent SQL injection attacks.
91
97
  * **WARNING**: * This function only executes a single SQL statement, unlike [sql.Query](https://wiki.facepunch.com/gmod/sql.Query) which can execute multiple statements separated by semicolons.
@@ -99,12 +105,14 @@ interface SqlLib {
99
105
  * @source https://wiki.facepunch.com/gmod/sql.QueryTyped
100
106
  */
101
107
  QueryTyped(query: string, ...: any): table | boolean;
108
+
102
109
  /**
103
110
  * Performs the query like [sql.QueryRow](https://wiki.facepunch.com/gmod/sql.QueryRow), but returns the first value found.
104
111
  * @realm shared and menu
105
112
  * @source https://wiki.facepunch.com/gmod/sql.QueryValue
106
113
  */
107
114
  QueryValue(query: string): string;
115
+
108
116
  /**
109
117
  * Escapes dangerous characters and symbols from user input used in an SQLite SQL Query.
110
118
  *
@@ -117,6 +125,7 @@ interface SqlLib {
117
125
  * @source https://wiki.facepunch.com/gmod/sql.SQLStr
118
126
  */
119
127
  SQLStr(string: string, bNoQuotes?: boolean): string;
128
+
120
129
  /**
121
130
  * Returns true if the table with the specified name exists.
122
131
  * @realm shared and menu
@@ -124,13 +133,3 @@ interface SqlLib {
124
133
  */
125
134
  TableExists(tableName: string): boolean;
126
135
  }
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
@@ -15,24 +15,28 @@ interface Stack {
15
15
  * @source https://wiki.facepunch.com/gmod/Stack:Pop
16
16
  */
17
17
  Pop(self: Stack, amount?: number): any;
18
+
18
19
  /**
19
20
  * Pop an item from the stack
20
21
  * @realm shared and menu
21
22
  * @source https://wiki.facepunch.com/gmod/Stack:PopMulti
22
23
  */
23
24
  PopMulti(self: Stack, amount?: number): table;
25
+
24
26
  /**
25
27
  * Push an item onto the stack
26
28
  * @realm shared and menu
27
29
  * @source https://wiki.facepunch.com/gmod/Stack:Push
28
30
  */
29
31
  Push(self: Stack, object: any): void;
32
+
30
33
  /**
31
34
  * Returns the size of the stack
32
35
  * @realm shared and menu
33
36
  * @source https://wiki.facepunch.com/gmod/Stack:Size
34
37
  */
35
38
  Size(self: Stack): number;
39
+
36
40
  /**
37
41
  * Get the item at the top of the stack
38
42
  * @realm shared and menu
@@ -40,9 +44,3 @@ interface Stack {
40
44
  */
41
45
  Top(self: Stack): any;
42
46
  }
43
-
44
-
45
-
46
-
47
-
48
-