@tlua/gmod 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
package/types/http.d.tlua CHANGED
@@ -46,9 +46,6 @@ interface HttpLib {
46
46
  * @source https://wiki.facepunch.com/gmod/http.Fetch
47
47
  */
48
48
  Fetch(url: string, onSuccess?: (body: string, size: number, headers: table, code: number) => void, onFailure?: (error: string) => void, headers?: table): void;
49
- }
50
-
51
- interface HttpLib {
52
49
  /**
53
50
  * Sends an asynchronous **POST** request to an HTTP server. Internally calls [Global.HTTP](https://wiki.facepunch.com/gmod/Global.HTTP).
54
51
  *
@@ -70,3 +67,4 @@ interface HttpLib {
70
67
  Post(url: string, parameters: table, onSuccess?: (body: string, size: string, headers: table, code: number) => void, onFailure?: (error: string) => void, headers?: table): void;
71
68
  }
72
69
 
70
+
@@ -12,9 +12,7 @@
12
12
  * @realm client
13
13
  * @source https://wiki.facepunch.com/gmod/IconEditor
14
14
  */
15
- interface IconEditor extends DFrame {}
16
-
17
- interface IconEditor {
15
+ interface IconEditor extends DFrame {
18
16
  /**
19
17
  * Applies the top-down view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
20
18
  *
@@ -24,9 +22,6 @@ interface IconEditor {
24
22
  * @source https://wiki.facepunch.com/gmod/IconEditor:AboveLayout
25
23
  */
26
24
  AboveLayout(self: IconEditor): void;
27
- }
28
-
29
- interface IconEditor {
30
25
  /**
31
26
  * Applies the best camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel), using the values returned by [Global.PositionSpawnIcon](https://wiki.facepunch.com/gmod/Global.PositionSpawnIcon).
32
27
  *
@@ -36,9 +31,6 @@ interface IconEditor {
36
31
  * @source https://wiki.facepunch.com/gmod/IconEditor:BestGuessLayout
37
32
  */
38
33
  BestGuessLayout(self: IconEditor): void;
39
- }
40
-
41
- interface IconEditor {
42
34
  /**
43
35
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
44
36
  * Fills the [DListView](https://wiki.facepunch.com/gmod/DListView) on the left of the editor with the model entity's animation list. Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
@@ -46,9 +38,6 @@ interface IconEditor {
46
38
  * @source https://wiki.facepunch.com/gmod/IconEditor:FillAnimations
47
39
  */
48
40
  FillAnimations(self: IconEditor, ent: Entity): void;
49
- }
50
-
51
- interface IconEditor {
52
41
  /**
53
42
  * Applies the front view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
54
43
  *
@@ -58,9 +47,6 @@ interface IconEditor {
58
47
  * @source https://wiki.facepunch.com/gmod/IconEditor:FullFrontalLayout
59
48
  */
60
49
  FullFrontalLayout(self: IconEditor): void;
61
- }
62
-
63
- interface IconEditor {
64
50
  /**
65
51
  * Places the camera at the origin (0,0,0), relative to the entity, in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
66
52
  *
@@ -70,9 +56,6 @@ interface IconEditor {
70
56
  * @source https://wiki.facepunch.com/gmod/IconEditor:OriginLayout
71
57
  */
72
58
  OriginLayout(self: IconEditor): void;
73
- }
74
-
75
- interface IconEditor {
76
59
  /**
77
60
  * Re-renders the [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
78
61
  *
@@ -82,9 +65,6 @@ interface IconEditor {
82
65
  * @source https://wiki.facepunch.com/gmod/IconEditor:RenderIcon
83
66
  */
84
67
  RenderIcon(self: IconEditor): void;
85
- }
86
-
87
- interface IconEditor {
88
68
  /**
89
69
  * Applies the right side view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
90
70
  *
@@ -94,9 +74,6 @@ interface IconEditor {
94
74
  * @source https://wiki.facepunch.com/gmod/IconEditor:RightLayout
95
75
  */
96
76
  RightLayout(self: IconEditor): void;
97
- }
98
-
99
- interface IconEditor {
100
77
  /**
101
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
102
79
  * Sets up the default ambient and directional lighting for the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
@@ -104,9 +81,6 @@ interface IconEditor {
104
81
  * @source https://wiki.facepunch.com/gmod/IconEditor:SetDefaultLighting
105
82
  */
106
83
  SetDefaultLighting(self: IconEditor): void;
107
- }
108
-
109
- interface IconEditor {
110
84
  /**
111
85
  * Sets the editor's model and icon from an entity. Alternative to [IconEditor:SetIcon](https://wiki.facepunch.com/gmod/IconEditor:SetIcon), with uses a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
112
86
  *
@@ -116,9 +90,6 @@ interface IconEditor {
116
90
  * @source https://wiki.facepunch.com/gmod/IconEditor:SetFromEntity
117
91
  */
118
92
  SetFromEntity(self: IconEditor, ent: Entity): void;
119
- }
120
-
121
- interface IconEditor {
122
93
  /**
123
94
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
124
95
  * Updates the entity being rendered in the internal [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by the model panel's [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) method.
@@ -128,3 +99,13 @@ interface IconEditor {
128
99
  UpdateEntity(self: IconEditor, ent: Entity): void;
129
100
  }
130
101
 
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
@@ -4,8 +4,6 @@
4
4
  * A sound channel returned by a callback of [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL) and [sound.PlayFile](https://wiki.facepunch.com/gmod/sound.PlayFile).
5
5
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel
6
6
  */
7
- interface IGModAudioChannel {}
8
-
9
7
  interface IGModAudioChannel {
10
8
  /**
11
9
  * Enables or disables looping of audio channel, requires noblock flag.
@@ -13,9 +11,6 @@ interface IGModAudioChannel {
13
11
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:EnableLooping
14
12
  */
15
13
  EnableLooping(self: IGModAudioChannel, enable: boolean): void;
16
- }
17
-
18
- interface IGModAudioChannel {
19
14
  /**
20
15
  * Computes the [DFT (discrete Fourier transform)](https://en.wikipedia.org/wiki/Discrete_Fourier_transform) of the sound channel.
21
16
  *
@@ -33,18 +28,12 @@ interface IGModAudioChannel {
33
28
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:FFT
34
29
  */
35
30
  FFT(self: IGModAudioChannel, tbl: number[], size: FFT): number;
36
- }
37
-
38
- interface IGModAudioChannel {
39
31
  /**
40
32
  * Returns 3D cone of the sound channel. See [IGModAudioChannel:Set3DCone](https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone).
41
33
  * @realm client
42
34
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DCone
43
35
  */
44
36
  Get3DCone(self: IGModAudioChannel): (number, number, number);
45
- }
46
-
47
- interface IGModAudioChannel {
48
37
  /**
49
38
  * 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).
50
39
  *
@@ -52,27 +41,18 @@ interface IGModAudioChannel {
52
41
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DEnabled
53
42
  */
54
43
  Get3DEnabled(self: IGModAudioChannel): boolean;
55
- }
56
-
57
- interface IGModAudioChannel {
58
44
  /**
59
45
  * Returns 3D fade distances of a sound channel.
60
46
  * @realm client
61
47
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Get3DFadeDistance
62
48
  */
63
49
  Get3DFadeDistance(self: IGModAudioChannel): (number, number);
64
- }
65
-
66
- interface IGModAudioChannel {
67
50
  /**
68
51
  * Returns the average bit rate of the sound channel.
69
52
  * @realm client
70
53
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetAverageBitRate
71
54
  */
72
55
  GetAverageBitRate(self: IGModAudioChannel): number;
73
- }
74
-
75
- interface IGModAudioChannel {
76
56
  /**
77
57
  * Retrieves the number of bits per sample of the sound channel.
78
58
  *
@@ -82,9 +62,6 @@ interface IGModAudioChannel {
82
62
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBitsPerSample
83
63
  */
84
64
  GetBitsPerSample(self: IGModAudioChannel): number;
85
- }
86
-
87
- interface IGModAudioChannel {
88
65
  /**
89
66
  * Returns the buffered time of the sound channel in seconds, for online streaming sound channels. ([sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL))
90
67
  *
@@ -93,36 +70,24 @@ interface IGModAudioChannel {
93
70
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetBufferedTime
94
71
  */
95
72
  GetBufferedTime(self: IGModAudioChannel): number;
96
- }
97
-
98
- interface IGModAudioChannel {
99
73
  /**
100
74
  * Returns the filename for the sound channel.
101
75
  * @realm client
102
76
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetFileName
103
77
  */
104
78
  GetFileName(self: IGModAudioChannel): string;
105
- }
106
-
107
- interface IGModAudioChannel {
108
79
  /**
109
80
  * Returns the length of sound played by the sound channel in seconds.
110
81
  * @realm client
111
82
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLength
112
83
  */
113
84
  GetLength(self: IGModAudioChannel): number;
114
- }
115
-
116
- interface IGModAudioChannel {
117
85
  /**
118
86
  * Returns the right and left levels of sound played by the sound channel.
119
87
  * @realm client
120
88
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetLevel
121
89
  */
122
90
  GetLevel(self: IGModAudioChannel): (number, number);
123
- }
124
-
125
- interface IGModAudioChannel {
126
91
  /**
127
92
  * Gets the relative volume of the left and right channels.
128
93
  *
@@ -130,45 +95,30 @@ interface IGModAudioChannel {
130
95
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPan
131
96
  */
132
97
  GetPan(self: IGModAudioChannel): number;
133
- }
134
-
135
- interface IGModAudioChannel {
136
98
  /**
137
99
  * Returns the playback rate of the sound channel.
138
100
  * @realm client
139
101
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPlaybackRate
140
102
  */
141
103
  GetPlaybackRate(self: IGModAudioChannel): number;
142
- }
143
-
144
- interface IGModAudioChannel {
145
104
  /**
146
105
  * Returns position of the sound channel
147
106
  * @realm client
148
107
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetPos
149
108
  */
150
109
  GetPos(self: IGModAudioChannel): Vector;
151
- }
152
-
153
- interface IGModAudioChannel {
154
110
  /**
155
111
  * Returns the sample rate for currently playing sound.
156
112
  * @realm client
157
113
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetSamplingRate
158
114
  */
159
115
  GetSamplingRate(self: IGModAudioChannel): number;
160
- }
161
-
162
- interface IGModAudioChannel {
163
116
  /**
164
117
  * Returns the state of a sound channel
165
118
  * @realm client
166
119
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetState
167
120
  */
168
121
  GetState(self: IGModAudioChannel): number;
169
- }
170
-
171
- interface IGModAudioChannel {
172
122
  /**
173
123
  * Retrieves HTTP headers from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
174
124
  *
@@ -178,9 +128,6 @@ interface IGModAudioChannel {
178
128
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsHTTP
179
129
  */
180
130
  GetTagsHTTP(self: IGModAudioChannel): string[];
181
- }
182
-
183
- interface IGModAudioChannel {
184
131
  /**
185
132
  * 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.
186
133
  *
@@ -190,9 +137,6 @@ interface IGModAudioChannel {
190
137
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsID3
191
138
  */
192
139
  GetTagsID3(self: IGModAudioChannel): table;
193
- }
194
-
195
- interface IGModAudioChannel {
196
140
  /**
197
141
  * 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.
198
142
  *
@@ -200,9 +144,6 @@ interface IGModAudioChannel {
200
144
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMP4
201
145
  */
202
146
  GetTagsMP4(self: IGModAudioChannel): string[];
203
- }
204
-
205
- interface IGModAudioChannel {
206
147
  /**
207
148
  * Retrieves ICY metadata from a bass stream channel created by [sound.PlayURL](https://wiki.facepunch.com/gmod/sound.PlayURL), if available.
208
149
  *
@@ -210,9 +151,6 @@ interface IGModAudioChannel {
210
151
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsMeta
211
152
  */
212
153
  GetTagsMeta(self: IGModAudioChannel): string;
213
- }
214
-
215
- interface IGModAudioChannel {
216
154
  /**
217
155
  * 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.
218
156
  *
@@ -220,9 +158,6 @@ interface IGModAudioChannel {
220
158
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsOGG
221
159
  */
222
160
  GetTagsOGG(self: IGModAudioChannel): string[];
223
- }
224
-
225
- interface IGModAudioChannel {
226
161
  /**
227
162
  * 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.
228
163
  *
@@ -230,9 +165,6 @@ interface IGModAudioChannel {
230
165
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsVendor
231
166
  */
232
167
  GetTagsVendor(self: IGModAudioChannel): string;
233
- }
234
-
235
- interface IGModAudioChannel {
236
168
  /**
237
169
  * 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.
238
170
  *
@@ -240,99 +172,66 @@ interface IGModAudioChannel {
240
172
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTagsWMA
241
173
  */
242
174
  GetTagsWMA(self: IGModAudioChannel): string[];
243
- }
244
-
245
- interface IGModAudioChannel {
246
175
  /**
247
176
  * Returns the current time of the sound channel in seconds
248
177
  * @realm client
249
178
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetTime
250
179
  */
251
180
  GetTime(self: IGModAudioChannel): number;
252
- }
253
-
254
- interface IGModAudioChannel {
255
181
  /**
256
182
  * Returns volume of a sound channel
257
183
  * @realm client
258
184
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:GetVolume
259
185
  */
260
186
  GetVolume(self: IGModAudioChannel): number;
261
- }
262
-
263
- interface IGModAudioChannel {
264
187
  /**
265
188
  * Returns if the sound channel is in 3D mode or not.
266
189
  * @realm client
267
190
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Is3D
268
191
  */
269
192
  Is3D(self: IGModAudioChannel): boolean;
270
- }
271
-
272
- interface IGModAudioChannel {
273
193
  /**
274
194
  * Returns whether the audio stream is block streamed or not.
275
195
  * @realm client
276
196
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsBlockStreamed
277
197
  */
278
198
  IsBlockStreamed(self: IGModAudioChannel): boolean;
279
- }
280
-
281
- interface IGModAudioChannel {
282
199
  /**
283
200
  * Returns if the sound channel is looping or not.
284
201
  * @realm client
285
202
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsLooping
286
203
  */
287
204
  IsLooping(self: IGModAudioChannel): boolean;
288
- }
289
-
290
- interface IGModAudioChannel {
291
205
  /**
292
206
  * Returns if the sound channel is streamed from the Internet or not.
293
207
  * @realm client
294
208
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsOnline
295
209
  */
296
210
  IsOnline(self: IGModAudioChannel): boolean;
297
- }
298
-
299
- interface IGModAudioChannel {
300
211
  /**
301
212
  * Returns if the sound channel is valid or not.
302
213
  * @realm client
303
214
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:IsValid
304
215
  */
305
216
  IsValid(self: IGModAudioChannel): boolean;
306
- }
307
-
308
- interface IGModAudioChannel {
309
217
  /**
310
218
  * Pauses the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play)
311
219
  * @realm client
312
220
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Pause
313
221
  */
314
222
  Pause(self: IGModAudioChannel): void;
315
- }
316
-
317
- interface IGModAudioChannel {
318
223
  /**
319
224
  * Starts playing the stream.
320
225
  * @realm client
321
226
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Play
322
227
  */
323
228
  Play(self: IGModAudioChannel): void;
324
- }
325
-
326
- interface IGModAudioChannel {
327
229
  /**
328
230
  * Sets 3D cone of the sound channel.
329
231
  * @realm client
330
232
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DCone
331
233
  */
332
234
  Set3DCone(self: IGModAudioChannel, innerAngle: number, outerAngle: number, outerVolume: number): void;
333
- }
334
-
335
- interface IGModAudioChannel {
336
235
  /**
337
236
  * 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).
338
237
  *
@@ -342,18 +241,12 @@ interface IGModAudioChannel {
342
241
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DEnabled
343
242
  */
344
243
  Set3DEnabled(self: IGModAudioChannel, enable: boolean): void;
345
- }
346
-
347
- interface IGModAudioChannel {
348
244
  /**
349
245
  * Sets 3D fade distances of a sound channel.
350
246
  * @realm client
351
247
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:Set3DFadeDistance
352
248
  */
353
249
  Set3DFadeDistance(self: IGModAudioChannel, min: number, max: number): void;
354
- }
355
-
356
- interface IGModAudioChannel {
357
250
  /**
358
251
  * Sets the relative volume of the left and right channels.
359
252
  *
@@ -361,27 +254,18 @@ interface IGModAudioChannel {
361
254
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPan
362
255
  */
363
256
  SetPan(self: IGModAudioChannel, pan: number): void;
364
- }
365
-
366
- interface IGModAudioChannel {
367
257
  /**
368
258
  * Sets the playback rate of the sound channel. May not work with high values for radio streams.
369
259
  * @realm client
370
260
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPlaybackRate
371
261
  */
372
262
  SetPlaybackRate(self: IGModAudioChannel, rate: number): void;
373
- }
374
-
375
- interface IGModAudioChannel {
376
263
  /**
377
264
  * Sets position of sound channel in case the sound channel has a 3d option set.
378
265
  * @realm client
379
266
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetPos
380
267
  */
381
268
  SetPos(self: IGModAudioChannel, pos: Vector, dir?: Vector): void;
382
- }
383
-
384
- interface IGModAudioChannel {
385
269
  /**
386
270
  * Sets the sound channel to specified time ( Rewind to that position of the song ). Does not work on online radio streams.
387
271
  *
@@ -394,18 +278,12 @@ interface IGModAudioChannel {
394
278
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetTime
395
279
  */
396
280
  SetTime(self: IGModAudioChannel, secs: number, dont_decode?: boolean): void;
397
- }
398
-
399
- interface IGModAudioChannel {
400
281
  /**
401
282
  * Sets the volume of a sound channel
402
283
  * @realm client
403
284
  * @source https://wiki.facepunch.com/gmod/IGModAudioChannel:SetVolume
404
285
  */
405
286
  SetVolume(self: IGModAudioChannel, volume: number): void;
406
- }
407
-
408
- interface IGModAudioChannel {
409
287
  /**
410
288
  * Stop the stream. It can be started again using [IGModAudioChannel:Play](https://wiki.facepunch.com/gmod/IGModAudioChannel:Play).
411
289
  *
@@ -417,3 +295,44 @@ interface IGModAudioChannel {
417
295
  Stop(self: IGModAudioChannel): void;
418
296
  }
419
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
+
@@ -11,18 +11,13 @@
11
11
  * @realm client
12
12
  * @source https://wiki.facepunch.com/gmod/ImageCheckBox
13
13
  */
14
- interface ImageCheckBox extends Button {}
15
-
16
- interface ImageCheckBox {
14
+ interface ImageCheckBox extends Button {
17
15
  /**
18
16
  * Returns the checked state of the [ImageCheckBox](https://wiki.facepunch.com/gmod/ImageCheckBox)
19
17
  * @realm client
20
18
  * @source https://wiki.facepunch.com/gmod/ImageCheckBox:GetChecked
21
19
  */
22
20
  GetChecked(self: ImageCheckBox): boolean;
23
- }
24
-
25
- interface ImageCheckBox {
26
21
  /**
27
22
  * Sets the checked state of the checkbox.
28
23
  *
@@ -32,9 +27,6 @@ interface ImageCheckBox {
32
27
  * @source https://wiki.facepunch.com/gmod/ImageCheckBox:Set
33
28
  */
34
29
  Set(self: ImageCheckBox, OnOff: boolean): void;
35
- }
36
-
37
- interface ImageCheckBox {
38
30
  /**
39
31
  * Sets the checked state of the checkbox.
40
32
  *
@@ -46,3 +38,6 @@ interface ImageCheckBox {
46
38
  SetChecked(self: ImageCheckBox, bOn: boolean): void;
47
39
  }
48
40
 
41
+
42
+
43
+