@tlua/gmod 1.0.4 → 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 +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  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 +1 -26
  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 +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  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 +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  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 +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -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,14 @@ 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
21
 
25
- interface DColorPalette {
26
22
  /**
27
23
  * 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
24
  * @realm client and menu
29
25
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetButtonSize
30
26
  */
31
27
  GetButtonSize(self: DColorPalette): number;
32
- }
33
28
 
34
- interface DColorPalette {
35
29
  /**
36
30
  * 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
31
  *
@@ -44,9 +38,7 @@ interface DColorPalette {
44
38
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA
45
39
  */
46
40
  GetConVarA(self: DColorPalette): string;
47
- }
48
41
 
49
- interface DColorPalette {
50
42
  /**
51
43
  * 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
44
  *
@@ -59,9 +51,7 @@ interface DColorPalette {
59
51
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB
60
52
  */
61
53
  GetConVarB(self: DColorPalette): string;
62
- }
63
54
 
64
- interface DColorPalette {
65
55
  /**
66
56
  * 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
57
  *
@@ -74,9 +64,7 @@ interface DColorPalette {
74
64
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG
75
65
  */
76
66
  GetConVarG(self: DColorPalette): string;
77
- }
78
67
 
79
- interface DColorPalette {
80
68
  /**
81
69
  * 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
70
  *
@@ -89,18 +77,14 @@ interface DColorPalette {
89
77
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR
90
78
  */
91
79
  GetConVarR(self: DColorPalette): string;
92
- }
93
80
 
94
- interface DColorPalette {
95
81
  /**
96
82
  * 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
83
  * @realm client and menu
98
84
  * @source https://wiki.facepunch.com/gmod/DColorPalette:GetNumRows
99
85
  */
100
86
  GetNumRows(self: DColorPalette): number;
101
- }
102
87
 
103
- interface DColorPalette {
104
88
  /**
105
89
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
106
90
  *
@@ -111,18 +95,14 @@ interface DColorPalette {
111
95
  * @source https://wiki.facepunch.com/gmod/DColorPalette:NetworkColorChange
112
96
  */
113
97
  NetworkColorChange(self: DColorPalette): void;
114
- }
115
98
 
116
- interface DColorPalette {
117
99
  /**
118
100
  * Called when a palette button has been pressed. For Override
119
101
  * @realm client and menu
120
102
  * @source https://wiki.facepunch.com/gmod/DColorPalette:OnRightClickButton
121
103
  */
122
104
  OnRightClickButton(self: DColorPalette, pnl: Panel): void;
123
- }
124
105
 
125
- interface DColorPalette {
126
106
  /**
127
107
  * Resets this entire color palette to a default preset one, without saving.
128
108
  *
@@ -132,9 +112,7 @@ interface DColorPalette {
132
112
  * @source https://wiki.facepunch.com/gmod/DColorPalette:Reset
133
113
  */
134
114
  Reset(self: DColorPalette): void;
135
- }
136
115
 
137
- interface DColorPalette {
138
116
  /**
139
117
  * Resets this entire color palette to a default preset one and saves the changes.
140
118
  *
@@ -144,9 +122,7 @@ interface DColorPalette {
144
122
  * @source https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors
145
123
  */
146
124
  ResetSavedColors(self: DColorPalette): void;
147
- }
148
125
 
149
- interface DColorPalette {
150
126
  /**
151
127
  * Saves the color of given button across sessions.
152
128
  * 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 +132,7 @@ interface DColorPalette {
156
132
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SaveColor
157
133
  */
158
134
  SaveColor(self: DColorPalette, btn: Panel, clr: Color): void;
159
- }
160
135
 
161
- interface DColorPalette {
162
136
  /**
163
137
  * Sets the size of each palette button.
164
138
  *
@@ -171,9 +145,7 @@ interface DColorPalette {
171
145
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize
172
146
  */
173
147
  SetButtonSize(self: DColorPalette, size: number): void;
174
- }
175
148
 
176
- interface DColorPalette {
177
149
  /**
178
150
  * Currently does nothing. Intended to "select" the color.
179
151
  *
@@ -181,18 +153,14 @@ interface DColorPalette {
181
153
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetColor
182
154
  */
183
155
  SetColor(self: DColorPalette, clr: Color): void;
184
- }
185
156
 
186
- interface DColorPalette {
187
157
  /**
188
158
  * Clears the palette and adds new buttons with given colors.
189
159
  * @realm client and menu
190
160
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetColorButtons
191
161
  */
192
162
  SetColorButtons(self: DColorPalette, tab: table): void;
193
- }
194
163
 
195
- interface DColorPalette {
196
164
  /**
197
165
  * 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
166
  *
@@ -205,9 +173,7 @@ interface DColorPalette {
205
173
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA
206
174
  */
207
175
  SetConVarA(self: DColorPalette, convar: string): void;
208
- }
209
176
 
210
- interface DColorPalette {
211
177
  /**
212
178
  * 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
179
  *
@@ -220,9 +186,7 @@ interface DColorPalette {
220
186
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB
221
187
  */
222
188
  SetConVarB(self: DColorPalette, convar: string): void;
223
- }
224
189
 
225
- interface DColorPalette {
226
190
  /**
227
191
  * 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
192
  *
@@ -235,9 +199,7 @@ interface DColorPalette {
235
199
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG
236
200
  */
237
201
  SetConVarG(self: DColorPalette, convar: string): void;
238
- }
239
202
 
240
- interface DColorPalette {
241
203
  /**
242
204
  * 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
205
  *
@@ -250,9 +212,7 @@ interface DColorPalette {
250
212
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR
251
213
  */
252
214
  SetConVarR(self: DColorPalette, convar: string): void;
253
- }
254
215
 
255
- interface DColorPalette {
256
216
  /**
257
217
  * 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
218
  * **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 +222,7 @@ interface DColorPalette {
262
222
  * @source https://wiki.facepunch.com/gmod/DColorPalette:SetNumRows
263
223
  */
264
224
  SetNumRows(self: DColorPalette, rows: number): void;
265
- }
266
225
 
267
- interface DColorPalette {
268
226
  /**
269
227
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
270
228
  *
@@ -275,9 +233,7 @@ interface DColorPalette {
275
233
  * @source https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVar
276
234
  */
277
235
  UpdateConVar(self: DColorPalette, name: string, key: string, clr: Color): void;
278
- }
279
236
 
280
- interface DColorPalette {
281
237
  /**
282
238
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
283
239
  *
@@ -291,4 +247,3 @@ interface DColorPalette {
291
247
  */
292
248
  UpdateConVars(self: DColorPalette, clr: Color): void;
293
249
  }
294
-
@@ -5,27 +5,21 @@
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
15
 
19
- interface DColumnSheet {
20
16
  /**
21
17
  * 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
18
  * @realm client and menu
23
19
  * @source https://wiki.facepunch.com/gmod/DColumnSheet:GetActiveButton
24
20
  */
25
21
  GetActiveButton(self: DColumnSheet): Panel;
26
- }
27
22
 
28
- interface DColumnSheet {
29
23
  /**
30
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
25
  *
@@ -36,9 +30,7 @@ interface DColumnSheet {
36
30
  * @source https://wiki.facepunch.com/gmod/DColumnSheet:SetActiveButton
37
31
  */
38
32
  SetActiveButton(self: DColumnSheet, active: Panel): void;
39
- }
40
33
 
41
- interface DColumnSheet {
42
34
  /**
43
35
  * Makes the tabs/buttons show only the image and no text.
44
36
  * @realm client and menu
@@ -46,4 +38,3 @@ interface DColumnSheet {
46
38
  */
47
39
  UseButtonOnlyStyle(self: DColumnSheet): void;
48
40
  }
49
-
@@ -6,27 +6,21 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DComboBox
8
8
  */
9
- interface DComboBox extends DButton {}
10
-
11
- interface DComboBox {
9
+ interface DComboBox extends DButton {
12
10
  /**
13
11
  * Adds a choice to the combo box.
14
12
  * @realm client and menu
15
13
  * @source https://wiki.facepunch.com/gmod/DComboBox:AddChoice
16
14
  */
17
15
  AddChoice(self: DComboBox, value: string, data?: any, select?: boolean, icon?: string): number;
18
- }
19
16
 
20
- interface DComboBox {
21
17
  /**
22
18
  * Adds a spacer below the currently last item in the drop down. Recommended to use with [DComboBox:SetSortItems](https://wiki.facepunch.com/gmod/DComboBox:SetSortItems) set to `false`.
23
19
  * @realm client and menu
24
20
  * @source https://wiki.facepunch.com/gmod/DComboBox:AddSpacer
25
21
  */
26
22
  AddSpacer(self: DComboBox): void;
27
- }
28
23
 
29
- interface DComboBox {
30
24
  /**
31
25
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
32
26
  * Ran every frame to update the value of this panel to the value of the associated convar. See [Panel:SetConvar](https://wiki.facepunch.com/gmod/Panel:SetConvar).
@@ -34,81 +28,63 @@ interface DComboBox {
34
28
  * @source https://wiki.facepunch.com/gmod/DComboBox:CheckConVarChanges
35
29
  */
36
30
  CheckConVarChanges(self: DComboBox): void;
37
- }
38
31
 
39
- interface DComboBox {
40
32
  /**
41
33
  * Selects a combo box option by its index and changes the text displayed at the top of the combo box.
42
34
  * @realm client and menu
43
35
  * @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOption
44
36
  */
45
37
  ChooseOption(self: DComboBox, value: string, index: number): void;
46
- }
47
38
 
48
- interface DComboBox {
49
39
  /**
50
40
  * Selects an option within a combo box based on its table index.
51
41
  * @realm client and menu
52
42
  * @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOptionID
53
43
  */
54
44
  ChooseOptionID(self: DComboBox, index: number): void;
55
- }
56
45
 
57
- interface DComboBox {
58
46
  /**
59
47
  * Closes the combo box menu. Called when the combo box is clicked while open.
60
48
  * @realm client and menu
61
49
  * @source https://wiki.facepunch.com/gmod/DComboBox:CloseMenu
62
50
  */
63
51
  CloseMenu(self: DComboBox): void;
64
- }
65
52
 
66
- interface DComboBox {
67
53
  /**
68
54
  * Returns an option's data based on the given index.
69
55
  * @realm client and menu
70
56
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionData
71
57
  */
72
58
  GetOptionData(self: DComboBox, index: number): any;
73
- }
74
59
 
75
- interface DComboBox {
76
60
  /**
77
61
  * Returns an option's text based on the given index.
78
62
  * @realm client and menu
79
63
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionText
80
64
  */
81
65
  GetOptionText(self: DComboBox, index: number): string;
82
- }
83
66
 
84
- interface DComboBox {
85
67
  /**
86
68
  * Returns an option's text based on the given data.
87
69
  * @realm client and menu
88
70
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionTextByData
89
71
  */
90
72
  GetOptionTextByData(self: DComboBox, data: string): string;
91
- }
92
73
 
93
- interface DComboBox {
94
74
  /**
95
75
  * Returns the currently selected option's text and data
96
76
  * @realm client and menu
97
77
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetSelected
98
78
  */
99
79
  GetSelected(self: DComboBox): (string, any);
100
- }
101
80
 
102
- interface DComboBox {
103
81
  /**
104
82
  * Returns the index (ID) of the currently selected option.
105
83
  * @realm client and menu
106
84
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetSelectedID
107
85
  */
108
86
  GetSelectedID(self: DComboBox): number;
109
- }
110
87
 
111
- interface DComboBox {
112
88
  /**
113
89
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns an whether the items in the dropdown will be alphabetically sorted or not.
114
90
  *
@@ -118,36 +94,28 @@ interface DComboBox {
118
94
  * @source https://wiki.facepunch.com/gmod/DComboBox:GetSortItems
119
95
  */
120
96
  GetSortItems(self: DComboBox): boolean;
121
- }
122
97
 
123
- interface DComboBox {
124
98
  /**
125
99
  * Returns whether or not the combo box's menu is opened.
126
100
  * @realm client and menu
127
101
  * @source https://wiki.facepunch.com/gmod/DComboBox:IsMenuOpen
128
102
  */
129
103
  IsMenuOpen(self: DComboBox): boolean;
130
- }
131
104
 
132
- interface DComboBox {
133
105
  /**
134
106
  * Opens the combo box drop down menu. Called when the combo box is clicked.
135
107
  * @realm client and menu
136
108
  * @source https://wiki.facepunch.com/gmod/DComboBox:OpenMenu
137
109
  */
138
110
  OpenMenu(self: DComboBox): void;
139
- }
140
111
 
141
- interface DComboBox {
142
112
  /**
143
113
  * Removes a choice added with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice)
144
114
  * @realm client and menu
145
115
  * @source https://wiki.facepunch.com/gmod/DComboBox:RemoveChoice
146
116
  */
147
117
  RemoveChoice(self: DComboBox, index: number): (string, any);
148
- }
149
118
 
150
- interface DComboBox {
151
119
  /**
152
120
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether or not the items should be sorted alphabetically in the dropdown menu of the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox). If set to false, items will appear in the order they were added by [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) calls.
153
121
  *
@@ -158,4 +126,3 @@ interface DComboBox {
158
126
  */
159
127
  SetSortItems(self: DComboBox, sort: boolean): void;
160
128
  }
161
-
@@ -9,9 +9,7 @@
9
9
  * @realm client and menu
10
10
  * @source https://wiki.facepunch.com/gmod/DDragBase
11
11
  */
12
- interface DDragBase extends DPanel {}
13
-
14
- interface DDragBase {
12
+ interface DDragBase extends DPanel {
15
13
  /**
16
14
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
17
15
  *
@@ -22,9 +20,7 @@ interface DDragBase {
22
20
  * @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Copy
23
21
  */
24
22
  DropAction_Copy(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
25
- }
26
23
 
27
- interface DDragBase {
28
24
  /**
29
25
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
30
26
  *
@@ -35,9 +31,7 @@ interface DDragBase {
35
31
  * @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal
36
32
  */
37
33
  DropAction_Normal(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
38
- }
39
34
 
40
- interface DDragBase {
41
35
  /**
42
36
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
43
37
  *
@@ -48,36 +42,28 @@ interface DDragBase {
48
42
  * @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Simple
49
43
  */
50
44
  DropAction_Simple(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
51
- }
52
45
 
53
- interface DDragBase {
54
46
  /**
55
47
  * Returns the drag'n'drop group this panel belongs to. See [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
56
48
  * @realm client and menu
57
49
  * @source https://wiki.facepunch.com/gmod/DDragBase:GetDnD
58
50
  */
59
51
  GetDnD(self: DDragBase): string;
60
- }
61
52
 
62
- interface DDragBase {
63
53
  /**
64
54
  * Returns whether this panel is read only or not for drag'n'drop purposes. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
65
55
  * @realm client and menu
66
56
  * @source https://wiki.facepunch.com/gmod/DDragBase:GetReadOnly
67
57
  */
68
58
  GetReadOnly(self: DDragBase): boolean;
69
- }
70
59
 
71
- interface DDragBase {
72
60
  /**
73
61
  * Whether this panel uses live drag'n'drop previews. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
74
62
  * @realm client and menu
75
63
  * @source https://wiki.facepunch.com/gmod/DDragBase:GetUseLiveDrag
76
64
  */
77
65
  GetUseLiveDrag(self: DDragBase): boolean;
78
- }
79
66
 
80
- interface DDragBase {
81
67
  /**
82
68
  * Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls [Panel:Receiver](https://wiki.facepunch.com/gmod/Panel:Receiver).
83
69
  *
@@ -87,9 +73,7 @@ interface DDragBase {
87
73
  * @source https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable
88
74
  */
89
75
  MakeDroppable(self: DDragBase, name: string, allowCopy: boolean): void;
90
- }
91
76
 
92
- interface DDragBase {
93
77
  /**
94
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
95
79
  * Used internally by [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable).
@@ -101,9 +85,7 @@ interface DDragBase {
101
85
  * @source https://wiki.facepunch.com/gmod/DDragBase:SetDnD
102
86
  */
103
87
  SetDnD(self: DDragBase, name: string): void;
104
- }
105
88
 
106
- interface DDragBase {
107
89
  /**
108
90
  * Determines where you can drop stuff.
109
91
  * "4" for left
@@ -116,27 +98,21 @@ interface DDragBase {
116
98
  * @source https://wiki.facepunch.com/gmod/DDragBase:SetDropPos
117
99
  */
118
100
  SetDropPos(self: DDragBase, pos?: string): void;
119
- }
120
101
 
121
- interface DDragBase {
122
102
  /**
123
103
  * Sets whether this panel is read only or not for drag'n'drop purposes. If set to `true`, you can only copy from this panel, and cannot modify its contents. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
124
104
  * @realm client and menu
125
105
  * @source https://wiki.facepunch.com/gmod/DDragBase:SetReadOnly
126
106
  */
127
107
  SetReadOnly(self: DDragBase, name: boolean): void;
128
- }
129
108
 
130
- interface DDragBase {
131
109
  /**
132
110
  * Whether to use live drag'n'drop previews. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
133
111
  * @realm client and menu
134
112
  * @source https://wiki.facepunch.com/gmod/DDragBase:SetUseLiveDrag
135
113
  */
136
114
  SetUseLiveDrag(self: DDragBase, newState: boolean): void;
137
- }
138
115
 
139
- interface DDragBase {
140
116
  /**
141
117
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
142
118
  *
@@ -148,4 +124,3 @@ interface DDragBase {
148
124
  */
149
125
  UpdateDropTarget(self: DDragBase, drop: number, pnl: Panel): void;
150
126
  }
151
-
@@ -5,63 +5,49 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DDrawer
7
7
  */
8
- interface DDrawer extends Panel {}
9
-
10
- interface DDrawer {
8
+ interface DDrawer extends Panel {
11
9
  /**
12
10
  * Closes the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DDrawer:Close
15
13
  */
16
14
  Close(self: DDrawer): void;
17
- }
18
15
 
19
- interface DDrawer {
20
16
  /**
21
17
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the Open Size of DDrawer.
22
18
  * @realm client and menu
23
19
  * @source https://wiki.facepunch.com/gmod/DDrawer:GetOpenSize
24
20
  */
25
21
  GetOpenSize(self: DDrawer): number;
26
- }
27
22
 
28
- interface DDrawer {
29
23
  /**
30
24
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the Open Time of DDrawer.
31
25
  * @realm client and menu
32
26
  * @source https://wiki.facepunch.com/gmod/DDrawer:GetOpenTime
33
27
  */
34
28
  GetOpenTime(self: DDrawer): number;
35
- }
36
29
 
37
- interface DDrawer {
38
30
  /**
39
31
  * Opens the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
40
32
  * @realm client and menu
41
33
  * @source https://wiki.facepunch.com/gmod/DDrawer:Open
42
34
  */
43
35
  Open(self: DDrawer): void;
44
- }
45
36
 
46
- interface DDrawer {
47
37
  /**
48
38
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the height of DDrawer
49
39
  * @realm client and menu
50
40
  * @source https://wiki.facepunch.com/gmod/DDrawer:SetOpenSize
51
41
  */
52
42
  SetOpenSize(self: DDrawer, Value: number): void;
53
- }
54
43
 
55
- interface DDrawer {
56
44
  /**
57
45
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the time (in seconds) for DDrawer to open.
58
46
  * @realm client and menu
59
47
  * @source https://wiki.facepunch.com/gmod/DDrawer:SetOpenTime
60
48
  */
61
49
  SetOpenTime(self: DDrawer, value: number): void;
62
- }
63
50
 
64
- interface DDrawer {
65
51
  /**
66
52
  * Toggles the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
67
53
  * @realm client and menu
@@ -69,4 +55,3 @@ interface DDrawer {
69
55
  */
70
56
  Toggle(self: DDrawer): void;
71
57
  }
72
-