@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
@@ -11,6 +11,7 @@ interface IGModAudioChannel {
11
11
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:EnableLooping
12
12
  */
13
13
  EnableLooping(self: IGModAudioChannel, enable: boolean): void;
14
+
14
15
  /**
15
16
  * Computes the [DFT (discrete Fourier transform)](https://en.wikipedia.org/wiki/Discrete_Fourier_transform) of the sound channel.
16
17
  *
@@ -28,12 +29,14 @@ interface IGModAudioChannel {
28
29
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:FFT
29
30
  */
30
31
  FFT(self: IGModAudioChannel, tbl: number[], size: FFT): number;
32
+
31
33
  /**
32
34
  * Returns 3D cone of the sound channel. See [IGModAudioChannel:Set3DCone](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone).
33
35
  * @realm client
34
36
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DCone
35
37
  */
36
38
  Get3DCone(self: IGModAudioChannel): (number, number, number);
39
+
37
40
  /**
38
41
  * Returns if the sound channel is currently in 3D mode or not. This value will be affected by [IGModAudioChannel:Set3DEnabled](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled).
39
42
  *
@@ -41,18 +44,21 @@ interface IGModAudioChannel {
41
44
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled
42
45
  */
43
46
  Get3DEnabled(self: IGModAudioChannel): boolean;
47
+
44
48
  /**
45
49
  * Returns 3D fade distances of a sound channel.
46
50
  * @realm client
47
51
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DFadeDistance
48
52
  */
49
53
  Get3DFadeDistance(self: IGModAudioChannel): (number, number);
54
+
50
55
  /**
51
56
  * Returns the average bit rate of the sound channel.
52
57
  * @realm client
53
58
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetAverageBitRate
54
59
  */
55
60
  GetAverageBitRate(self: IGModAudioChannel): number;
61
+
56
62
  /**
57
63
  * Retrieves the number of bits per sample of the sound channel.
58
64
  *
@@ -62,6 +68,7 @@ interface IGModAudioChannel {
62
68
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBitsPerSample
63
69
  */
64
70
  GetBitsPerSample(self: IGModAudioChannel): number;
71
+
65
72
  /**
66
73
  * Returns the buffered time of the sound channel in seconds, for online streaming sound channels. ([sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL))
67
74
  *
@@ -70,24 +77,28 @@ interface IGModAudioChannel {
70
77
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBufferedTime
71
78
  */
72
79
  GetBufferedTime(self: IGModAudioChannel): number;
80
+
73
81
  /**
74
82
  * Returns the filename for the sound channel.
75
83
  * @realm client
76
84
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetFileName
77
85
  */
78
86
  GetFileName(self: IGModAudioChannel): string;
87
+
79
88
  /**
80
89
  * Returns the length of sound played by the sound channel in seconds.
81
90
  * @realm client
82
91
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLength
83
92
  */
84
93
  GetLength(self: IGModAudioChannel): number;
94
+
85
95
  /**
86
96
  * Returns the right and left levels of sound played by the sound channel.
87
97
  * @realm client
88
98
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLevel
89
99
  */
90
100
  GetLevel(self: IGModAudioChannel): (number, number);
101
+
91
102
  /**
92
103
  * Gets the relative volume of the left and right channels.
93
104
  *
@@ -95,30 +106,35 @@ interface IGModAudioChannel {
95
106
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPan
96
107
  */
97
108
  GetPan(self: IGModAudioChannel): number;
109
+
98
110
  /**
99
111
  * Returns the playback rate of the sound channel.
100
112
  * @realm client
101
113
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPlaybackRate
102
114
  */
103
115
  GetPlaybackRate(self: IGModAudioChannel): number;
116
+
104
117
  /**
105
118
  * Returns position of the sound channel
106
119
  * @realm client
107
120
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPos
108
121
  */
109
122
  GetPos(self: IGModAudioChannel): Vector;
123
+
110
124
  /**
111
125
  * Returns the sample rate for currently playing sound.
112
126
  * @realm client
113
127
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetSamplingRate
114
128
  */
115
129
  GetSamplingRate(self: IGModAudioChannel): number;
130
+
116
131
  /**
117
132
  * Returns the state of a sound channel
118
133
  * @realm client
119
134
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetState
120
135
  */
121
136
  GetState(self: IGModAudioChannel): number;
137
+
122
138
  /**
123
139
  * Retrieves HTTP headers from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
124
140
  *
@@ -128,6 +144,7 @@ interface IGModAudioChannel {
128
144
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsHTTP
129
145
  */
130
146
  GetTagsHTTP(self: IGModAudioChannel): string[];
147
+
131
148
  /**
132
149
  * Retrieves the ID3 version 1 info from a bass channel created by [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile) or [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
133
150
  *
@@ -137,6 +154,7 @@ interface IGModAudioChannel {
137
154
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsID3
138
155
  */
139
156
  GetTagsID3(self: IGModAudioChannel): table;
157
+
140
158
  /**
141
159
  * Retrieves `.m4a` media info, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
142
160
  *
@@ -144,6 +162,7 @@ interface IGModAudioChannel {
144
162
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMP4
145
163
  */
146
164
  GetTagsMP4(self: IGModAudioChannel): string[];
165
+
147
166
  /**
148
167
  * Retrieves ICY metadata from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
149
168
  *
@@ -151,6 +170,7 @@ interface IGModAudioChannel {
151
170
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMeta
152
171
  */
153
172
  GetTagsMeta(self: IGModAudioChannel): string;
173
+
154
174
  /**
155
175
  * Retrieves OGG media info tag, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
156
176
  *
@@ -158,6 +178,7 @@ interface IGModAudioChannel {
158
178
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsOGG
159
179
  */
160
180
  GetTagsOGG(self: IGModAudioChannel): string[];
181
+
161
182
  /**
162
183
  * Retrieves OGG Vendor tag, usually containing the application that created the file, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
163
184
  *
@@ -165,6 +186,7 @@ interface IGModAudioChannel {
165
186
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsVendor
166
187
  */
167
188
  GetTagsVendor(self: IGModAudioChannel): string;
189
+
168
190
  /**
169
191
  * Retrieves `.WMA` media info, from a bass channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) or [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile), if available.
170
192
  *
@@ -172,66 +194,77 @@ interface IGModAudioChannel {
172
194
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsWMA
173
195
  */
174
196
  GetTagsWMA(self: IGModAudioChannel): string[];
197
+
175
198
  /**
176
199
  * Returns the current time of the sound channel in seconds
177
200
  * @realm client
178
201
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTime
179
202
  */
180
203
  GetTime(self: IGModAudioChannel): number;
204
+
181
205
  /**
182
206
  * Returns volume of a sound channel
183
207
  * @realm client
184
208
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetVolume
185
209
  */
186
210
  GetVolume(self: IGModAudioChannel): number;
211
+
187
212
  /**
188
213
  * Returns if the sound channel is in 3D mode or not.
189
214
  * @realm client
190
215
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D
191
216
  */
192
217
  Is3D(self: IGModAudioChannel): boolean;
218
+
193
219
  /**
194
220
  * Returns whether the audio stream is block streamed or not.
195
221
  * @realm client
196
222
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsBlockStreamed
197
223
  */
198
224
  IsBlockStreamed(self: IGModAudioChannel): boolean;
225
+
199
226
  /**
200
227
  * Returns if the sound channel is looping or not.
201
228
  * @realm client
202
229
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsLooping
203
230
  */
204
231
  IsLooping(self: IGModAudioChannel): boolean;
232
+
205
233
  /**
206
234
  * Returns if the sound channel is streamed from the Internet or not.
207
235
  * @realm client
208
236
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsOnline
209
237
  */
210
238
  IsOnline(self: IGModAudioChannel): boolean;
239
+
211
240
  /**
212
241
  * Returns if the sound channel is valid or not.
213
242
  * @realm client
214
243
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsValid
215
244
  */
216
245
  IsValid(self: IGModAudioChannel): boolean;
246
+
217
247
  /**
218
248
  * Pauses the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play)
219
249
  * @realm client
220
250
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Pause
221
251
  */
222
252
  Pause(self: IGModAudioChannel): void;
253
+
223
254
  /**
224
255
  * Starts playing the stream.
225
256
  * @realm client
226
257
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Play
227
258
  */
228
259
  Play(self: IGModAudioChannel): void;
260
+
229
261
  /**
230
262
  * Sets 3D cone of the sound channel.
231
263
  * @realm client
232
264
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone
233
265
  */
234
266
  Set3DCone(self: IGModAudioChannel, innerAngle: number, outerAngle: number, outerVolume: number): void;
267
+
235
268
  /**
236
269
  * Sets the 3D mode of the channel. This will affect [IGModAudioChannel:Get3DEnabled](https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled) but not [IGModAudioChannel:Is3D](https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D).
237
270
  *
@@ -241,12 +274,14 @@ interface IGModAudioChannel {
241
274
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled
242
275
  */
243
276
  Set3DEnabled(self: IGModAudioChannel, enable: boolean): void;
277
+
244
278
  /**
245
279
  * Sets 3D fade distances of a sound channel.
246
280
  * @realm client
247
281
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DFadeDistance
248
282
  */
249
283
  Set3DFadeDistance(self: IGModAudioChannel, min: number, max: number): void;
284
+
250
285
  /**
251
286
  * Sets the relative volume of the left and right channels.
252
287
  *
@@ -254,18 +289,21 @@ interface IGModAudioChannel {
254
289
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPan
255
290
  */
256
291
  SetPan(self: IGModAudioChannel, pan: number): void;
292
+
257
293
  /**
258
294
  * Sets the playback rate of the sound channel. May not work with high values for radio streams.
259
295
  * @realm client
260
296
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPlaybackRate
261
297
  */
262
298
  SetPlaybackRate(self: IGModAudioChannel, rate: number): void;
299
+
263
300
  /**
264
301
  * Sets position of sound channel in case the sound channel has a 3d option set.
265
302
  * @realm client
266
303
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPos
267
304
  */
268
305
  SetPos(self: IGModAudioChannel, pos: Vector, dir?: Vector): void;
306
+
269
307
  /**
270
308
  * Sets the sound channel to specified time ( Rewind to that position of the song ). Does not work on online radio streams.
271
309
  *
@@ -278,12 +316,14 @@ interface IGModAudioChannel {
278
316
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetTime
279
317
  */
280
318
  SetTime(self: IGModAudioChannel, secs: number, dont_decode?: boolean): void;
319
+
281
320
  /**
282
321
  * Sets the volume of a sound channel
283
322
  * @realm client
284
323
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetVolume
285
324
  */
286
325
  SetVolume(self: IGModAudioChannel, volume: number): void;
326
+
287
327
  /**
288
328
  * Stop the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play).
289
329
  *
@@ -294,45 +334,3 @@ interface IGModAudioChannel {
294
334
  */
295
335
  Stop(self: IGModAudioChannel): void;
296
336
  }
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
@@ -18,6 +18,7 @@ interface ImageCheckBox extends Button {
18
18
  * @source https://wiki.facepunch.com/gmod/ImageCheckBox:GetChecked
19
19
  */
20
20
  GetChecked(self: ImageCheckBox): boolean;
21
+
21
22
  /**
22
23
  * Sets the checked state of the checkbox.
23
24
  *
@@ -27,6 +28,7 @@ interface ImageCheckBox extends Button {
27
28
  * @source https://wiki.facepunch.com/gmod/ImageCheckBox:Set
28
29
  */
29
30
  Set(self: ImageCheckBox, OnOff: boolean): void;
31
+
30
32
  /**
31
33
  * Sets the checked state of the checkbox.
32
34
  *
@@ -37,7 +39,3 @@ interface ImageCheckBox extends Button {
37
39
  */
38
40
  SetChecked(self: ImageCheckBox, bOn: boolean): void;
39
41
  }
40
-
41
-
42
-
43
-
@@ -19,12 +19,14 @@ interface IMaterial {
19
19
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetColor
20
20
  */
21
21
  GetColor(self: IMaterial, x: number, y: number): Color;
22
+
22
23
  /**
23
24
  * Returns the specified material value as a float, or nil if the value is not set.
24
25
  * @realm shared and menu
25
26
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetFloat
26
27
  */
27
28
  GetFloat(self: IMaterial, materialFloat: string): number;
29
+
28
30
  /**
29
31
  * Returns the specified material value as a int, rounds the value if its a float, or nil if the value is not set.
30
32
  *
@@ -35,24 +37,28 @@ interface IMaterial {
35
37
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetInt
36
38
  */
37
39
  GetInt(self: IMaterial, materialInt: string): number;
40
+
38
41
  /**
39
42
  * Gets all the key values defined for the material.
40
43
  * @realm shared
41
44
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetKeyValues
42
45
  */
43
46
  GetKeyValues(self: IMaterial): Table<string, any>;
47
+
44
48
  /**
45
49
  * Returns the specified material matrix as a int, or nil if the value is not set or is not a matrix.
46
50
  * @realm shared
47
51
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetMatrix
48
52
  */
49
53
  GetMatrix(self: IMaterial, materialMatrix: string): VMatrix;
54
+
50
55
  /**
51
56
  * Returns the name of the material, in most cases the path.
52
57
  * @realm shared and menu
53
58
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetName
54
59
  */
55
60
  GetName(self: IMaterial): string;
61
+
56
62
  /**
57
63
  * Returns the name of the materials shader.
58
64
  *
@@ -65,18 +71,21 @@ interface IMaterial {
65
71
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetShader
66
72
  */
67
73
  GetShader(self: IMaterial): string;
74
+
68
75
  /**
69
76
  * Returns the specified material string, or nil if the value is not set or if the value can not be converted to a string.
70
77
  * @realm shared and menu
71
78
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetString
72
79
  */
73
80
  GetString(self: IMaterial, materialString: string): string;
81
+
74
82
  /**
75
83
  * Returns an [ITexture](https://wiki.facepunch.com/gmod/ITexture) based on the passed shader parameter.
76
84
  * @realm shared and menu
77
85
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetTexture
78
86
  */
79
87
  GetTexture(self: IMaterial, param: string): ITexture;
88
+
80
89
  /**
81
90
  * Returns the specified material vector, or nil if the value is not set.
82
91
  *
@@ -86,12 +95,14 @@ interface IMaterial {
86
95
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector
87
96
  */
88
97
  GetVector(self: IMaterial, materialVector: string): Vector;
98
+
89
99
  /**
90
100
  * Returns the specified material vector as a 4 component vector.
91
101
  * @realm shared and menu
92
102
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVector4D
93
103
  */
94
104
  GetVector4D(self: IMaterial, name: string): (number, number, number, number);
105
+
95
106
  /**
96
107
  * Returns the specified material linear color vector, or nil if the value is not set.
97
108
  *
@@ -103,18 +114,21 @@ interface IMaterial {
103
114
  * @source https://wiki.facepunch.com/gmod/IMaterial:GetVectorLinear
104
115
  */
105
116
  GetVectorLinear(self: IMaterial, materialVector: string): Vector;
117
+
106
118
  /**
107
119
  * Returns the height of the member texture set for `$basetexture`.
108
120
  * @realm shared and menu
109
121
  * @source https://wiki.facepunch.com/gmod/IMaterial:Height
110
122
  */
111
123
  Height(self: IMaterial): number;
124
+
112
125
  /**
113
126
  * Returns whenever the material is valid, i.e. whether it was not loaded successfully from disk or not.
114
127
  * @realm shared and menu
115
128
  * @source https://wiki.facepunch.com/gmod/IMaterial:IsError
116
129
  */
117
130
  IsError(self: IMaterial): boolean;
131
+
118
132
  /**
119
133
  * Recomputes the material's snapshot. This needs to be called if you have changed variables on your material and it isn't changing.
120
134
  *
@@ -124,6 +138,7 @@ interface IMaterial {
124
138
  * @source https://wiki.facepunch.com/gmod/IMaterial:Recompute
125
139
  */
126
140
  Recompute(self: IMaterial): void;
141
+
127
142
  /**
128
143
  * Changes the Material into the give Image.
129
144
  * **INTERNAL**: This is used by the Background to change the Image.
@@ -133,6 +148,7 @@ interface IMaterial {
133
148
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetDynamicImage
134
149
  */
135
150
  SetDynamicImage(self: IMaterial, path: string): void;
151
+
136
152
  /**
137
153
  * Sets the specified material float to the specified float, does nothing on a type mismatch.
138
154
  *
@@ -142,6 +158,7 @@ interface IMaterial {
142
158
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetFloat
143
159
  */
144
160
  SetFloat(self: IMaterial, materialFloat: string, float: number): void;
161
+
145
162
  /**
146
163
  * Sets the specified material value to the specified int, does nothing on a type mismatch.
147
164
  *
@@ -155,12 +172,14 @@ interface IMaterial {
155
172
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetInt
156
173
  */
157
174
  SetInt(self: IMaterial, materialInt: string, int: number): void;
175
+
158
176
  /**
159
177
  * Sets the specified material value to the specified matrix, does nothing on a type mismatch.
160
178
  * @realm shared
161
179
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetMatrix
162
180
  */
163
181
  SetMatrix(self: IMaterial, materialMatrix: string, matrix: VMatrix): void;
182
+
164
183
  /**
165
184
  * The functionality of this function was removed due to the amount of crashes it caused.
166
185
  * @realm shared and menu
@@ -168,12 +187,14 @@ interface IMaterial {
168
187
  * @deprecated This function does nothing
169
188
  */
170
189
  SetShader(self: IMaterial, shaderName: string): void;
190
+
171
191
  /**
172
192
  * Sets the specified material value to the specified string, does nothing on a type mismatch.
173
193
  * @realm shared and menu
174
194
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetString
175
195
  */
176
196
  SetString(self: IMaterial, materialString: string, string: string): void;
197
+
177
198
  /**
178
199
  * Sets the specified material texture to the specified texture, does nothing on a type mismatch.
179
200
  *
@@ -183,24 +204,28 @@ interface IMaterial {
183
204
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetTexture
184
205
  */
185
206
  SetTexture(self: IMaterial, materialTexture: string, texture: ITexture): void;
207
+
186
208
  /**
187
209
  * Unsets the value for the specified material value.
188
210
  * @realm shared and menu
189
211
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetUndefined
190
212
  */
191
213
  SetUndefined(self: IMaterial, materialValueName: string): void;
214
+
192
215
  /**
193
216
  * Sets the specified material vector to the specified vector, does nothing on a type mismatch.
194
217
  * @realm shared and menu
195
218
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector
196
219
  */
197
220
  SetVector(self: IMaterial, MaterialVector: string, vec: Vector): void;
221
+
198
222
  /**
199
223
  * Sets the specified material vector to the specified 4 component vector, does nothing on a type mismatch.
200
224
  * @realm shared and menu
201
225
  * @source https://wiki.facepunch.com/gmod/IMaterial:SetVector4D
202
226
  */
203
227
  SetVector4D(self: IMaterial, name: string, x: number, y: number, z: number, w: number): void;
228
+
204
229
  /**
205
230
  * Returns the width of the member texture set for `$basetexture`.
206
231
  * @realm shared and menu
@@ -208,30 +233,3 @@ interface IMaterial {
208
233
  */
209
234
  Width(self: IMaterial): number;
210
235
  }
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
@@ -27,24 +27,28 @@ interface IMesh {
27
27
  * @source https://wiki.facepunch.com/gmod/IMesh:BuildFromTriangles
28
28
  */
29
29
  BuildFromTriangles(self: IMesh, vertexes: table): void;
30
+
30
31
  /**
31
32
  * Deletes the mesh and frees the memory used by it.
32
33
  * @realm client
33
34
  * @source https://wiki.facepunch.com/gmod/IMesh:Destroy
34
35
  */
35
36
  Destroy(self: IMesh): void;
37
+
36
38
  /**
37
39
  * Renders the mesh with the active matrix.
38
40
  * @realm client
39
41
  * @source https://wiki.facepunch.com/gmod/IMesh:Draw
40
42
  */
41
43
  Draw(self: IMesh): void;
44
+
42
45
  /**
43
46
  * Renders the mesh with the active matrix and given bone matrices.
44
47
  * @realm client
45
48
  * @source https://wiki.facepunch.com/gmod/IMesh:DrawSkinned
46
49
  */
47
50
  DrawSkinned(self: IMesh, bones: VMatrix[], multiply?: boolean): void;
51
+
48
52
  /**
49
53
  * Returns whether this [IMesh](https://wiki.facepunch.com/gmod/IMesh) is valid or not.
50
54
  *
@@ -53,9 +57,3 @@ interface IMesh {
53
57
  */
54
58
  IsValid(self: IMesh): boolean;
55
59
  }
56
-
57
-
58
-
59
-
60
-
61
-