@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/DImage
10
10
  */
11
- interface DImage extends DPanel {}
12
-
13
- interface DImage {
11
+ interface DImage extends DPanel {
14
12
  /**
15
13
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
16
14
  *
@@ -21,9 +19,7 @@ interface DImage {
21
19
  * @source https://wiki.facepunch.com/gmod/DImage:DoLoadMaterial
22
20
  */
23
21
  DoLoadMaterial(self: DImage): void;
24
- }
25
22
 
26
- interface DImage {
27
23
  /**
28
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
29
25
  *
@@ -36,9 +32,7 @@ interface DImage {
36
32
  * @source https://wiki.facepunch.com/gmod/DImage:FixVertexLitMaterial
37
33
  */
38
34
  FixVertexLitMaterial(self: DImage): void;
39
- }
40
35
 
41
- interface DImage {
42
36
  /**
43
37
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
44
38
  *
@@ -49,27 +43,21 @@ interface DImage {
49
43
  * @source https://wiki.facepunch.com/gmod/DImage:GetFailsafeMatName
50
44
  */
51
45
  GetFailsafeMatName(self: DImage): string;
52
- }
53
46
 
54
- interface DImage {
55
47
  /**
56
48
  * Returns the image loaded in the image panel.
57
49
  * @realm client and menu
58
50
  * @source https://wiki.facepunch.com/gmod/DImage:GetImage
59
51
  */
60
52
  GetImage(self: DImage): string;
61
- }
62
53
 
63
- interface DImage {
64
54
  /**
65
55
  * Returns the color override of the image panel.
66
56
  * @realm client and menu
67
57
  * @source https://wiki.facepunch.com/gmod/DImage:GetImageColor
68
58
  */
69
59
  GetImageColor(self: DImage): Color;
70
- }
71
60
 
72
- interface DImage {
73
61
  /**
74
62
  * Returns whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
75
63
  *
@@ -79,9 +67,7 @@ interface DImage {
79
67
  * @source https://wiki.facepunch.com/gmod/DImage:GetKeepAspect
80
68
  */
81
69
  GetKeepAspect(self: DImage): boolean;
82
- }
83
70
 
84
- interface DImage {
85
71
  /**
86
72
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
87
73
  *
@@ -92,18 +78,14 @@ interface DImage {
92
78
  * @source https://wiki.facepunch.com/gmod/DImage:GetMatName
93
79
  */
94
80
  GetMatName(self: DImage): string;
95
- }
96
81
 
97
- interface DImage {
98
82
  /**
99
83
  * Returns the current [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) of the [DImage](https://wiki.facepunch.com/gmod/DImage).
100
84
  * @realm client and menu
101
85
  * @source https://wiki.facepunch.com/gmod/DImage:GetMaterial
102
86
  */
103
87
  GetMaterial(self: DImage): IMaterial;
104
- }
105
88
 
106
- interface DImage {
107
89
  /**
108
90
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
109
91
  *
@@ -116,9 +98,7 @@ interface DImage {
116
98
  * @source https://wiki.facepunch.com/gmod/DImage:LoadMaterial
117
99
  */
118
100
  LoadMaterial(self: DImage): void;
119
- }
120
101
 
121
- interface DImage {
122
102
  /**
123
103
  * Paints a ghost copy of the DImage panel at the given position and
124
104
  * dimensions. This function overrides Panel:PaintAt.
@@ -127,10 +107,7 @@ interface DImage {
127
107
  * @source https://wiki.facepunch.com/gmod/DImage:PaintAt
128
108
  */
129
109
  PaintAt(self: DImage, posX: number, posY: number, width?: number, height?: number): void;
130
- }
131
-
132
110
 
133
- interface DImage {
134
111
  /**
135
112
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
136
113
  *
@@ -141,9 +118,7 @@ interface DImage {
141
118
  * @source https://wiki.facepunch.com/gmod/DImage:SetFailsafeMatName
142
119
  */
143
120
  SetFailsafeMatName(self: DImage, backupMat: string): void;
144
- }
145
121
 
146
- interface DImage {
147
122
  /**
148
123
  * Sets the image to load into the frame. If the first image can't be loaded and `strBackup` is set, that image will be loaded instead.
149
124
  *
@@ -153,18 +128,14 @@ interface DImage {
153
128
  * @source https://wiki.facepunch.com/gmod/DImage:SetImage
154
129
  */
155
130
  SetImage(self: DImage, strImage: string, strBackup?: string): void;
156
- }
157
131
 
158
- interface DImage {
159
132
  /**
160
133
  * Sets the image's color override.
161
134
  * @realm client and menu
162
135
  * @source https://wiki.facepunch.com/gmod/DImage:SetImageColor
163
136
  */
164
137
  SetImageColor(self: DImage, col: Color): void;
165
- }
166
138
 
167
- interface DImage {
168
139
  /**
169
140
  * Sets whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
170
141
  *
@@ -174,9 +145,7 @@ interface DImage {
174
145
  * @source https://wiki.facepunch.com/gmod/DImage:SetKeepAspect
175
146
  */
176
147
  SetKeepAspect(self: DImage, keep: boolean): void;
177
- }
178
148
 
179
- interface DImage {
180
149
  /**
181
150
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
182
151
  *
@@ -187,18 +156,14 @@ interface DImage {
187
156
  * @source https://wiki.facepunch.com/gmod/DImage:SetMatName
188
157
  */
189
158
  SetMatName(self: DImage, mat: string): void;
190
- }
191
159
 
192
- interface DImage {
193
160
  /**
194
161
  * Sets a [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) directly as an image.
195
162
  * @realm client and menu
196
163
  * @source https://wiki.facepunch.com/gmod/DImage:SetMaterial
197
164
  */
198
165
  SetMaterial(self: DImage, mat: IMaterial): void;
199
- }
200
166
 
201
- interface DImage {
202
167
  /**
203
168
  * Similar to [DImage:SetImage](https://wiki.facepunch.com/gmod/DImage:SetImage), but will only do the expensive part of actually loading the textures/material if the material is about to be rendered/viewed.
204
169
  *
@@ -208,9 +173,7 @@ interface DImage {
208
173
  * @source https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial
209
174
  */
210
175
  SetOnViewMaterial(self: DImage, mat: string, backupMat: string): void;
211
- }
212
176
 
213
- interface DImage {
214
177
  /**
215
178
  * Returns true if the image is **not** yet loaded.
216
179
  * @realm client and menu
@@ -218,4 +181,3 @@ interface DImage {
218
181
  */
219
182
  Unloaded(self: DImage): boolean;
220
183
  }
221
-
@@ -3,9 +3,7 @@
3
3
  interface DImageButton extends DButton {
4
4
  /** The internal DImage panel used to render the image. */
5
5
  m_Image: DImage;
6
- }
7
6
 
8
- interface DImageButton {
9
7
  /**
10
8
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
11
9
  *
@@ -16,9 +14,7 @@ interface DImageButton {
16
14
  * @source https://wiki.facepunch.com/gmod/DImageButton:DepressImage
17
15
  */
18
16
  DepressImage(self: DImageButton): void;
19
- }
20
17
 
21
- interface DImageButton {
22
18
  /**
23
19
  * Returns whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
24
20
  *
@@ -26,18 +22,14 @@ interface DImageButton {
26
22
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetDepressImage
27
23
  */
28
24
  GetDepressImage(self: DImageButton): boolean;
29
- }
30
25
 
31
- interface DImageButton {
32
26
  /**
33
27
  * Returns the "image" of the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton). Equivalent of [DImage:GetImage](https://wiki.facepunch.com/gmod/DImage:GetImage).
34
28
  * @realm client and menu
35
29
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetImage
36
30
  */
37
31
  GetImage(self: DImageButton): string;
38
- }
39
32
 
40
- interface DImageButton {
41
33
  /**
42
34
  * Returns whether the image inside the button should be stretched to fit it or not
43
35
  *
@@ -47,9 +39,7 @@ interface DImageButton {
47
39
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetStretchToFit
48
40
  */
49
41
  GetStretchToFit(self: DImageButton): boolean;
50
- }
51
42
 
52
- interface DImageButton {
53
43
  /**
54
44
  * Controls whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
55
45
  *
@@ -57,18 +47,14 @@ interface DImageButton {
57
47
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetDepressImage
58
48
  */
59
49
  SetDepressImage(self: DImageButton, enable: boolean): void;
60
- }
61
50
 
62
- interface DImageButton {
63
51
  /**
64
52
  * Hides or shows the image of the image button. Internally this calls [Panel:SetVisible](https://wiki.facepunch.com/gmod/Panel:SetVisible) on the internal [DImage](https://wiki.facepunch.com/gmod/DImage).
65
53
  * @realm client and menu
66
54
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetImageVisible
67
55
  */
68
56
  SetImageVisible(self: DImageButton, visible: boolean): void;
69
- }
70
57
 
71
- interface DImageButton {
72
58
  /**
73
59
  * Sets whether the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should keep the aspect ratio of its image. Equivalent of [DImage:SetKeepAspect](https://wiki.facepunch.com/gmod/DImage:SetKeepAspect).
74
60
  *
@@ -78,18 +64,14 @@ interface DImageButton {
78
64
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetKeepAspect
79
65
  */
80
66
  SetKeepAspect(self: DImageButton, keep: boolean): void;
81
- }
82
67
 
83
- interface DImageButton {
84
68
  /**
85
69
  * See [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial)
86
70
  * @realm client and menu
87
71
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetOnViewMaterial
88
72
  */
89
73
  SetOnViewMaterial(self: DImageButton, mat: string, backup: string): void;
90
- }
91
74
 
92
- interface DImageButton {
93
75
  /**
94
76
  * Sets whether the image inside the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should be stretched to fill the entire size of the button, without preserving aspect ratio.
95
77
  *
@@ -100,4 +82,3 @@ interface DImageButton {
100
82
  */
101
83
  SetStretchToFit(self: DImageButton, stretch: boolean): void;
102
84
  }
103
-
@@ -6,4 +6,3 @@
6
6
  * @source https://wiki.facepunch.com/gmod/DKillIcon
7
7
  */
8
8
  interface DKillIcon extends Panel {}
9
-
@@ -6,9 +6,7 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DLabel
8
8
  */
9
- interface DLabel extends Label {}
10
-
11
- interface DLabel {
9
+ interface DLabel extends Label {
12
10
  /**
13
11
  * Called just before [DLabel:DoClick](https://wiki.facepunch.com/gmod/DLabel:DoClick).
14
12
  *
@@ -18,18 +16,14 @@ interface DLabel {
18
16
  * @source https://wiki.facepunch.com/gmod/DLabel:DoClickInternal
19
17
  */
20
18
  DoClickInternal(self: DLabel): void;
21
- }
22
19
 
23
- interface DLabel {
24
20
  /**
25
21
  * Called just before [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick). In [DLabel](https://wiki.facepunch.com/gmod/DLabel) does nothing and is safe to override.
26
22
  * @realm client and menu
27
23
  * @source https://wiki.facepunch.com/gmod/DLabel:DoDoubleClickInternal
28
24
  */
29
25
  DoDoubleClickInternal(self: DLabel): void;
30
- }
31
26
 
32
- interface DLabel {
33
27
  /**
34
28
  * Returns whether the label stretches vertically or not.
35
29
  *
@@ -39,9 +33,7 @@ interface DLabel {
39
33
  * @source https://wiki.facepunch.com/gmod/DLabel:GetAutoStretchVertical
40
34
  */
41
35
  GetAutoStretchVertical(self: DLabel): boolean;
42
- }
43
36
 
44
- interface DLabel {
45
37
  /**
46
38
  * Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's bright text color.
47
39
  *
@@ -51,9 +43,7 @@ interface DLabel {
51
43
  * @source https://wiki.facepunch.com/gmod/DLabel:GetBright
52
44
  */
53
45
  GetBright(self: DLabel): boolean;
54
- }
55
46
 
56
- interface DLabel {
57
47
  /**
58
48
  * Returns the actual color of the text.
59
49
  *
@@ -63,9 +53,7 @@ interface DLabel {
63
53
  * @source https://wiki.facepunch.com/gmod/DLabel:GetColor
64
54
  */
65
55
  GetColor(self: DLabel): Color;
66
- }
67
56
 
68
- interface DLabel {
69
57
  /**
70
58
  * Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's dark text color.
71
59
  *
@@ -75,9 +63,7 @@ interface DLabel {
75
63
  * @source https://wiki.facepunch.com/gmod/DLabel:GetDark
76
64
  */
77
65
  GetDark(self: DLabel): boolean;
78
- }
79
66
 
80
- interface DLabel {
81
67
  /**
82
68
  * Gets the disabled state of the [DLabel](https://wiki.facepunch.com/gmod/DLabel). This is set with [DLabel:SetDisabled](https://wiki.facepunch.com/gmod/DLabel:SetDisabled).
83
69
  *
@@ -86,9 +72,7 @@ interface DLabel {
86
72
  * @deprecated Use Panel:IsEnabled instead.
87
73
  */
88
74
  GetDisabled(self: DLabel): boolean;
89
- }
90
75
 
91
- interface DLabel {
92
76
  /**
93
77
  * Returns whether or not double clicking will call [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick).
94
78
  *
@@ -98,9 +82,7 @@ interface DLabel {
98
82
  * @source https://wiki.facepunch.com/gmod/DLabel:GetDoubleClickingEnabled
99
83
  */
100
84
  GetDoubleClickingEnabled(self: DLabel): boolean;
101
- }
102
85
 
103
- interface DLabel {
104
86
  /**
105
87
  * Returns whether or not the panel background is being drawn. Alias of [DLabel:GetPaintBackground](https://wiki.facepunch.com/gmod/DLabel:GetPaintBackground).
106
88
  * @realm client and menu
@@ -108,9 +90,7 @@ interface DLabel {
108
90
  * @deprecated You should use DLabel:GetPaintBackground instead.
109
91
  */
110
92
  GetDrawBackground(self: DLabel): boolean;
111
- }
112
93
 
113
- interface DLabel {
114
94
  /**
115
95
  * Returns whether the [DLabel](https://wiki.facepunch.com/gmod/DLabel) should set its text color to the current skin's highlighted text color.
116
96
  *
@@ -120,9 +100,7 @@ interface DLabel {
120
100
  * @source https://wiki.facepunch.com/gmod/DLabel:GetHighlight
121
101
  */
122
102
  GetHighlight(self: DLabel): boolean;
123
- }
124
103
 
125
- interface DLabel {
126
104
  /**
127
105
  * Used internally by [DComboBox](https://wiki.facepunch.com/gmod/DComboBox).
128
106
  *
@@ -134,36 +112,28 @@ interface DLabel {
134
112
  * @source https://wiki.facepunch.com/gmod/DLabel:GetIsMenu
135
113
  */
136
114
  GetIsMenu(self: DLabel): boolean;
137
- }
138
115
 
139
- interface DLabel {
140
116
  /**
141
117
  * Returns whether the toggle functionality is enabled for a label. Set with [DLabel:SetIsToggle](https://wiki.facepunch.com/gmod/DLabel:SetIsToggle).
142
118
  * @realm client and menu
143
119
  * @source https://wiki.facepunch.com/gmod/DLabel:GetIsToggle
144
120
  */
145
121
  GetIsToggle(self: DLabel): boolean;
146
- }
147
122
 
148
- interface DLabel {
149
123
  /**
150
124
  * Returns whether or not the background should be painted.
151
125
  * @realm client and menu
152
126
  * @source https://wiki.facepunch.com/gmod/DLabel:GetPaintBackground
153
127
  */
154
128
  GetPaintBackground(self: DLabel): boolean;
155
- }
156
129
 
157
- interface DLabel {
158
130
  /**
159
131
  * Returns the "override" text color, set by [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
160
132
  * @realm client and menu
161
133
  * @source https://wiki.facepunch.com/gmod/DLabel:GetTextColor
162
134
  */
163
135
  GetTextColor(self: DLabel): Color;
164
- }
165
136
 
166
- interface DLabel {
167
137
  /**
168
138
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
169
139
  *
@@ -176,9 +146,7 @@ interface DLabel {
176
146
  * @source https://wiki.facepunch.com/gmod/DLabel:GetTextStyleColor
177
147
  */
178
148
  GetTextStyleColor(self: DLabel): Color;
179
- }
180
149
 
181
- interface DLabel {
182
150
  /**
183
151
  * Returns the current toggle state of the label. This can be set with [DLabel:SetToggle](https://wiki.facepunch.com/gmod/DLabel:SetToggle) and toggled with [DLabel:Toggle](https://wiki.facepunch.com/gmod/DLabel:Toggle).
184
152
  *
@@ -188,18 +156,14 @@ interface DLabel {
188
156
  * @source https://wiki.facepunch.com/gmod/DLabel:GetToggle
189
157
  */
190
158
  GetToggle(self: DLabel): boolean;
191
- }
192
159
 
193
- interface DLabel {
194
160
  /**
195
161
  * Automatically adjusts the height of the label dependent of the height of the text inside of it.
196
162
  * @realm client and menu
197
163
  * @source https://wiki.facepunch.com/gmod/DLabel:SetAutoStretchVertical
198
164
  */
199
165
  SetAutoStretchVertical(self: DLabel, stretch: boolean): void;
200
- }
201
166
 
202
- interface DLabel {
203
167
  /**
204
168
  * Sets the color of the text to the bright text color defined in the skin.
205
169
  *
@@ -211,18 +175,14 @@ interface DLabel {
211
175
  * @source https://wiki.facepunch.com/gmod/DLabel:SetBright
212
176
  */
213
177
  SetBright(self: DLabel, bright: boolean): void;
214
- }
215
178
 
216
- interface DLabel {
217
179
  /**
218
180
  * Changes color of label. Alias of [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor).
219
181
  * @realm client and menu
220
182
  * @source https://wiki.facepunch.com/gmod/DLabel:SetColor
221
183
  */
222
184
  SetColor(self: DLabel, color: Color): void;
223
- }
224
185
 
225
- interface DLabel {
226
186
  /**
227
187
  * Sets the color of the text to the dark text color defined in the skin.
228
188
  *
@@ -234,9 +194,7 @@ interface DLabel {
234
194
  * @source https://wiki.facepunch.com/gmod/DLabel:SetDark
235
195
  */
236
196
  SetDark(self: DLabel, dark: boolean): void;
237
- }
238
197
 
239
- interface DLabel {
240
198
  /**
241
199
  * Sets the disabled state of the [DLabel](https://wiki.facepunch.com/gmod/DLabel).
242
200
  *
@@ -247,9 +205,7 @@ interface DLabel {
247
205
  * @deprecated Use Panel:SetEnabled instead.
248
206
  */
249
207
  SetDisabled(self: DLabel, disable: boolean): void;
250
- }
251
208
 
252
- interface DLabel {
253
209
  /**
254
210
  * Sets whether or not double clicking should call [DLabel:DoDoubleClick](https://wiki.facepunch.com/gmod/DLabel:DoDoubleClick).
255
211
  *
@@ -259,9 +215,7 @@ interface DLabel {
259
215
  * @source https://wiki.facepunch.com/gmod/DLabel:SetDoubleClickingEnabled
260
216
  */
261
217
  SetDoubleClickingEnabled(self: DLabel, enable: boolean): void;
262
- }
263
218
 
264
- interface DLabel {
265
219
  /**
266
220
  * Sets whether or not to draw the panel background. Alias of [DLabel:SetPaintBackground](https://wiki.facepunch.com/gmod/DLabel:SetPaintBackground).
267
221
  * @realm client and menu
@@ -269,9 +223,7 @@ interface DLabel {
269
223
  * @deprecated You should use DLabel:SetPaintBackground instead.
270
224
  */
271
225
  SetDrawBackground(self: DLabel, draw: boolean): void;
272
- }
273
226
 
274
- interface DLabel {
275
227
  /**
276
228
  * Sets the color of the text to the highlight text color defined in the skin.
277
229
  *
@@ -285,9 +237,7 @@ interface DLabel {
285
237
  * @source https://wiki.facepunch.com/gmod/DLabel:SetHighlight
286
238
  */
287
239
  SetHighlight(self: DLabel, highlight: boolean): void;
288
- }
289
240
 
290
- interface DLabel {
291
241
  /**
292
242
  * Used internally by [DComboBox](https://wiki.facepunch.com/gmod/DComboBox).
293
243
  *
@@ -300,9 +250,7 @@ interface DLabel {
300
250
  * @source https://wiki.facepunch.com/gmod/DLabel:SetIsMenu
301
251
  */
302
252
  SetIsMenu(self: DLabel, isMenu: boolean): void;
303
- }
304
253
 
305
- interface DLabel {
306
254
  /**
307
255
  * Enables or disables toggle functionality for a label. Retrieved with [DLabel:GetIsToggle](https://wiki.facepunch.com/gmod/DLabel:GetIsToggle).
308
256
  *
@@ -312,18 +260,14 @@ interface DLabel {
312
260
  * @source https://wiki.facepunch.com/gmod/DLabel:SetIsToggle
313
261
  */
314
262
  SetIsToggle(self: DLabel, allowToggle: boolean): void;
315
- }
316
263
 
317
- interface DLabel {
318
264
  /**
319
265
  * Sets whether or not the background should be painted. This is mainly used by derivative classes, such as [DButton](https://wiki.facepunch.com/gmod/DButton).
320
266
  * @realm client and menu
321
267
  * @source https://wiki.facepunch.com/gmod/DLabel:SetPaintBackground
322
268
  */
323
269
  SetPaintBackground(self: DLabel, paint: boolean): void;
324
- }
325
270
 
326
- interface DLabel {
327
271
  /**
328
272
  * **INTERNAL**: Use [DLabel:SetTextColor](https://wiki.facepunch.com/gmod/DLabel:SetTextColor) instead!
329
273
  *
@@ -335,9 +279,7 @@ interface DLabel {
335
279
  * @source https://wiki.facepunch.com/gmod/DLabel:SetTextStyleColor
336
280
  */
337
281
  SetTextStyleColor(self: DLabel, color: Color): void;
338
- }
339
282
 
340
- interface DLabel {
341
283
  /**
342
284
  * Sets the toggle state of the label. This can be retrieved with [DLabel:GetToggle](https://wiki.facepunch.com/gmod/DLabel:GetToggle) and toggled with [DLabel:Toggle](https://wiki.facepunch.com/gmod/DLabel:Toggle).
343
285
  *
@@ -347,9 +289,7 @@ interface DLabel {
347
289
  * @source https://wiki.facepunch.com/gmod/DLabel:SetToggle
348
290
  */
349
291
  SetToggle(self: DLabel, toggleState: boolean): void;
350
- }
351
292
 
352
- interface DLabel {
353
293
  /**
354
294
  * Toggles the label's state. This can be set and retrieved with [DLabel:SetToggle](https://wiki.facepunch.com/gmod/DLabel:SetToggle) and [DLabel:GetToggle](https://wiki.facepunch.com/gmod/DLabel:GetToggle).
355
295
  *
@@ -359,18 +299,14 @@ interface DLabel {
359
299
  * @source https://wiki.facepunch.com/gmod/DLabel:Toggle
360
300
  */
361
301
  Toggle(self: DLabel): void;
362
- }
363
302
 
364
- interface DLabel {
365
303
  /**
366
304
  * A hook called from within [PANEL:ApplySchemeSettings](https://wiki.facepunch.com/gmod/PANEL:ApplySchemeSettings) to determine the color of the text on display.
367
305
  * @realm client and menu
368
306
  * @source https://wiki.facepunch.com/gmod/DLabel:UpdateColours
369
307
  */
370
308
  UpdateColours(self: DLabel, skin: table): void;
371
- }
372
309
 
373
- interface DLabel {
374
310
  /**
375
311
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
376
312
  *
@@ -382,4 +318,3 @@ interface DLabel {
382
318
  */
383
319
  UpdateFGColor(self: DLabel): void;
384
320
  }
385
-
@@ -8,27 +8,21 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/DLabelEditable
10
10
  */
11
- interface DLabelEditable extends DLabel {}
12
-
13
- interface DLabelEditable {
11
+ interface DLabelEditable extends DLabel {
14
12
  /**
15
13
  * Returns whether the editable label will stretch to the text entered or not.
16
14
  * @realm client
17
15
  * @source https://wiki.facepunch.com/gmod/DLabelEditable:GetAutoStretch
18
16
  */
19
17
  GetAutoStretch(self: DLabelEditable): boolean;
20
- }
21
18
 
22
- interface DLabelEditable {
23
19
  /**
24
20
  * Returns whether this [DLabelEditable](https://wiki.facepunch.com/gmod/DLabelEditable) is being edited or not. (i.e. has focus)
25
21
  * @realm client and menu
26
22
  * @source https://wiki.facepunch.com/gmod/DLabelEditable:IsEditing
27
23
  */
28
24
  IsEditing(self: DLabelEditable): boolean;
29
- }
30
25
 
31
- interface DLabelEditable {
32
26
  /**
33
27
  * A hook called when the player presses Enter (i.e. the finished editing the label) and the text has changed.
34
28
  *
@@ -38,9 +32,7 @@ interface DLabelEditable {
38
32
  * @source https://wiki.facepunch.com/gmod/DLabelEditable:OnLabelTextChanged
39
33
  */
40
34
  OnLabelTextChanged(self: DLabelEditable, txt: string): string;
41
- }
42
35
 
43
- interface DLabelEditable {
44
36
  /**
45
37
  * Sets whether the editable label should stretch to the text entered or not.
46
38
  * @realm client
@@ -48,4 +40,3 @@ interface DLabelEditable {
48
40
  */
49
41
  SetAutoStretch(self: DLabelEditable, stretch: boolean): void;
50
42
  }
51
-