@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
@@ -6,9 +6,7 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DColorMixer
8
8
  */
9
- interface DColorMixer extends DPanel {}
10
-
11
- interface DColorMixer {
9
+ interface DColorMixer extends DPanel {
12
10
  /**
13
11
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
14
12
  *
@@ -16,9 +14,6 @@ interface DColorMixer {
16
14
  * @source https://wiki.facepunch.com/gmod/DColorMixer:ConVarThink
17
15
  */
18
16
  ConVarThink(self: DColorMixer): void;
19
- }
20
-
21
- interface DColorMixer {
22
17
  /**
23
18
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
24
19
  *
@@ -26,27 +21,18 @@ interface DColorMixer {
26
21
  * @source https://wiki.facepunch.com/gmod/DColorMixer:DoConVarThink
27
22
  */
28
23
  DoConVarThink(self: DColorMixer, cvar: string): void;
29
- }
30
-
31
- interface DColorMixer {
32
24
  /**
33
25
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if alpha bar is shown, false if not.
34
26
  * @realm client and menu
35
27
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetAlphaBar
36
28
  */
37
29
  GetAlphaBar(self: DColorMixer): boolean;
38
- }
39
-
40
- interface DColorMixer {
41
30
  /**
42
31
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the current selected color.
43
32
  * @realm client and menu
44
33
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetColor
45
34
  */
46
35
  GetColor(self: DColorMixer): Color;
47
- }
48
-
49
- interface DColorMixer {
50
36
  /**
51
37
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
52
38
  *
@@ -59,9 +45,6 @@ interface DColorMixer {
59
45
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarA
60
46
  */
61
47
  GetConVarA(self: DColorMixer): string;
62
- }
63
-
64
- interface DColorMixer {
65
48
  /**
66
49
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
67
50
  *
@@ -74,9 +57,6 @@ interface DColorMixer {
74
57
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarB
75
58
  */
76
59
  GetConVarB(self: DColorMixer): string;
77
- }
78
-
79
- interface DColorMixer {
80
60
  /**
81
61
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
82
62
  *
@@ -89,9 +69,6 @@ interface DColorMixer {
89
69
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarG
90
70
  */
91
71
  GetConVarG(self: DColorMixer): string;
92
- }
93
-
94
- interface DColorMixer {
95
72
  /**
96
73
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
97
74
  *
@@ -104,45 +81,30 @@ interface DColorMixer {
104
81
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarR
105
82
  */
106
83
  GetConVarR(self: DColorMixer): string;
107
- }
108
-
109
- interface DColorMixer {
110
84
  /**
111
85
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if palette is shown, false if not.
112
86
  * @realm client and menu
113
87
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetPalette
114
88
  */
115
89
  GetPalette(self: DColorMixer): boolean;
116
- }
117
-
118
- interface DColorMixer {
119
90
  /**
120
91
  * Returns the color as a normalized [Vector](https://wiki.facepunch.com/gmod/Vector).
121
92
  * @realm client and menu
122
93
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetVector
123
94
  */
124
95
  GetVector(self: DColorMixer): Vector;
125
- }
126
-
127
- interface DColorMixer {
128
96
  /**
129
97
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if the wangs are shown, false if not.
130
98
  * @realm client and menu
131
99
  * @source https://wiki.facepunch.com/gmod/DColorMixer:GetWangs
132
100
  */
133
101
  GetWangs(self: DColorMixer): boolean;
134
- }
135
-
136
- interface DColorMixer {
137
102
  /**
138
103
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that show/hide the alpha bar in DColorMixer
139
104
  * @realm client and menu
140
105
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetAlphaBar
141
106
  */
142
107
  SetAlphaBar(self: DColorMixer, show: boolean): void;
143
- }
144
-
145
- interface DColorMixer {
146
108
  /**
147
109
  * Sets the base color of the [DColorCube](https://wiki.facepunch.com/gmod/DColorCube) part of the [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer).
148
110
  *
@@ -152,18 +114,12 @@ interface DColorMixer {
152
114
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetBaseColor
153
115
  */
154
116
  SetBaseColor(self: DColorMixer, clr: Color): void;
155
- }
156
-
157
- interface DColorMixer {
158
117
  /**
159
118
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the color of the [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer). See also [DColorMixer:GetColor](https://wiki.facepunch.com/gmod/DColorMixer:GetColor)
160
119
  * @realm client and menu
161
120
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetColor
162
121
  */
163
122
  SetColor(self: DColorMixer, color: Color): void;
164
- }
165
-
166
- interface DColorMixer {
167
123
  /**
168
124
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
169
125
  *
@@ -176,9 +132,6 @@ interface DColorMixer {
176
132
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarA
177
133
  */
178
134
  SetConVarA(self: DColorMixer, convar: string): void;
179
- }
180
-
181
- interface DColorMixer {
182
135
  /**
183
136
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
184
137
  *
@@ -191,9 +144,6 @@ interface DColorMixer {
191
144
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarB
192
145
  */
193
146
  SetConVarB(self: DColorMixer, convar: string): void;
194
- }
195
-
196
- interface DColorMixer {
197
147
  /**
198
148
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
199
149
  *
@@ -206,9 +156,6 @@ interface DColorMixer {
206
156
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarG
207
157
  */
208
158
  SetConVarG(self: DColorMixer, convar: string): void;
209
- }
210
-
211
- interface DColorMixer {
212
159
  /**
213
160
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
214
161
  *
@@ -221,45 +168,30 @@ interface DColorMixer {
221
168
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarR
222
169
  */
223
170
  SetConVarR(self: DColorMixer, convar: string): void;
224
- }
225
-
226
- interface DColorMixer {
227
171
  /**
228
172
  * Sets the label's text to show.
229
173
  * @realm client and menu
230
174
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetLabel
231
175
  */
232
176
  SetLabel(self: DColorMixer, text?: string): void;
233
- }
234
-
235
- interface DColorMixer {
236
177
  /**
237
178
  * Show or hide the palette panel
238
179
  * @realm client and menu
239
180
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetPalette
240
181
  */
241
182
  SetPalette(self: DColorMixer, enabled: boolean): void;
242
- }
243
-
244
- interface DColorMixer {
245
183
  /**
246
184
  * Sets the color of [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer) from a [Vector](https://wiki.facepunch.com/gmod/Vector). Alpha is not included.
247
185
  * @realm client and menu
248
186
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetVector
249
187
  */
250
188
  SetVector(self: DColorMixer, vec: Vector): void;
251
- }
252
-
253
- interface DColorMixer {
254
189
  /**
255
190
  * Show / Hide the colors indicators in DColorMixer
256
191
  * @realm client and menu
257
192
  * @source https://wiki.facepunch.com/gmod/DColorMixer:SetWangs
258
193
  */
259
194
  SetWangs(self: DColorMixer, show: boolean): void;
260
- }
261
-
262
- interface DColorMixer {
263
195
  /**
264
196
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
265
197
  *
@@ -270,9 +202,6 @@ interface DColorMixer {
270
202
  * @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateColor
271
203
  */
272
204
  UpdateColor(self: DColorMixer, clr: Color): void;
273
- }
274
-
275
- interface DColorMixer {
276
205
  /**
277
206
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
278
207
  *
@@ -280,9 +209,6 @@ interface DColorMixer {
280
209
  * @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateConVar
281
210
  */
282
211
  UpdateConVar(self: DColorMixer, cvar: string, part: string, clr: Color): void;
283
- }
284
-
285
- interface DColorMixer {
286
212
  /**
287
213
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
288
214
  *
@@ -290,9 +216,6 @@ interface DColorMixer {
290
216
  * @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateConVars
291
217
  */
292
218
  UpdateConVars(self: DColorMixer, clr: Color): void;
293
- }
294
-
295
- interface DColorMixer {
296
219
  /**
297
220
  * sets the default color of the element to the currently selected color
298
221
  * @realm client and menu
@@ -301,3 +224,29 @@ interface DColorMixer {
301
224
  UpdateDefaultColor(self: DColorMixer): void;
302
225
  }
303
226
 
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
@@ -8,9 +8,7 @@
8
8
  * @realm client and menu
9
9
  * @source https://wiki.facepunch.com/gmod/DColorPalette
10
10
  */
11
- interface DColorPalette extends DIconLayout {}
12
-
13
- interface DColorPalette {
11
+ interface DColorPalette extends DIconLayout {
14
12
  /**
15
13
  * Basically the same functionality as [DColorPalette:OnValueChanged](https://wiki.facepunch.com/gmod/DColorPalette:OnValueChanged), you should use that instead!
16
14
  *
@@ -20,18 +18,12 @@ interface DColorPalette {
20
18
  * @source https://wiki.facepunch.com/gmod/DColorPalette:DoClick
21
19
  */
22
20
  DoClick(self: DColorPalette, clr: Color, btn: Panel): void;
23
- }
24
-
25
- interface DColorPalette {
26
21
  /**
27
22
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the size of each palette button. Set by [DColorPalette:SetButtonSize](https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize).
28
23
  * @realm client and menu
29
24
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetButtonSize
30
25
  */
31
26
  GetButtonSize(self: DColorPalette): number;
32
- }
33
-
34
- interface DColorPalette {
35
27
  /**
36
28
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
37
29
  *
@@ -44,9 +36,6 @@ interface DColorPalette {
44
36
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA
45
37
  */
46
38
  GetConVarA(self: DColorPalette): string;
47
- }
48
-
49
- interface DColorPalette {
50
39
  /**
51
40
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
52
41
  *
@@ -59,9 +48,6 @@ interface DColorPalette {
59
48
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB
60
49
  */
61
50
  GetConVarB(self: DColorPalette): string;
62
- }
63
-
64
- interface DColorPalette {
65
51
  /**
66
52
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
67
53
  *
@@ -74,9 +60,6 @@ interface DColorPalette {
74
60
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG
75
61
  */
76
62
  GetConVarG(self: DColorPalette): string;
77
- }
78
-
79
- interface DColorPalette {
80
63
  /**
81
64
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
82
65
  *
@@ -89,18 +72,12 @@ interface DColorPalette {
89
72
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR
90
73
  */
91
74
  GetConVarR(self: DColorPalette): string;
92
- }
93
-
94
- interface DColorPalette {
95
75
  /**
96
76
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the number of rows of the palette, provided 6 colors fill each row. This value is equal to the number of colors in the DColorPalette divided by 6.
97
77
  * @realm client and menu
98
78
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetNumRows
99
79
  */
100
80
  GetNumRows(self: DColorPalette): number;
101
- }
102
-
103
- interface DColorPalette {
104
81
  /**
105
82
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
106
83
  *
@@ -111,18 +88,12 @@ interface DColorPalette {
111
88
  * @source https://wiki.facepunch.com/gmod/DColorPalette:NetworkColorChange
112
89
  */
113
90
  NetworkColorChange(self: DColorPalette): void;
114
- }
115
-
116
- interface DColorPalette {
117
91
  /**
118
92
  * Called when a palette button has been pressed. For Override
119
93
  * @realm client and menu
120
94
  * @source https://wiki.facepunch.com/gmod/DColorPalette:OnRightClickButton
121
95
  */
122
96
  OnRightClickButton(self: DColorPalette, pnl: Panel): void;
123
- }
124
-
125
- interface DColorPalette {
126
97
  /**
127
98
  * Resets this entire color palette to a default preset one, without saving.
128
99
  *
@@ -132,9 +103,6 @@ interface DColorPalette {
132
103
  * @source https://wiki.facepunch.com/gmod/DColorPalette:Reset
133
104
  */
134
105
  Reset(self: DColorPalette): void;
135
- }
136
-
137
- interface DColorPalette {
138
106
  /**
139
107
  * Resets this entire color palette to a default preset one and saves the changes.
140
108
  *
@@ -144,9 +112,6 @@ interface DColorPalette {
144
112
  * @source https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors
145
113
  */
146
114
  ResetSavedColors(self: DColorPalette): void;
147
- }
148
-
149
- interface DColorPalette {
150
115
  /**
151
116
  * Saves the color of given button across sessions.
152
117
  * The color is saved as a panel cookie, see [Panel:SetCookie](https://wiki.facepunch.com/gmod/Panel:SetCookie) and [Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName).
@@ -156,9 +121,6 @@ interface DColorPalette {
156
121
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SaveColor
157
122
  */
158
123
  SaveColor(self: DColorPalette, btn: Panel, clr: Color): void;
159
- }
160
-
161
- interface DColorPalette {
162
124
  /**
163
125
  * Sets the size of each palette button.
164
126
  *
@@ -171,9 +133,6 @@ interface DColorPalette {
171
133
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize
172
134
  */
173
135
  SetButtonSize(self: DColorPalette, size: number): void;
174
- }
175
-
176
- interface DColorPalette {
177
136
  /**
178
137
  * Currently does nothing. Intended to "select" the color.
179
138
  *
@@ -181,18 +140,12 @@ interface DColorPalette {
181
140
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetColor
182
141
  */
183
142
  SetColor(self: DColorPalette, clr: Color): void;
184
- }
185
-
186
- interface DColorPalette {
187
143
  /**
188
144
  * Clears the palette and adds new buttons with given colors.
189
145
  * @realm client and menu
190
146
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetColorButtons
191
147
  */
192
148
  SetColorButtons(self: DColorPalette, tab: table): void;
193
- }
194
-
195
- interface DColorPalette {
196
149
  /**
197
150
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
198
151
  *
@@ -205,9 +158,6 @@ interface DColorPalette {
205
158
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA
206
159
  */
207
160
  SetConVarA(self: DColorPalette, convar: string): void;
208
- }
209
-
210
- interface DColorPalette {
211
161
  /**
212
162
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
213
163
  *
@@ -220,9 +170,6 @@ interface DColorPalette {
220
170
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB
221
171
  */
222
172
  SetConVarB(self: DColorPalette, convar: string): void;
223
- }
224
-
225
- interface DColorPalette {
226
173
  /**
227
174
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
228
175
  *
@@ -235,9 +182,6 @@ interface DColorPalette {
235
182
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG
236
183
  */
237
184
  SetConVarG(self: DColorPalette, convar: string): void;
238
- }
239
-
240
- interface DColorPalette {
241
185
  /**
242
186
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
243
187
  *
@@ -250,9 +194,6 @@ interface DColorPalette {
250
194
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR
251
195
  */
252
196
  SetConVarR(self: DColorPalette, convar: string): void;
253
- }
254
-
255
- interface DColorPalette {
256
197
  /**
257
198
  * Roughly sets the number of colors that can be picked by the user. If the DColorPalette is exactly 6 rows tall, this function will set the number of colors shown per row in the palette. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
258
199
  * **NOTE**: [DColorPalette:Reset](https://wiki.facepunch.com/gmod/DColorPalette:Reset) or [DColorPalette:ResetSavedColors](https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors) must be called after this function to apply changes.
@@ -262,9 +203,6 @@ interface DColorPalette {
262
203
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetNumRows
263
204
  */
264
205
  SetNumRows(self: DColorPalette, rows: number): void;
265
- }
266
-
267
- interface DColorPalette {
268
206
  /**
269
207
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
270
208
  *
@@ -275,9 +213,6 @@ interface DColorPalette {
275
213
  * @source https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVar
276
214
  */
277
215
  UpdateConVar(self: DColorPalette, name: string, key: string, clr: Color): void;
278
- }
279
-
280
- interface DColorPalette {
281
216
  /**
282
217
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
283
218
  *
@@ -292,3 +227,25 @@ interface DColorPalette {
292
227
  UpdateConVars(self: DColorPalette, clr: Color): void;
293
228
  }
294
229
 
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
@@ -5,27 +5,19 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DColumnSheet
7
7
  */
8
- interface DColumnSheet extends Panel {}
9
-
10
- interface DColumnSheet {
8
+ interface DColumnSheet extends Panel {
11
9
  /**
12
10
  * Adds a new column/tab.
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DColumnSheet:AddSheet
15
13
  */
16
14
  AddSheet(self: DColumnSheet, name: string, pnl: Panel, icon?: string): table;
17
- }
18
-
19
- interface DColumnSheet {
20
15
  /**
21
16
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the active button of this [DColumnSheet](https://wiki.facepunch.com/gmod/DColumnSheet).
22
17
  * @realm client and menu
23
18
  * @source https://wiki.facepunch.com/gmod/DColumnSheet:GetActiveButton
24
19
  */
25
20
  GetActiveButton(self: DColumnSheet): Panel;
26
- }
27
-
28
- interface DColumnSheet {
29
21
  /**
30
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
23
  *
@@ -36,9 +28,6 @@ interface DColumnSheet {
36
28
  * @source https://wiki.facepunch.com/gmod/DColumnSheet:SetActiveButton
37
29
  */
38
30
  SetActiveButton(self: DColumnSheet, active: Panel): void;
39
- }
40
-
41
- interface DColumnSheet {
42
31
  /**
43
32
  * Makes the tabs/buttons show only the image and no text.
44
33
  * @realm client and menu
@@ -47,3 +36,7 @@ interface DColumnSheet {
47
36
  UseButtonOnlyStyle(self: DColumnSheet): void;
48
37
  }
49
38
 
39
+
40
+
41
+
42
+