@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 TimerLib {
13
13
  * @source https://wiki.facepunch.com/gmod/timer.Adjust
14
14
  */
15
15
  Adjust(identifier: any, delay: number, repetitions?: number, func?: function): boolean;
16
+
16
17
  /**
17
18
  * This function does nothing.
18
19
  * @realm shared and menu
@@ -20,6 +21,7 @@ interface TimerLib {
20
21
  * @deprecated If you want to check if whether or not a timer exists, use timer.Exists.
21
22
  */
22
23
  Check(): void;
24
+
23
25
  /**
24
26
  * Creates a new timer that will repeat its function given amount of times.
25
27
  * This function also requires the timer to be named, which allows you to control it after it was created via the [timer](https://wiki.facepunch.com/gmod/timer).
@@ -33,6 +35,7 @@ interface TimerLib {
33
35
  * @source https://wiki.facepunch.com/gmod/timer.Create
34
36
  */
35
37
  Create(identifier: string, delay: number, repetitions: number, func: function): void;
38
+
36
39
  /**
37
40
  * Stops and destroys the given timer. Alias of [timer.Remove](https://wiki.facepunch.com/gmod/timer.Remove).
38
41
  * @realm shared and menu
@@ -40,6 +43,7 @@ interface TimerLib {
40
43
  * @deprecated You should be using timer.Remove instead.
41
44
  */
42
45
  Destroy(identifier: string): void;
46
+
43
47
  /**
44
48
  * Returns whenever the given timer exists or not.
45
49
  *
@@ -54,6 +58,7 @@ interface TimerLib {
54
58
  * @source https://wiki.facepunch.com/gmod/timer.Exists
55
59
  */
56
60
  Exists(identifier: string): boolean;
61
+
57
62
  /**
58
63
  * Returns whenever the given timer is paused or not. ([timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause))
59
64
  *
@@ -62,12 +67,14 @@ interface TimerLib {
62
67
  * @source https://wiki.facepunch.com/gmod/timer.IsPaused
63
68
  */
64
69
  IsPaused(identifier: string): boolean;
70
+
65
71
  /**
66
72
  * Pauses the given timer.
67
73
  * @realm shared and menu
68
74
  * @source https://wiki.facepunch.com/gmod/timer.Pause
69
75
  */
70
76
  Pause(identifier: any): void;
77
+
71
78
  /**
72
79
  * Stops and removes a timer created by [timer.Create](https://wiki.facepunch.com/gmod/timer.Create).
73
80
  * **WARNING**: The timers are removed in the next frame! Keep this in mind when storing identifiers in variables.
@@ -77,6 +84,7 @@ interface TimerLib {
77
84
  * @source https://wiki.facepunch.com/gmod/timer.Remove
78
85
  */
79
86
  Remove(identifier: string): void;
87
+
80
88
  /**
81
89
  * Returns amount of repetitions/executions left before the timer destroys itself.
82
90
  *
@@ -84,6 +92,7 @@ interface TimerLib {
84
92
  * @source https://wiki.facepunch.com/gmod/timer.RepsLeft
85
93
  */
86
94
  RepsLeft(identifier: any): number;
95
+
87
96
  /**
88
97
  * Creates a simple timer that runs the given function after a specified delay.
89
98
  *
@@ -114,6 +123,7 @@ interface TimerLib {
114
123
  * @source https://wiki.facepunch.com/gmod/timer.Simple
115
124
  */
116
125
  Simple(delay: number, func: function): void;
126
+
117
127
  /**
118
128
  * Restarts the given timer.
119
129
  *
@@ -124,12 +134,14 @@ interface TimerLib {
124
134
  * @source https://wiki.facepunch.com/gmod/timer.Start
125
135
  */
126
136
  Start(identifier: any): void;
137
+
127
138
  /**
128
139
  * Stops the given timer and rewinds it.
129
140
  * @realm shared and menu
130
141
  * @source https://wiki.facepunch.com/gmod/timer.Stop
131
142
  */
132
143
  Stop(identifier: any): void;
144
+
133
145
  /**
134
146
  * Returns amount of time left (in seconds) before the timer executes its function.
135
147
  *
@@ -140,12 +152,14 @@ interface TimerLib {
140
152
  * @source https://wiki.facepunch.com/gmod/timer.TimeLeft
141
153
  */
142
154
  TimeLeft(identifier: any): number;
155
+
143
156
  /**
144
157
  * Runs either [timer.Pause](https://wiki.facepunch.com/gmod/timer.Pause) or [timer.UnPause](https://wiki.facepunch.com/gmod/timer.UnPause) based on the timer's current status.
145
158
  * @realm shared and menu
146
159
  * @source https://wiki.facepunch.com/gmod/timer.Toggle
147
160
  */
148
161
  Toggle(identifier: any): void;
162
+
149
163
  /**
150
164
  * Unpauses the timer.
151
165
  * @realm shared and menu
@@ -153,18 +167,3 @@ interface TimerLib {
153
167
  */
154
168
  UnPause(identifier: any): void;
155
169
  }
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
package/types/tool.d.tlua CHANGED
@@ -15,12 +15,14 @@ interface Tool {
15
15
  * @source https://wiki.facepunch.com/gmod/TOOL:Deploy
16
16
  */
17
17
  Deploy(self: Tool): boolean;
18
+
18
19
  /**
19
20
  * Called when [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) of the toolgun is called, only when the user has this tool selected.
20
21
  * @realm client
21
22
  * @source https://wiki.facepunch.com/gmod/TOOL:DrawHUD
22
23
  */
23
24
  DrawHUD(self: Tool): void;
25
+
24
26
  /**
25
27
  * Called after the default tool screen has been drawn from [WEAPON:RenderScreen](https://wiki.facepunch.com/gmod/WEAPON:RenderScreen).
26
28
  *
@@ -33,42 +35,49 @@ interface Tool {
33
35
  * @source https://wiki.facepunch.com/gmod/TOOL:DrawToolScreen
34
36
  */
35
37
  DrawToolScreen(self: Tool, width: number, height: number): void;
38
+
36
39
  /**
37
40
  * Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called, only when the user has this tool selected.
38
41
  * @realm client
39
42
  * @source https://wiki.facepunch.com/gmod/TOOL:FreezeMovement
40
43
  */
41
44
  FreezeMovement(self: Tool): boolean;
45
+
42
46
  /**
43
47
  * Called when [WEAPON:Holster](https://wiki.facepunch.com/gmod/WEAPON:Holster) of the toolgun is called, when switching between different toolguns.
44
48
  * @realm shared
45
49
  * @source https://wiki.facepunch.com/gmod/TOOL:Holster
46
50
  */
47
51
  Holster(self: Tool): void;
52
+
48
53
  /**
49
54
  * Called when the user left clicks with the tool.
50
55
  * @realm shared
51
56
  * @source https://wiki.facepunch.com/gmod/TOOL:LeftClick
52
57
  */
53
58
  LeftClick(self: Tool, tr: TraceResult): boolean;
59
+
54
60
  /**
55
61
  * Called when the user presses the reload key with the tool out.
56
62
  * @realm shared
57
63
  * @source https://wiki.facepunch.com/gmod/TOOL:Reload
58
64
  */
59
65
  Reload(self: Tool, tr: TraceResult): boolean;
66
+
60
67
  /**
61
68
  * Called when the user right clicks with the tool.
62
69
  * @realm shared
63
70
  * @source https://wiki.facepunch.com/gmod/TOOL:RightClick
64
71
  */
65
72
  RightClick(self: Tool, tr: TraceResult): boolean;
73
+
66
74
  /**
67
75
  * Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called. This only happens when the tool gun is currently equipped/selected by the player and the selected tool is this tool.
68
76
  * @realm shared
69
77
  * @source https://wiki.facepunch.com/gmod/TOOL:Think
70
78
  */
71
79
  Think(self: Tool): void;
80
+
72
81
  /**
73
82
  * Called when the tool's control panel needs to be rebuilt.
74
83
  *
@@ -78,6 +87,7 @@ interface Tool {
78
87
  * @source https://wiki.facepunch.com/gmod/TOOL.BuildCPanel
79
88
  */
80
89
  BuildCPanel(panel: ControlPanel): void;
90
+
81
91
  /**
82
92
  * Returns whether the tool is allowed to be used or not. This function ignores the [SANDBOX:CanTool](https://wiki.facepunch.com/gmod/SANDBOX:CanTool) hook.
83
93
  *
@@ -87,12 +97,14 @@ interface Tool {
87
97
  * @source https://wiki.facepunch.com/gmod/Tool:Allowed
88
98
  */
89
99
  Allowed(self: Tool): boolean;
100
+
90
101
  /**
91
102
  * Builds a list of all ConVars set via the ClientConVar variable on the [Structures/TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) and their default values. This is used for the preset system.
92
103
  * @realm shared
93
104
  * @source https://wiki.facepunch.com/gmod/Tool:BuildConVarList
94
105
  */
95
106
  BuildConVarList(self: Tool): table;
107
+
96
108
  /**
97
109
  * **INTERNAL**: This is called automatically for most toolgun actions so you shouldn't need to use it.
98
110
  *
@@ -103,12 +115,14 @@ interface Tool {
103
115
  * @source https://wiki.facepunch.com/gmod/Tool:CheckObjects
104
116
  */
105
117
  CheckObjects(self: Tool): void;
118
+
106
119
  /**
107
120
  * Clears all objects previously set with [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
108
121
  * @realm shared
109
122
  * @source https://wiki.facepunch.com/gmod/Tool:ClearObjects
110
123
  */
111
124
  ClearObjects(self: Tool): void;
125
+
112
126
  /**
113
127
  * **INTERNAL**: This is called automatically for all tools.
114
128
  *
@@ -118,6 +132,7 @@ interface Tool {
118
132
  * @source https://wiki.facepunch.com/gmod/Tool:Create
119
133
  */
120
134
  Create(self: Tool): Tool;
135
+
121
136
  /**
122
137
  * **INTERNAL**: This is called automatically for all tools.
123
138
  *
@@ -128,42 +143,49 @@ interface Tool {
128
143
  * @source https://wiki.facepunch.com/gmod/Tool:CreateConVars
129
144
  */
130
145
  CreateConVars(self: Tool): void;
146
+
131
147
  /**
132
148
  * Retrieves a physics bone number previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
133
149
  * @realm shared
134
150
  * @source https://wiki.facepunch.com/gmod/Tool:GetBone
135
151
  */
136
152
  GetBone(self: Tool, id: number): number;
153
+
137
154
  /**
138
155
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a [boolean](https://wiki.facepunch.com/gmod/boolean).
139
156
  * @realm shared
140
157
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientBool
141
158
  */
142
159
  GetClientBool(self: Tool, name: string, _default?: boolean): number;
160
+
143
161
  /**
144
162
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) as a [string](https://wiki.facepunch.com/gmod/string).
145
163
  * @realm shared
146
164
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientInfo
147
165
  */
148
166
  GetClientInfo(self: Tool, name: string): string;
167
+
149
168
  /**
150
169
  * Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar)'s value as a [number](https://wiki.facepunch.com/gmod/number).
151
170
  * @realm shared
152
171
  * @source https://wiki.facepunch.com/gmod/Tool:GetClientNumber
153
172
  */
154
173
  GetClientNumber(self: Tool, name: string, _default?: number): number;
174
+
155
175
  /**
156
176
  * Retrieves an Entity previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
157
177
  * @realm shared
158
178
  * @source https://wiki.facepunch.com/gmod/Tool:GetEnt
159
179
  */
160
180
  GetEnt(self: Tool, id: number): Entity;
181
+
161
182
  /**
162
183
  * Returns a language key based on this tool's name and the current stage it is on.
163
184
  * @realm shared
164
185
  * @source https://wiki.facepunch.com/gmod/Tool:GetHelpText
165
186
  */
166
187
  GetHelpText(self: Tool): string;
188
+
167
189
  /**
168
190
  * Retrieves an local vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
169
191
  * See also [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos).
@@ -172,30 +194,35 @@ interface Tool {
172
194
  * @source https://wiki.facepunch.com/gmod/Tool:GetLocalPos
173
195
  */
174
196
  GetLocalPos(self: Tool, id: number): Vector;
197
+
175
198
  /**
176
199
  * Returns the name of the current tool mode.
177
200
  * @realm shared
178
201
  * @source https://wiki.facepunch.com/gmod/Tool:GetMode
179
202
  */
180
203
  GetMode(self: Tool): string;
204
+
181
205
  /**
182
206
  * Retrieves an normal vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
183
207
  * @realm shared
184
208
  * @source https://wiki.facepunch.com/gmod/Tool:GetNormal
185
209
  */
186
210
  GetNormal(self: Tool, id: number): Vector;
211
+
187
212
  /**
188
213
  * Returns the current operation of the tool set by [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
189
214
  * @realm shared
190
215
  * @source https://wiki.facepunch.com/gmod/Tool:GetOperation
191
216
  */
192
217
  GetOperation(self: Tool): number;
218
+
193
219
  /**
194
220
  * Returns the owner of this tool.
195
221
  * @realm shared
196
222
  * @source https://wiki.facepunch.com/gmod/Tool:GetOwner
197
223
  */
198
224
  GetOwner(self: Tool): Player;
225
+
199
226
  /**
200
227
  * Retrieves an [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
201
228
  * See also [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt).
@@ -204,6 +231,7 @@ interface Tool {
204
231
  * @source https://wiki.facepunch.com/gmod/Tool:GetPhys
205
232
  */
206
233
  GetPhys(self: Tool, id: number): PhysObj;
234
+
207
235
  /**
208
236
  * Retrieves a vector previously stored using Tool:SetObject. See also
209
237
  * Tool:GetLocalPos.
@@ -211,6 +239,7 @@ interface Tool {
211
239
  * @source https://wiki.facepunch.com/gmod/Tool:GetPos
212
240
  */
213
241
  GetPos(self: Tool, id?: number): Vector;
242
+
214
243
  /**
215
244
  * Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
216
245
  * @realm shared
@@ -218,6 +247,7 @@ interface Tool {
218
247
  * @deprecated Use Tool:GetWeapon instead.
219
248
  */
220
249
  GetSWEP(self: Tool): Weapon;
250
+
221
251
  /**
222
252
  * Attempts to grab a serverside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar).
223
253
  * This will not do anything on client, despite the function being defined shared.
@@ -226,18 +256,21 @@ interface Tool {
226
256
  * @source https://wiki.facepunch.com/gmod/Tool:GetServerInfo
227
257
  */
228
258
  GetServerInfo(self: Tool, name: string): string;
259
+
229
260
  /**
230
261
  * Returns the current stage of the tool set by [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
231
262
  * @realm shared
232
263
  * @source https://wiki.facepunch.com/gmod/Tool:GetStage
233
264
  */
234
265
  GetStage(self: Tool): number;
266
+
235
267
  /**
236
268
  * Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
237
269
  * @realm shared
238
270
  * @source https://wiki.facepunch.com/gmod/Tool:GetWeapon
239
271
  */
240
272
  GetWeapon(self: Tool): Weapon;
273
+
241
274
  /**
242
275
  * Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.
243
276
  *
@@ -247,6 +280,7 @@ interface Tool {
247
280
  * @source https://wiki.facepunch.com/gmod/Tool:MakeGhostEntity
248
281
  */
249
282
  MakeGhostEntity(self: Tool, model: string, pos: Vector, angle: Angle): void;
283
+
250
284
  /**
251
285
  * Returns the amount of stored objects ( [Entity](https://wiki.facepunch.com/gmod/Entity)s ) the tool has.
252
286
  * Are TOOLs limited to 4 entities?
@@ -255,12 +289,14 @@ interface Tool {
255
289
  * @source https://wiki.facepunch.com/gmod/Tool:NumObjects
256
290
  */
257
291
  NumObjects(self: Tool): number;
292
+
258
293
  /**
259
294
  * Automatically forces the tool's control panel to be rebuilt.
260
295
  * @realm client
261
296
  * @source https://wiki.facepunch.com/gmod/Tool:RebuildControlPanel
262
297
  */
263
298
  RebuildControlPanel(self: Tool, ...: any): void;
299
+
264
300
  /**
265
301
  * Removes any ghost entity created for this tool.
266
302
  *
@@ -269,6 +305,7 @@ interface Tool {
269
305
  * @source https://wiki.facepunch.com/gmod/Tool:ReleaseGhostEntity
270
306
  */
271
307
  ReleaseGhostEntity(self: Tool): void;
308
+
272
309
  /**
273
310
  * Stores an [Entity](https://wiki.facepunch.com/gmod/Entity) for later use in the tool.
274
311
  *
@@ -278,6 +315,7 @@ interface Tool {
278
315
  * @source https://wiki.facepunch.com/gmod/Tool:SetObject
279
316
  */
280
317
  SetObject(self: Tool, id: number, ent: Entity, pos: Vector, phys: PhysObj, bone: number, normal: Vector): void;
318
+
281
319
  /**
282
320
  * Sets the current operation of the tool. Does nothing clientside. See also [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
283
321
  *
@@ -295,6 +333,7 @@ interface Tool {
295
333
  * @source https://wiki.facepunch.com/gmod/Tool:SetOperation
296
334
  */
297
335
  SetOperation(self: Tool, operation: number): void;
336
+
298
337
  /**
299
338
  * Sets the current stage of the tool. Does nothing clientside.
300
339
  *
@@ -304,12 +343,14 @@ interface Tool {
304
343
  * @source https://wiki.facepunch.com/gmod/Tool:SetStage
305
344
  */
306
345
  SetStage(self: Tool, stage: number): void;
346
+
307
347
  /**
308
348
  * Initializes the ghost entity based on the supplied entity.
309
349
  * @realm shared
310
350
  * @source https://wiki.facepunch.com/gmod/Tool:StartGhostEntity
311
351
  */
312
352
  StartGhostEntity(self: Tool, ent: Entity): void;
353
+
313
354
  /**
314
355
  * **INTERNAL**: Called on deploy automatically
315
356
  *
@@ -320,6 +361,7 @@ interface Tool {
320
361
  * @source https://wiki.facepunch.com/gmod/Tool:UpdateData
321
362
  */
322
363
  UpdateData(self: Tool): void;
364
+
323
365
  /**
324
366
  * Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
325
367
  *
@@ -333,49 +375,3 @@ interface Tool {
333
375
  UpdateGhostEntity(self: Tool): void;
334
376
  }
335
377
  interface TOOL extends Tool {}
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
@@ -14,42 +14,49 @@ interface UGCPublishWindow extends DFrame {
14
14
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:CheckInput
15
15
  */
16
16
  CheckInput(self: UGCPublishWindow): void;
17
+
17
18
  /**
18
19
  * Displays the given error message.
19
20
  * @realm menu
20
21
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DisplayError
21
22
  */
22
23
  DisplayError(self: UGCPublishWindow, err: string): void;
24
+
23
25
  /**
24
26
  * Publishes the Item or throws an error if the Title or Tags are invalid
25
27
  * @realm menu
26
28
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DoPublish
27
29
  */
28
30
  DoPublish(self: UGCPublishWindow, wsid: string, err: string): void;
31
+
29
32
  /**
30
33
  * Rezises the panel to nicely fit all children
31
34
  * @realm menu
32
35
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:FitContents
33
36
  */
34
37
  FitContents(self: UGCPublishWindow): void;
38
+
35
39
  /**
36
40
  * Returns the name of the current selected tag.
37
41
  * @realm menu
38
42
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:GetChosenTag
39
43
  */
40
44
  GetChosenTag(self: UGCPublishWindow): string;
45
+
41
46
  /**
42
47
  * Called when the Item was published or if any error occurred while publishing
43
48
  * @realm menu
44
49
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:OnPublishFinished
45
50
  */
46
51
  OnPublishFinished(self: UGCPublishWindow, wsid: string, err: string): void;
52
+
47
53
  /**
48
54
  * updated the Workshop items list.
49
55
  * @realm menu
50
56
  * @source https://wiki.facepunch.com/gmod/UGCPublishWindow:Setup
51
57
  */
52
58
  Setup(self: UGCPublishWindow, ugcType: string, file: string, imageFile: string, handler: WorkshopFileBase): void;
59
+
53
60
  /**
54
61
  * updated the Workshop items list.
55
62
  * @realm menu
@@ -57,12 +64,3 @@ interface UGCPublishWindow extends DFrame {
57
64
  */
58
65
  UpdateWorkshopItems(self: UGCPublishWindow): void;
59
66
  }
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
package/types/umsg.d.tlua CHANGED
@@ -18,6 +18,7 @@ interface UmsgLib {
18
18
  * @deprecated You should be using the net instead
19
19
  */
20
20
  Angle(angle: Angle): void;
21
+
21
22
  /**
22
23
  * Writes a bool to the usermessage.
23
24
  * @realm server
@@ -25,6 +26,7 @@ interface UmsgLib {
25
26
  * @deprecated You should be using the net instead
26
27
  */
27
28
  Bool(bool: boolean): void;
29
+
28
30
  /**
29
31
  * Writes a signed char to the usermessage.
30
32
  * @realm server
@@ -32,6 +34,7 @@ interface UmsgLib {
32
34
  * @deprecated You should be using the net instead
33
35
  */
34
36
  Char(char: number): void;
37
+
35
38
  /**
36
39
  * Dispatches the usermessage to the client(s).
37
40
  * @realm server
@@ -39,6 +42,7 @@ interface UmsgLib {
39
42
  * @deprecated You should be using the net instead
40
43
  */
41
44
  End(): void;
45
+
42
46
  /**
43
47
  * Writes an entity object to the usermessage. (As an entity handle, which means the entity index + its serial number)
44
48
  * @realm server
@@ -46,6 +50,7 @@ interface UmsgLib {
46
50
  * @deprecated You should be using the net instead
47
51
  */
48
52
  Entity(entity: Entity): void;
53
+
49
54
  /**
50
55
  * Writes a float to the usermessage.
51
56
  * @realm server
@@ -53,6 +58,7 @@ interface UmsgLib {
53
58
  * @deprecated You should be using the net instead
54
59
  */
55
60
  Float(float: number): void;
61
+
56
62
  /**
57
63
  * Writes a signed int (32 bit) to the usermessage.
58
64
  * @realm server
@@ -60,6 +66,7 @@ interface UmsgLib {
60
66
  * @deprecated You should be using the net instead
61
67
  */
62
68
  Long(int: number): void;
69
+
63
70
  /**
64
71
  * The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
65
72
  *
@@ -68,6 +75,7 @@ interface UmsgLib {
68
75
  * @deprecated Inferior version of util.AddNetworkString
69
76
  */
70
77
  PoolString(string: string): void;
78
+
71
79
  /**
72
80
  * Writes a signed short (16 bit) to the usermessage.
73
81
  * @realm server
@@ -75,6 +83,7 @@ interface UmsgLib {
75
83
  * @deprecated You should be using the net instead
76
84
  */
77
85
  Short(short: number): void;
86
+
78
87
  /**
79
88
  * Starts a new usermessage.
80
89
  *
@@ -86,6 +95,7 @@ interface UmsgLib {
86
95
  * @deprecated You should be using net instead
87
96
  */
88
97
  Start(name: string, filter?: Player): void;
98
+
89
99
  /**
90
100
  * Writes a null terminated string to the usermessage.
91
101
  * @realm server
@@ -93,6 +103,7 @@ interface UmsgLib {
93
103
  * @deprecated You should be using the net instead
94
104
  */
95
105
  String(string: string): void;
106
+
96
107
  /**
97
108
  * Writes a Vector to the usermessage.
98
109
  * @realm server
@@ -100,6 +111,7 @@ interface UmsgLib {
100
111
  * @deprecated You should be using the net instead
101
112
  */
102
113
  Vector(vector: Vector): void;
114
+
103
115
  /**
104
116
  * Writes a vector normal to the usermessage.
105
117
  * @realm server
@@ -108,16 +120,3 @@ interface UmsgLib {
108
120
  */
109
121
  VectorNormal(normal: Vector): void;
110
122
  }
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-