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