@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
@@ -17,12 +17,7 @@ interface Panel {
17
17
  * @realm menu
18
18
  */
19
19
  SetValue(self: Panel, value: any): void;
20
- }
21
-
22
- // The PANEL hook table is a Panel.
23
- interface PANEL extends Panel {}
24
20
 
25
- interface Panel {
26
21
  /**
27
22
  * Called every frame unless the panel is not visible ([Panel:IsVisible](https://wiki.facepunch.com/gmod/Panel:IsVisible)). Similar to [PANEL:Think](https://wiki.facepunch.com/gmod/PANEL:Think), but can be disabled by [Panel:SetAnimationEnabled](https://wiki.facepunch.com/gmod/Panel:SetAnimationEnabled) as explained below.
28
23
  *
@@ -34,9 +29,7 @@ interface Panel {
34
29
  * @source https://wiki.facepunch.com/gmod/PANEL:AnimationThink
35
30
  */
36
31
  AnimationThink(self: Panel): void;
37
- }
38
32
 
39
- interface Panel {
40
33
  /**
41
34
  * Called whenever the panel should apply its scheme (colors, fonts, style).
42
35
  *
@@ -48,9 +41,7 @@ interface Panel {
48
41
  * @source https://wiki.facepunch.com/gmod/PANEL:ApplySchemeSettings
49
42
  */
50
43
  ApplySchemeSettings(self: Panel): void;
51
- }
52
44
 
53
- interface Panel {
54
45
  /**
55
46
  * Called when an object is dragged and hovered over this panel for 0.1 seconds.
56
47
  *
@@ -60,9 +51,7 @@ interface Panel {
60
51
  * @source https://wiki.facepunch.com/gmod/PANEL:DragHoverClick
61
52
  */
62
53
  DragHoverClick(self: Panel, hoverTime: number): void;
63
- }
64
54
 
65
- interface Panel {
66
55
  /**
67
56
  * Called when this panel is dropped onto another panel.
68
57
  *
@@ -72,36 +61,28 @@ interface Panel {
72
61
  * @source https://wiki.facepunch.com/gmod/PANEL:DroppedOn
73
62
  */
74
63
  DroppedOn(self: Panel, pnl: Panel): void;
75
- }
76
64
 
77
- interface Panel {
78
65
  /**
79
66
  * Called when the panel should generate example use case / example code to use for this panel. Used in the panel opened by **derma_controls** console command.
80
67
  * @realm client
81
68
  * @source https://wiki.facepunch.com/gmod/PANEL:GenerateExample
82
69
  */
83
70
  GenerateExample(self: Panel, _class: string, dpropertysheet: Panel, width: number, height: number): void;
84
- }
85
71
 
86
- interface Panel {
87
72
  /**
88
73
  * Called when the panel is created. This is called for each base type that the panel has.
89
74
  * @realm client
90
75
  * @source https://wiki.facepunch.com/gmod/PANEL:Init
91
76
  */
92
77
  Init(self: Panel): void;
93
- }
94
78
 
95
- interface Panel {
96
79
  /**
97
80
  * Called after [Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName) is called on this panel to apply the just loaded cookie values for this panel.
98
81
  * @realm client
99
82
  * @source https://wiki.facepunch.com/gmod/PANEL:LoadCookies
100
83
  */
101
84
  LoadCookies(self: Panel): void;
102
- }
103
85
 
104
- interface Panel {
105
86
  /**
106
87
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
107
88
  * Called when we are activated during level load. Used by the loading screen panel.
@@ -109,9 +90,7 @@ interface Panel {
109
90
  * @source https://wiki.facepunch.com/gmod/PANEL:OnActivate
110
91
  */
111
92
  OnActivate(self: Panel): void;
112
- }
113
93
 
114
- interface Panel {
115
94
  /**
116
95
  * Called whenever a child was parented to the panel.
117
96
  *
@@ -121,45 +100,35 @@ interface Panel {
121
100
  * @source https://wiki.facepunch.com/gmod/PANEL:OnChildAdded
122
101
  */
123
102
  OnChildAdded(self: Panel, child: Panel): void;
124
- }
125
103
 
126
- interface Panel {
127
104
  /**
128
105
  * Called whenever a child of the panel is about to removed.
129
106
  * @realm client
130
107
  * @source https://wiki.facepunch.com/gmod/PANEL:OnChildRemoved
131
108
  */
132
109
  OnChildRemoved(self: Panel, child: Panel): void;
133
- }
134
110
 
135
- interface Panel {
136
111
  /**
137
112
  * Called whenever the cursor entered the panels bounds.
138
113
  * @realm client
139
114
  * @source https://wiki.facepunch.com/gmod/PANEL:OnCursorEntered
140
115
  */
141
116
  OnCursorEntered(self: Panel): void;
142
- }
143
117
 
144
- interface Panel {
145
118
  /**
146
119
  * Called whenever the cursor left the panels bounds.
147
120
  * @realm client
148
121
  * @source https://wiki.facepunch.com/gmod/PANEL:OnCursorExited
149
122
  */
150
123
  OnCursorExited(self: Panel): void;
151
- }
152
124
 
153
- interface Panel {
154
125
  /**
155
126
  * Called whenever the cursor was moved with the panels bounds.
156
127
  * @realm client
157
128
  * @source https://wiki.facepunch.com/gmod/PANEL:OnCursorMoved
158
129
  */
159
130
  OnCursorMoved(self: Panel, cursorX: number, cursorY: number): boolean;
160
- }
161
131
 
162
- interface Panel {
163
132
  /**
164
133
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
165
134
  * Called when we are deactivated during level load. Used by the loading screen panel.
@@ -167,9 +136,7 @@ interface Panel {
167
136
  * @source https://wiki.facepunch.com/gmod/PANEL:OnDeactivate
168
137
  */
169
138
  OnDeactivate(self: Panel): void;
170
- }
171
139
 
172
- interface Panel {
173
140
  /**
174
141
  * We're being dropped on something
175
142
  * We can create a new panel here and return it, so that instead of dropping us - it drops the new panel instead! We remain where we are!
@@ -180,9 +147,7 @@ interface Panel {
180
147
  * @source https://wiki.facepunch.com/gmod/PANEL:OnDrop
181
148
  */
182
149
  OnDrop(self: Panel): Panel;
183
- }
184
150
 
185
- interface Panel {
186
151
  /**
187
152
  * Called whenever the panel gained or lost focus.
188
153
  *
@@ -193,18 +158,14 @@ interface Panel {
193
158
  * @source https://wiki.facepunch.com/gmod/PANEL:OnFocusChanged
194
159
  */
195
160
  OnFocusChanged(self: Panel, gained: boolean): void;
196
- }
197
161
 
198
- interface Panel {
199
162
  /**
200
163
  * Called when the panel a child [DHScrollBar](https://wiki.facepunch.com/gmod/DHScrollBar) is scrolled.
201
164
  * @realm client
202
165
  * @source https://wiki.facepunch.com/gmod/PANEL:OnHScroll
203
166
  */
204
167
  OnHScroll(self: Panel, offset: number): void;
205
- }
206
168
 
207
- interface Panel {
208
169
  /**
209
170
  * Called whenever a keyboard key was pressed while the panel is focused.
210
171
  *
@@ -214,9 +175,7 @@ interface Panel {
214
175
  * @source https://wiki.facepunch.com/gmod/PANEL:OnKeyCodePressed
215
176
  */
216
177
  OnKeyCodePressed(self: Panel, keyCode: number): boolean;
217
- }
218
178
 
219
- interface Panel {
220
179
  /**
221
180
  * Called whenever a keyboard key was released while the panel is focused.
222
181
  *
@@ -226,45 +185,35 @@ interface Panel {
226
185
  * @source https://wiki.facepunch.com/gmod/PANEL:OnKeyCodeReleased
227
186
  */
228
187
  OnKeyCodeReleased(self: Panel, keyCode: number): boolean;
229
- }
230
188
 
231
- interface Panel {
232
189
  /**
233
190
  * Called whenever a mouse key was pressed while the panel is focused.
234
191
  * @realm client
235
192
  * @source https://wiki.facepunch.com/gmod/PANEL:OnMousePressed
236
193
  */
237
194
  OnMousePressed(self: Panel, keyCode: number): boolean;
238
- }
239
195
 
240
- interface Panel {
241
196
  /**
242
197
  * Called whenever a mouse key was released while the panel is focused.
243
198
  * @realm client
244
199
  * @source https://wiki.facepunch.com/gmod/PANEL:OnMouseReleased
245
200
  */
246
201
  OnMouseReleased(self: Panel, keyCode: number): boolean;
247
- }
248
202
 
249
- interface Panel {
250
203
  /**
251
204
  * Called whenever the mouse wheel was used.
252
205
  * @realm client
253
206
  * @source https://wiki.facepunch.com/gmod/PANEL:OnMouseWheeled
254
207
  */
255
208
  OnMouseWheeled(self: Panel, scrollDelta: number): boolean;
256
- }
257
209
 
258
- interface Panel {
259
210
  /**
260
211
  * Called when the panel is about to be removed.
261
212
  * @realm client
262
213
  * @source https://wiki.facepunch.com/gmod/PANEL:OnRemove
263
214
  */
264
215
  OnRemove(self: Panel): void;
265
- }
266
216
 
267
- interface Panel {
268
217
  /**
269
218
  * Called when the player's screen resolution of the game changes.
270
219
  *
@@ -274,18 +223,14 @@ interface Panel {
274
223
  * @source https://wiki.facepunch.com/gmod/PANEL:OnScreenSizeChanged
275
224
  */
276
225
  OnScreenSizeChanged(self: Panel, oldWidth: number, oldHeight: number, newWidth: number, newHeight: number): void;
277
- }
278
226
 
279
- interface Panel {
280
227
  /**
281
228
  * Called when the panel a child [DVScrollBar](https://wiki.facepunch.com/gmod/DVScrollBar) or [DHScrollBar](https://wiki.facepunch.com/gmod/DHScrollBar) becomes visible.
282
229
  * @realm client
283
230
  * @source https://wiki.facepunch.com/gmod/PANEL:OnScrollbarAppear
284
231
  */
285
232
  OnScrollbarAppear(self: Panel): void;
286
- }
287
233
 
288
- interface Panel {
289
234
  /**
290
235
  * Called just after the panel size changes.
291
236
  *
@@ -298,9 +243,7 @@ interface Panel {
298
243
  * @source https://wiki.facepunch.com/gmod/PANEL:OnSizeChanged
299
244
  */
300
245
  OnSizeChanged(self: Panel, newWidth: number, newHeight: number): void;
301
- }
302
246
 
303
- interface Panel {
304
247
  /**
305
248
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
306
249
  * Called by [dragndrop.StartDragging](https://wiki.facepunch.com/gmod/dragndrop.StartDragging) when the panel starts being dragged.
@@ -308,9 +251,7 @@ interface Panel {
308
251
  * @source https://wiki.facepunch.com/gmod/PANEL:OnStartDragging
309
252
  */
310
253
  OnStartDragging(self: Panel): void;
311
- }
312
254
 
313
- interface Panel {
314
255
  /**
315
256
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
316
257
  * Called by [Panel:DragMouseRelease](https://wiki.facepunch.com/gmod/Panel:DragMouseRelease) when the panel object is released after being dragged.
@@ -318,27 +259,21 @@ interface Panel {
318
259
  * @source https://wiki.facepunch.com/gmod/PANEL:OnStopDragging
319
260
  */
320
261
  OnStopDragging(self: Panel): void;
321
- }
322
262
 
323
- interface Panel {
324
263
  /**
325
264
  * Called whenever clickable text is clicked within a [RichText](https://wiki.facepunch.com/gmod/RichText).
326
265
  * @realm client
327
266
  * @source https://wiki.facepunch.com/gmod/PANEL:OnTextClicked
328
267
  */
329
268
  OnTextClicked(self: Panel, id: string): void;
330
- }
331
269
 
332
- interface Panel {
333
270
  /**
334
271
  * Called when the panel a child [DVScrollBar](https://wiki.facepunch.com/gmod/DVScrollBar) is scrolled.
335
272
  * @realm client
336
273
  * @source https://wiki.facepunch.com/gmod/PANEL:OnVScroll
337
274
  */
338
275
  OnVScroll(self: Panel, offset: number): void;
339
- }
340
276
 
341
- interface Panel {
342
277
  /**
343
278
  * Called whenever the panel should be drawn.
344
279
  *
@@ -356,9 +291,7 @@ interface Panel {
356
291
  * @source https://wiki.facepunch.com/gmod/PANEL:Paint
357
292
  */
358
293
  Paint(self: Panel, width: number, height: number): boolean;
359
- }
360
294
 
361
- interface Panel {
362
295
  /**
363
296
  * Called whenever the panel and all its children were drawn, return true to override the default drawing.
364
297
  *
@@ -368,9 +301,7 @@ interface Panel {
368
301
  * @source https://wiki.facepunch.com/gmod/PANEL:PaintOver
369
302
  */
370
303
  PaintOver(self: Panel, width: number, height: number): boolean;
371
- }
372
304
 
373
- interface Panel {
374
305
  /**
375
306
  * Called whenever the panels' layout needs to be performed again. This means all child panels must be re-positioned to fit the possibly new size of this panel.
376
307
  *
@@ -389,9 +320,7 @@ interface Panel {
389
320
  * @source https://wiki.facepunch.com/gmod/PANEL:PerformLayout
390
321
  */
391
322
  PerformLayout(self: Panel, width: number, height: number): void;
392
- }
393
323
 
394
- interface Panel {
395
324
  /**
396
325
  * Only works on elements defined with [derma.DefineControl](https://wiki.facepunch.com/gmod/derma.DefineControl) and only if the panel has **AllowAutoRefresh** set to true.
397
326
  *
@@ -403,9 +332,7 @@ interface Panel {
403
332
  * @source https://wiki.facepunch.com/gmod/PANEL:PostAutoRefresh
404
333
  */
405
334
  PostAutoRefresh(self: Panel): void;
406
- }
407
335
 
408
- interface Panel {
409
336
  /**
410
337
  * Only works on elements defined with [derma.DefineControl](https://wiki.facepunch.com/gmod/derma.DefineControl) and only if the panel has **AllowAutoRefresh** set to true.
411
338
  *
@@ -417,27 +344,21 @@ interface Panel {
417
344
  * @source https://wiki.facepunch.com/gmod/PANEL:PreAutoRefresh
418
345
  */
419
346
  PreAutoRefresh(self: Panel): void;
420
- }
421
347
 
422
- interface Panel {
423
348
  /**
424
349
  * Called to test if the panel is being `hovered` by the mouse. This will only be called if the panel's parent is being hovered.
425
350
  * @realm client
426
351
  * @source https://wiki.facepunch.com/gmod/PANEL:TestHover
427
352
  */
428
353
  TestHover(self: Panel, x: number, y: number): boolean;
429
- }
430
354
 
431
- interface Panel {
432
355
  /**
433
356
  * Called every frame while [Panel:IsVisible](https://wiki.facepunch.com/gmod/Panel:IsVisible) is true.
434
357
  * @realm client and menu
435
358
  * @source https://wiki.facepunch.com/gmod/PANEL:Think
436
359
  */
437
360
  Think(self: Panel): void;
438
- }
439
361
 
440
- interface Panel {
441
362
  /**
442
363
  * Adds the specified object to the panel.
443
364
  *
@@ -451,10 +372,7 @@ interface Panel {
451
372
  Add<T extends Panel>(self: Panel, object: string | T): T;
452
373
  /** Creates a panel from a PANEL table and parents it to this panel. */
453
374
  Add(self: Panel, panelTable: table): Panel;
454
- }
455
-
456
375
 
457
- interface Panel {
458
376
  /**
459
377
  * This function does nothing.
460
378
  *
@@ -463,63 +381,49 @@ interface Panel {
463
381
  * @deprecated Does nothing
464
382
  */
465
383
  AddText(self: Panel): void;
466
- }
467
384
 
468
- interface Panel {
469
385
  /**
470
386
  * Aligns the panel on the bottom of its parent with the specified offset.
471
387
  * @realm client and menu
472
388
  * @source https://wiki.facepunch.com/gmod/Panel:AlignBottom
473
389
  */
474
390
  AlignBottom(self: Panel, offset?: number): void;
475
- }
476
391
 
477
- interface Panel {
478
392
  /**
479
393
  * Aligns the panel on the left of its parent with the specified offset.
480
394
  * @realm client and menu
481
395
  * @source https://wiki.facepunch.com/gmod/Panel:AlignLeft
482
396
  */
483
397
  AlignLeft(self: Panel, offset?: number): void;
484
- }
485
398
 
486
- interface Panel {
487
399
  /**
488
400
  * Aligns the panel on the right of its parent with the specified offset.
489
401
  * @realm client and menu
490
402
  * @source https://wiki.facepunch.com/gmod/Panel:AlignRight
491
403
  */
492
404
  AlignRight(self: Panel, offset?: number): void;
493
- }
494
405
 
495
- interface Panel {
496
406
  /**
497
407
  * Aligns the panel on the top of its parent with the specified offset.
498
408
  * @realm client and menu
499
409
  * @source https://wiki.facepunch.com/gmod/Panel:AlignTop
500
410
  */
501
411
  AlignTop(self: Panel, offset?: number): void;
502
- }
503
412
 
504
- interface Panel {
505
413
  /**
506
414
  * Uses animation to transition the current alpha value of a panel to a new alpha, over a set period of time and after a specified delay.
507
415
  * @realm client and menu
508
416
  * @source https://wiki.facepunch.com/gmod/Panel:AlphaTo
509
417
  */
510
418
  AlphaTo(self: Panel, alpha: number, duration: number, delay?: number, callback?: (animData: table, targetPanel: Panel) => void): void;
511
- }
512
419
 
513
- interface Panel {
514
420
  /**
515
421
  * Returns the [Global.SysTime](https://wiki.facepunch.com/gmod/Global.SysTime) value when all animations for this panel object will end.
516
422
  * @realm client and menu
517
423
  * @source https://wiki.facepunch.com/gmod/Panel:AnimTail
518
424
  */
519
425
  AnimTail(self: Panel): number;
520
- }
521
426
 
522
- interface Panel {
523
427
  /**
524
428
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
525
429
  * Performs the per-frame operations required for panel animations.
@@ -530,27 +434,21 @@ interface Panel {
530
434
  * @source https://wiki.facepunch.com/gmod/Panel:AnimationThinkInternal
531
435
  */
532
436
  AnimationThinkInternal(self: Panel): void;
533
- }
534
437
 
535
- interface Panel {
536
438
  /**
537
439
  * Appends text to a [RichText](https://wiki.facepunch.com/gmod/RichText) element. This does not automatically add a new line.
538
440
  * @realm client and menu
539
441
  * @source https://wiki.facepunch.com/gmod/Panel:AppendText
540
442
  */
541
443
  AppendText(self: Panel, txt: string): void;
542
- }
543
444
 
544
- interface Panel {
545
445
  /**
546
446
  * Appends text to a [RichText](https://wiki.facepunch.com/gmod/RichText) element (exactly like [Panel:AppendText](https://wiki.facepunch.com/gmod/Panel:AppendText)), while also parsing and adding valid URLs ([Panel:InsertClickableTextStart](https://wiki.facepunch.com/gmod/Panel:InsertClickableTextStart)). This does not automatically add a new line.
547
447
  * @realm client and menu
548
448
  * @source https://wiki.facepunch.com/gmod/Panel:AppendTextWithURLs
549
449
  */
550
450
  AppendTextWithURLs(self: Panel, txt: string): void;
551
- }
552
451
 
553
- interface Panel {
554
452
  /**
555
453
  * Used by [Panel:LoadGWENFile](https://wiki.facepunch.com/gmod/Panel:LoadGWENFile) and [Panel:LoadGWENString](https://wiki.facepunch.com/gmod/Panel:LoadGWENString) to apply a GWEN controls table to a panel object.
556
454
  *
@@ -560,9 +458,7 @@ interface Panel {
560
458
  * @source https://wiki.facepunch.com/gmod/Panel:ApplyGWEN
561
459
  */
562
460
  ApplyGWEN(self: Panel, GWENTable: table): void;
563
- }
564
461
 
565
- interface Panel {
566
462
  /**
567
463
  * Centers the panel on its parent.
568
464
  *
@@ -580,9 +476,7 @@ interface Panel {
580
476
  * @source https://wiki.facepunch.com/gmod/Panel:Center
581
477
  */
582
478
  Center(self: Panel): void;
583
- }
584
479
 
585
- interface Panel {
586
480
  /**
587
481
  * Centers the panel horizontally with specified fraction.
588
482
  *
@@ -591,9 +485,7 @@ interface Panel {
591
485
  * @source https://wiki.facepunch.com/gmod/Panel:CenterHorizontal
592
486
  */
593
487
  CenterHorizontal(self: Panel, fraction?: number): void;
594
- }
595
488
 
596
- interface Panel {
597
489
  /**
598
490
  * Centers the panel vertically with specified fraction.
599
491
  *
@@ -602,36 +494,28 @@ interface Panel {
602
494
  * @source https://wiki.facepunch.com/gmod/Panel:CenterVertical
603
495
  */
604
496
  CenterVertical(self: Panel, fraction?: number): void;
605
- }
606
497
 
607
- interface Panel {
608
498
  /**
609
499
  * Returns the amount of children of the of panel.
610
500
  * @realm client and menu
611
501
  * @source https://wiki.facepunch.com/gmod/Panel:ChildCount
612
502
  */
613
503
  ChildCount(self: Panel): number;
614
- }
615
504
 
616
- interface Panel {
617
505
  /**
618
506
  * Returns the width and height of the space between the position of the panel (upper-left corner) and the max bound of the children panels (farthest reaching lower-right corner).
619
507
  * @realm client and menu
620
508
  * @source https://wiki.facepunch.com/gmod/Panel:ChildrenSize
621
509
  */
622
510
  ChildrenSize(self: Panel): (number, number);
623
- }
624
511
 
625
- interface Panel {
626
512
  /**
627
513
  * Removes all of the panel's children. Many panels also override this method to gracefully clear their contents without breaking themselves.
628
514
  * @realm client and menu
629
515
  * @source https://wiki.facepunch.com/gmod/Panel:Clear
630
516
  */
631
517
  Clear(self: Panel): void;
632
- }
633
518
 
634
- interface Panel {
635
519
  /**
636
520
  * Fades panels color to specified one.
637
521
  * **NOTE**: The panel must have `GetColor` and `SetColor` functions for `ColorTo` to work.
@@ -641,18 +525,14 @@ interface Panel {
641
525
  * @source https://wiki.facepunch.com/gmod/Panel:ColorTo
642
526
  */
643
527
  ColorTo(self: Panel, color: Color, length: number, delay?: number, callback?: (animData: AnimationData, targetPanel: Panel) => void): void;
644
- }
645
528
 
646
- interface Panel {
647
529
  /**
648
530
  * Updates a panel object's associated console variable. This must first be set up with [Global.Derma_Install_Convar_Functions](https://wiki.facepunch.com/gmod/Global.Derma_Install_Convar_Functions), and have a ConVar set using [Panel:SetConVar](https://wiki.facepunch.com/gmod/Panel:SetConVar).
649
531
  * @realm client and menu
650
532
  * @source https://wiki.facepunch.com/gmod/Panel:ConVarChanged
651
533
  */
652
534
  ConVarChanged(self: Panel, newValue: string): void;
653
- }
654
535
 
655
- interface Panel {
656
536
  /**
657
537
  * A think hook for [Panel](https://wiki.facepunch.com/gmod/Panel)s using ConVars as a value. Call it in the Think hook. Sets the panel's value should the convar change.
658
538
  *
@@ -668,9 +548,7 @@ interface Panel {
668
548
  * @source https://wiki.facepunch.com/gmod/Panel:ConVarNumberThink
669
549
  */
670
550
  ConVarNumberThink(self: Panel): void;
671
- }
672
551
 
673
- interface Panel {
674
552
  /**
675
553
  * A think hook for [panels](https://wiki.facepunch.com/gmod/Panel) using ConVars as a value. Call it in the Think hook. Sets the panel's value should the convar change.
676
554
  *
@@ -685,63 +563,49 @@ interface Panel {
685
563
  * @source https://wiki.facepunch.com/gmod/Panel:ConVarStringThink
686
564
  */
687
565
  ConVarStringThink(self: Panel): void;
688
- }
689
566
 
690
- interface Panel {
691
567
  /**
692
568
  * Gets the size, position and dock state of the passed panel object, and applies it to this one.
693
569
  * @realm client and menu
694
570
  * @source https://wiki.facepunch.com/gmod/Panel:CopyBase
695
571
  */
696
572
  CopyBase(self: Panel, srcPanel: Panel): void;
697
- }
698
573
 
699
- interface Panel {
700
574
  /**
701
575
  * Copies position and size of the panel.
702
576
  * @realm client and menu
703
577
  * @source https://wiki.facepunch.com/gmod/Panel:CopyBounds
704
578
  */
705
579
  CopyBounds(self: Panel, base: Panel): void;
706
- }
707
580
 
708
- interface Panel {
709
581
  /**
710
582
  * Copies the height of the panel.
711
583
  * @realm client and menu
712
584
  * @source https://wiki.facepunch.com/gmod/Panel:CopyHeight
713
585
  */
714
586
  CopyHeight(self: Panel, base: Panel): void;
715
- }
716
587
 
717
- interface Panel {
718
588
  /**
719
589
  * Copies the position of the panel.
720
590
  * @realm client and menu
721
591
  * @source https://wiki.facepunch.com/gmod/Panel:CopyPos
722
592
  */
723
593
  CopyPos(self: Panel, base: Panel): void;
724
- }
725
594
 
726
- interface Panel {
727
595
  /**
728
596
  * Performs the CONTROL + C key combination effect ( Copy selection to clipboard ) on selected text in a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) or [RichText](https://wiki.facepunch.com/gmod/RichText) based element.
729
597
  * @realm client and menu
730
598
  * @source https://wiki.facepunch.com/gmod/Panel:CopySelected
731
599
  */
732
600
  CopySelected(self: Panel): void;
733
- }
734
601
 
735
- interface Panel {
736
602
  /**
737
603
  * Copies the width of the panel.
738
604
  * @realm client and menu
739
605
  * @source https://wiki.facepunch.com/gmod/Panel:CopyWidth
740
606
  */
741
607
  CopyWidth(self: Panel, base: Panel): void;
742
- }
743
608
 
744
- interface Panel {
745
609
  /**
746
610
  * Returns the cursor position relative to the top left of the panel.
747
611
  *
@@ -756,27 +620,21 @@ interface Panel {
756
620
  * @source https://wiki.facepunch.com/gmod/Panel:CursorPos
757
621
  */
758
622
  CursorPos(self: Panel): (number, number);
759
- }
760
623
 
761
- interface Panel {
762
624
  /**
763
625
  * Performs the CONTROL + X (delete text and copy it to clipboard buffer) action on selected text in a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) or [RichText](https://wiki.facepunch.com/gmod/RichText) based element.
764
626
  * @realm client and menu
765
627
  * @source https://wiki.facepunch.com/gmod/Panel:CutSelected
766
628
  */
767
629
  CutSelected(self: Panel): void;
768
- }
769
630
 
770
- interface Panel {
771
631
  /**
772
632
  * Deletes a cookie value using the panel's cookie name ( [Panel:GetCookieName](https://wiki.facepunch.com/gmod/Panel:GetCookieName) ) and the passed extension.
773
633
  * @realm client and menu
774
634
  * @source https://wiki.facepunch.com/gmod/Panel:DeleteCookie
775
635
  */
776
636
  DeleteCookie(self: Panel, cookieName: string): void;
777
- }
778
637
 
779
- interface Panel {
780
638
  /**
781
639
  * Resets the panel object's [Panel:SetPos](https://wiki.facepunch.com/gmod/Panel:SetPos) method and removes its animation table (`Panel.LerpAnim`). This effectively undoes the changes made by [Panel:LerpPositions](https://wiki.facepunch.com/gmod/Panel:LerpPositions).
782
640
  *
@@ -786,27 +644,21 @@ interface Panel {
786
644
  * @source https://wiki.facepunch.com/gmod/Panel:DisableLerp
787
645
  */
788
646
  DisableLerp(self: Panel): void;
789
- }
790
647
 
791
- interface Panel {
792
648
  /**
793
649
  * Returns the linear distance from the center of this panel object and another. **Both panels must have the same parent for this function to work properly.**
794
650
  * @realm client and menu
795
651
  * @source https://wiki.facepunch.com/gmod/Panel:Distance
796
652
  */
797
653
  Distance(self: Panel, tgtPanel: Panel): number;
798
- }
799
654
 
800
- interface Panel {
801
655
  /**
802
656
  * Returns the distance between the center of this panel object and a specified point **local to the parent panel**.
803
657
  * @realm client and menu
804
658
  * @source https://wiki.facepunch.com/gmod/Panel:DistanceFrom
805
659
  */
806
660
  DistanceFrom(self: Panel, posX: number, posY: number): number;
807
- }
808
661
 
809
- interface Panel {
810
662
  /**
811
663
  * Makes the panel "lock" the screen until it is removed. All input will be directed to the given panel.
812
664
  *
@@ -818,9 +670,7 @@ interface Panel {
818
670
  * @source https://wiki.facepunch.com/gmod/Panel:DoModal
819
671
  */
820
672
  DoModal(self: Panel): void;
821
- }
822
673
 
823
- interface Panel {
824
674
  /**
825
675
  * Sets the dock type for the panel, making the panel "dock" in a certain direction, modifying it's position and size.
826
676
  *
@@ -835,9 +685,7 @@ interface Panel {
835
685
  * @source https://wiki.facepunch.com/gmod/Panel:Dock
836
686
  */
837
687
  Dock(self: Panel, dockType: DOCK): void;
838
- }
839
688
 
840
- interface Panel {
841
689
  /**
842
690
  * Sets the dock margin of the panel.
843
691
  *
@@ -847,9 +695,7 @@ interface Panel {
847
695
  * @source https://wiki.facepunch.com/gmod/Panel:DockMargin
848
696
  */
849
697
  DockMargin(self: Panel, marginLeft: number, marginTop: number, marginRight: number, marginBottom: number): void;
850
- }
851
698
 
852
- interface Panel {
853
699
  /**
854
700
  * Sets the dock padding of the panel.
855
701
  *
@@ -859,9 +705,7 @@ interface Panel {
859
705
  * @source https://wiki.facepunch.com/gmod/Panel:DockPadding
860
706
  */
861
707
  DockPadding(self: Panel, paddingLeft: number, paddingTop: number, paddingRight: number, paddingBottom: number): void;
862
- }
863
708
 
864
- interface Panel {
865
709
  /**
866
710
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
867
711
  * Called by [Panel:DragMouseRelease](https://wiki.facepunch.com/gmod/Panel:DragMouseRelease) when a user clicks one mouse button whilst dragging with another.
@@ -869,9 +713,7 @@ interface Panel {
869
713
  * @source https://wiki.facepunch.com/gmod/Panel:DragClick
870
714
  */
871
715
  DragClick(self: Panel): boolean;
872
- }
873
716
 
874
- interface Panel {
875
717
  /**
876
718
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
877
719
  * Called by [dragndrop.HoverThink](https://wiki.facepunch.com/gmod/dragndrop.HoverThink) to perform actions on an object that is dragged and hovered over another.
@@ -879,9 +721,7 @@ interface Panel {
879
721
  * @source https://wiki.facepunch.com/gmod/Panel:DragHover
880
722
  */
881
723
  DragHover(self: Panel, HoverTime: number): void;
882
- }
883
724
 
884
- interface Panel {
885
725
  /**
886
726
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
887
727
  * Called to end a drag and hover action. This resets the panel's [PANEL:PaintOver](https://wiki.facepunch.com/gmod/PANEL:PaintOver) method, and is primarily used by [dragndrop.StopDragging](https://wiki.facepunch.com/gmod/dragndrop.StopDragging).
@@ -889,27 +729,21 @@ interface Panel {
889
729
  * @source https://wiki.facepunch.com/gmod/Panel:DragHoverEnd
890
730
  */
891
731
  DragHoverEnd(self: Panel): void;
892
- }
893
732
 
894
- interface Panel {
895
733
  /**
896
734
  * Called to inform the [dragndrop](https://wiki.facepunch.com/gmod/dragndrop) that a mouse button is being held down on a panel object.
897
735
  * @realm client and menu
898
736
  * @source https://wiki.facepunch.com/gmod/Panel:DragMousePress
899
737
  */
900
738
  DragMousePress(self: Panel, mouseCode: number): void;
901
- }
902
739
 
903
- interface Panel {
904
740
  /**
905
741
  * Called to inform the [dragndrop](https://wiki.facepunch.com/gmod/dragndrop) that a mouse button has been depressed on a panel object.
906
742
  * @realm client and menu
907
743
  * @source https://wiki.facepunch.com/gmod/Panel:DragMouseRelease
908
744
  */
909
745
  DragMouseRelease(self: Panel, mouseCode: number): boolean;
910
- }
911
746
 
912
- interface Panel {
913
747
  /**
914
748
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
915
749
  * Called to draw the drop target when an object is being dragged across another. See [Panel:SetDropTarget](https://wiki.facepunch.com/gmod/Panel:SetDropTarget).
@@ -917,9 +751,7 @@ interface Panel {
917
751
  * @source https://wiki.facepunch.com/gmod/Panel:DrawDragHover
918
752
  */
919
753
  DrawDragHover(self: Panel, x: number, y: number, width: number, height: number): void;
920
- }
921
754
 
922
- interface Panel {
923
755
  /**
924
756
  * Draws a coloured rectangle to fill the panel object this method is called on. The colour is set using [surface.SetDrawColor](https://wiki.facepunch.com/gmod/surface.SetDrawColor). This should only be called within the object's [PANEL:Paint](https://wiki.facepunch.com/gmod/PANEL:Paint) or [PANEL:PaintOver](https://wiki.facepunch.com/gmod/PANEL:PaintOver) hooks, as a shortcut for [surface.DrawRect](https://wiki.facepunch.com/gmod/surface.DrawRect).
925
757
  *
@@ -930,9 +762,7 @@ interface Panel {
930
762
  * @source https://wiki.facepunch.com/gmod/Panel:DrawFilledRect
931
763
  */
932
764
  DrawFilledRect(self: Panel): void;
933
- }
934
765
 
935
- interface Panel {
936
766
  /**
937
767
  * Draws a hollow rectangle the size of the panel object this method is called on, with a border width of 1 px. The border colour is set using [surface.SetDrawColor](https://wiki.facepunch.com/gmod/surface.SetDrawColor). This should only be called within the object's [PANEL:Paint](https://wiki.facepunch.com/gmod/PANEL:Paint) or [PANEL:PaintOver](https://wiki.facepunch.com/gmod/PANEL:PaintOver) hooks, as a shortcut for [surface.DrawOutlinedRect](https://wiki.facepunch.com/gmod/surface.DrawOutlinedRect).
938
768
  *
@@ -943,18 +773,14 @@ interface Panel {
943
773
  * @source https://wiki.facepunch.com/gmod/Panel:DrawOutlinedRect
944
774
  */
945
775
  DrawOutlinedRect(self: Panel): void;
946
- }
947
776
 
948
- interface Panel {
949
777
  /**
950
778
  * Used to draw the magenta highlight colour of a panel object when it is selected. This should be called in the object's [PANEL:PaintOver](https://wiki.facepunch.com/gmod/PANEL:PaintOver) hook. Once this is implemented, the highlight colour will be displayed only when the object is selectable and selected. This is achieved using [Panel:SetSelectable](https://wiki.facepunch.com/gmod/Panel:SetSelectable) and [Panel:SetSelected](https://wiki.facepunch.com/gmod/Panel:SetSelected) respectively.
951
779
  * @realm client and menu
952
780
  * @source https://wiki.facepunch.com/gmod/Panel:DrawSelections
953
781
  */
954
782
  DrawSelections(self: Panel): void;
955
- }
956
783
 
957
- interface Panel {
958
784
  /**
959
785
  * Used to draw the text in a [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) within a derma skin. This is usually called within the [SKIN:PaintTextEntry](https://wiki.facepunch.com/gmod/SKIN:PaintTextEntry) skin hook.
960
786
  * **NOTE**: Will silently fail if any of arguments are not given.
@@ -966,9 +792,7 @@ interface Panel {
966
792
  * @source https://wiki.facepunch.com/gmod/Panel:DrawTextEntryText
967
793
  */
968
794
  DrawTextEntryText(self: Panel, textCol: table, highlightCol: table, cursorCol: table): void;
969
- }
970
795
 
971
- interface Panel {
972
796
  /**
973
797
  * Draws a textured rectangle to fill the panel object this method is called on. The texture is set using [surface.SetTexture](https://wiki.facepunch.com/gmod/surface.SetTexture) or [surface.SetMaterial](https://wiki.facepunch.com/gmod/surface.SetMaterial). This should only be called within the object's [PANEL:Paint](https://wiki.facepunch.com/gmod/PANEL:Paint) or [PANEL:PaintOver](https://wiki.facepunch.com/gmod/PANEL:PaintOver) hooks, as a shortcut for [surface.DrawTexturedRect](https://wiki.facepunch.com/gmod/surface.DrawTexturedRect).
974
798
  *
@@ -979,9 +803,7 @@ interface Panel {
979
803
  * @source https://wiki.facepunch.com/gmod/Panel:DrawTexturedRect
980
804
  */
981
805
  DrawTexturedRect(self: Panel): void;
982
- }
983
806
 
984
- interface Panel {
985
807
  /**
986
808
  * Makes this panel droppable. This is used with [Panel:Receiver](https://wiki.facepunch.com/gmod/Panel:Receiver) to create drag and drop events.
987
809
  *
@@ -991,18 +813,14 @@ interface Panel {
991
813
  * @source https://wiki.facepunch.com/gmod/Panel:Droppable
992
814
  */
993
815
  Droppable(self: Panel, name: string): table;
994
- }
995
816
 
996
- interface Panel {
997
817
  /**
998
818
  * Completes a box selection. If the end point of the selection box is within the selection canvas, mouse capture is disabled for the panel object, and the selected state of each child object within the selection box is toggled.
999
819
  * @realm client and menu
1000
820
  * @source https://wiki.facepunch.com/gmod/Panel:EndBoxSelection
1001
821
  */
1002
822
  EndBoxSelection(self: Panel): boolean;
1003
- }
1004
823
 
1005
- interface Panel {
1006
824
  /**
1007
825
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1008
826
  * Used to run commands within a [DHTML](https://wiki.facepunch.com/gmod/DHTML) window.
@@ -1010,36 +828,28 @@ interface Panel {
1010
828
  * @source https://wiki.facepunch.com/gmod/Panel:Exec
1011
829
  */
1012
830
  Exec(self: Panel, cmd: string): void;
1013
- }
1014
831
 
1015
- interface Panel {
1016
832
  /**
1017
833
  * Finds a panel in its children(and sub children) with the given name.
1018
834
  * @realm client and menu
1019
835
  * @source https://wiki.facepunch.com/gmod/Panel:Find
1020
836
  */
1021
837
  Find(self: Panel, panelName: string): Panel;
1022
- }
1023
838
 
1024
- interface Panel {
1025
839
  /**
1026
840
  * Focuses the next panel in the focus queue.
1027
841
  * @realm client and menu
1028
842
  * @source https://wiki.facepunch.com/gmod/Panel:FocusNext
1029
843
  */
1030
844
  FocusNext(self: Panel): void;
1031
- }
1032
845
 
1033
- interface Panel {
1034
846
  /**
1035
847
  * Focuses the previous panel in the focus queue.
1036
848
  * @realm client and menu
1037
849
  * @source https://wiki.facepunch.com/gmod/Panel:FocusPrevious
1038
850
  */
1039
851
  FocusPrevious(self: Panel): void;
1040
- }
1041
852
 
1042
- interface Panel {
1043
853
  /**
1044
854
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1045
855
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `CheckboxText` property to a [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel). This does exactly the same as [Panel:GWEN_SetText](https://wiki.facepunch.com/gmod/Panel:GWEN_SetText), but exists to cater for the seperate GWEN properties.
@@ -1047,9 +857,7 @@ interface Panel {
1047
857
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetCheckboxText
1048
858
  */
1049
859
  GWEN_SetCheckboxText(self: Panel, txt: string): void;
1050
- }
1051
860
 
1052
- interface Panel {
1053
861
  /**
1054
862
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1055
863
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `ControlName` property to a panel. This calls [Panel:SetName](https://wiki.facepunch.com/gmod/Panel:SetName).
@@ -1057,9 +865,7 @@ interface Panel {
1057
865
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetControlName
1058
866
  */
1059
867
  GWEN_SetControlName(self: Panel, name: string): void;
1060
- }
1061
868
 
1062
- interface Panel {
1063
869
  /**
1064
870
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1065
871
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Dock` property to a panel object. This calls [Panel:Dock](https://wiki.facepunch.com/gmod/Panel:Dock).
@@ -1067,9 +873,7 @@ interface Panel {
1067
873
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetDock
1068
874
  */
1069
875
  GWEN_SetDock(self: Panel, dockState: string): void;
1070
- }
1071
876
 
1072
- interface Panel {
1073
877
  /**
1074
878
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1075
879
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `HorizontalAlign` property to a panel object. This calls [Panel:SetContentAlignment](https://wiki.facepunch.com/gmod/Panel:SetContentAlignment).
@@ -1077,9 +881,7 @@ interface Panel {
1077
881
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetHorizontalAlign
1078
882
  */
1079
883
  GWEN_SetHorizontalAlign(self: Panel, hAlign: string): void;
1080
- }
1081
884
 
1082
- interface Panel {
1083
885
  /**
1084
886
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1085
887
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Margin` property to a panel object. This calls [Panel:DockMargin](https://wiki.facepunch.com/gmod/Panel:DockMargin).
@@ -1087,9 +889,7 @@ interface Panel {
1087
889
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetMargin
1088
890
  */
1089
891
  GWEN_SetMargin(self: Panel, margins: table): void;
1090
- }
1091
892
 
1092
- interface Panel {
1093
893
  /**
1094
894
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1095
895
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Max` property to a [DNumberWang](https://wiki.facepunch.com/gmod/DNumberWang), [Slider](https://wiki.facepunch.com/gmod/Slider), [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider) or [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch). This calls `SetMax` on one of the previously listed methods.
@@ -1097,9 +897,7 @@ interface Panel {
1097
897
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetMax
1098
898
  */
1099
899
  GWEN_SetMax(self: Panel, maxValue: number): void;
1100
- }
1101
900
 
1102
- interface Panel {
1103
901
  /**
1104
902
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1105
903
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Min` property to a [DNumberWang](https://wiki.facepunch.com/gmod/DNumberWang), [Slider](https://wiki.facepunch.com/gmod/Slider), [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider) or [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch). This calls `SetMin` on one of the previously listed methods.
@@ -1107,9 +905,7 @@ interface Panel {
1107
905
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetMin
1108
906
  */
1109
907
  GWEN_SetMin(self: Panel, minValue: number): void;
1110
- }
1111
908
 
1112
- interface Panel {
1113
909
  /**
1114
910
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1115
911
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Position` property to a panel object. This calls [Panel:SetPos](https://wiki.facepunch.com/gmod/Panel:SetPos).
@@ -1117,9 +913,7 @@ interface Panel {
1117
913
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetPosition
1118
914
  */
1119
915
  GWEN_SetPosition(self: Panel, pos: table): void;
1120
- }
1121
916
 
1122
- interface Panel {
1123
917
  /**
1124
918
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1125
919
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Size` property to a panel object. This calls [Panel:SetSize](https://wiki.facepunch.com/gmod/Panel:SetSize).
@@ -1127,9 +921,7 @@ interface Panel {
1127
921
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetSize
1128
922
  */
1129
923
  GWEN_SetSize(self: Panel, size: table): void;
1130
- }
1131
924
 
1132
- interface Panel {
1133
925
  /**
1134
926
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
1135
927
  * Used by [Panel:ApplyGWEN](https://wiki.facepunch.com/gmod/Panel:ApplyGWEN) to apply the `Text` property to a panel.
@@ -1137,18 +929,14 @@ interface Panel {
1137
929
  * @source https://wiki.facepunch.com/gmod/Panel:GWEN_SetText
1138
930
  */
1139
931
  GWEN_SetText(self: Panel, txt: string): void;
1140
- }
1141
932
 
1142
- interface Panel {
1143
933
  /**
1144
934
  * Returns the alpha multiplier for this panel.
1145
935
  * @realm client and menu
1146
936
  * @source https://wiki.facepunch.com/gmod/Panel:GetAlpha
1147
937
  */
1148
938
  GetAlpha(self: Panel): number;
1149
- }
1150
939
 
1151
- interface Panel {
1152
940
  /**
1153
941
  * Returns the background color of a panel such as a [RichText](https://wiki.facepunch.com/gmod/RichText), [Label](https://wiki.facepunch.com/gmod/Label) or [DColorCube](https://wiki.facepunch.com/gmod/DColorCube).
1154
942
  *
@@ -1159,9 +947,7 @@ interface Panel {
1159
947
  * @source https://wiki.facepunch.com/gmod/Panel:GetBGColor
1160
948
  */
1161
949
  GetBGColor(self: Panel): Color;
1162
- }
1163
950
 
1164
- interface Panel {
1165
951
  /**
1166
952
  * Returns the position and size of the panel.
1167
953
  *
@@ -1171,72 +957,56 @@ interface Panel {
1171
957
  * @source https://wiki.facepunch.com/gmod/Panel:GetBounds
1172
958
  */
1173
959
  GetBounds(self: Panel): (number, number, number, number);
1174
- }
1175
960
 
1176
- interface Panel {
1177
961
  /**
1178
962
  * Returns the position/offset of the caret (or text cursor) in a text-based panel object.
1179
963
  * @realm client and menu
1180
964
  * @source https://wiki.facepunch.com/gmod/Panel:GetCaretPos
1181
965
  */
1182
966
  GetCaretPos(self: Panel): number;
1183
- }
1184
967
 
1185
- interface Panel {
1186
968
  /**
1187
969
  * Gets a child by its index. For use with [Panel:ChildCount](https://wiki.facepunch.com/gmod/Panel:ChildCount).
1188
970
  * @realm client and menu
1189
971
  * @source https://wiki.facepunch.com/gmod/Panel:GetChild
1190
972
  */
1191
973
  GetChild(self: Panel, childIndex: number): void;
1192
- }
1193
974
 
1194
- interface Panel {
1195
975
  /**
1196
976
  * Gets a child object's position relative to this panel object. The number of levels is not relevant; the child may have many parents between itself and the object on which the method is called.
1197
977
  * @realm client and menu
1198
978
  * @source https://wiki.facepunch.com/gmod/Panel:GetChildPosition
1199
979
  */
1200
980
  GetChildPosition(self: Panel, pnl: Panel): (number, number);
1201
- }
1202
981
 
1203
- interface Panel {
1204
982
  /**
1205
983
  * Returns a table with all the child panels of the panel.
1206
984
  * @realm client and menu
1207
985
  * @source https://wiki.facepunch.com/gmod/Panel:GetChildren
1208
986
  */
1209
987
  GetChildren(self: Panel): table;
1210
- }
1211
988
 
1212
- interface Panel {
1213
989
  /**
1214
990
  * Returns a table of all visible, selectable children of the panel object that lie at least partially within the specified rectangle.
1215
991
  * @realm client and menu
1216
992
  * @source https://wiki.facepunch.com/gmod/Panel:GetChildrenInRect
1217
993
  */
1218
994
  GetChildrenInRect(self: Panel, x: number, y: number, w: number, h: number): table;
1219
- }
1220
995
 
1221
- interface Panel {
1222
996
  /**
1223
997
  * Returns the class name of the panel. This would be the class name of the base engine-level panel, not Lua classname. The latter is stored usually in [Panel:GetName](https://wiki.facepunch.com/gmod/Panel:GetName).
1224
998
  * @realm client and menu
1225
999
  * @source https://wiki.facepunch.com/gmod/Panel:GetClassName
1226
1000
  */
1227
1001
  GetClassName(self: Panel): string;
1228
- }
1229
1002
 
1230
- interface Panel {
1231
1003
  /**
1232
1004
  * Returns the child of this panel object that is closest to the specified point. The point is relative to the object on which the method is called. The distance the child is from this point is also returned.
1233
1005
  * @realm client and menu
1234
1006
  * @source https://wiki.facepunch.com/gmod/Panel:GetClosestChild
1235
1007
  */
1236
1008
  GetClosestChild(self: Panel, x: number, y: number): (Panel, number);
1237
- }
1238
1009
 
1239
- interface Panel {
1240
1010
  /**
1241
1011
  * Returns the alignment of the text of a [Label](https://wiki.facepunch.com/gmod/Label).
1242
1012
  *
@@ -1247,9 +1017,7 @@ interface Panel {
1247
1017
  * @source https://wiki.facepunch.com/gmod/Panel:GetContentAlignment
1248
1018
  */
1249
1019
  GetContentAlignment(self: Panel): number;
1250
- }
1251
1020
 
1252
- interface Panel {
1253
1021
  /**
1254
1022
  * Gets the size of the content/children within a panel object.
1255
1023
  *
@@ -1262,9 +1030,7 @@ interface Panel {
1262
1030
  * @source https://wiki.facepunch.com/gmod/Panel:GetContentSize
1263
1031
  */
1264
1032
  GetContentSize(self: Panel): (number, number);
1265
- }
1266
1033
 
1267
- interface Panel {
1268
1034
  /**
1269
1035
  * Gets the value of a cookie stored by the panel object. This can also be done with [cookie.GetString](https://wiki.facepunch.com/gmod/cookie.GetString), using the panel's cookie name, a fullstop, and then the actual name of the cookie.
1270
1036
  *
@@ -1274,18 +1040,14 @@ interface Panel {
1274
1040
  * @source https://wiki.facepunch.com/gmod/Panel:GetCookie
1275
1041
  */
1276
1042
  GetCookie(self: Panel, cookieName: string, _default: string): string;
1277
- }
1278
1043
 
1279
- interface Panel {
1280
1044
  /**
1281
1045
  * Gets the name the panel uses to store cookies. This is set with [Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName).
1282
1046
  * @realm client and menu
1283
1047
  * @source https://wiki.facepunch.com/gmod/Panel:GetCookieName
1284
1048
  */
1285
1049
  GetCookieName(self: Panel): string;
1286
- }
1287
1050
 
1288
- interface Panel {
1289
1051
  /**
1290
1052
  * Gets the value of a cookie stored by the panel object, as a number. This can also be done with [cookie.GetNumber](https://wiki.facepunch.com/gmod/cookie.GetNumber), using the panel's cookie name, a fullstop, and then the actual name of the cookie.
1291
1053
  *
@@ -1295,36 +1057,28 @@ interface Panel {
1295
1057
  * @source https://wiki.facepunch.com/gmod/Panel:GetCookieNumber
1296
1058
  */
1297
1059
  GetCookieNumber(self: Panel, cookieName: string, _default: number): number;
1298
- }
1299
1060
 
1300
- interface Panel {
1301
1061
  /**
1302
1062
  * Returns a dock enum for the panel's current docking type.
1303
1063
  * @realm client and menu
1304
1064
  * @source https://wiki.facepunch.com/gmod/Panel:GetDock
1305
1065
  */
1306
1066
  GetDock(self: Panel): number;
1307
- }
1308
1067
 
1309
- interface Panel {
1310
1068
  /**
1311
1069
  * Returns the docked margins of the panel. (set by [Panel:DockMargin](https://wiki.facepunch.com/gmod/Panel:DockMargin))
1312
1070
  * @realm client and menu
1313
1071
  * @source https://wiki.facepunch.com/gmod/Panel:GetDockMargin
1314
1072
  */
1315
1073
  GetDockMargin(self: Panel): (number, number, number, number);
1316
- }
1317
1074
 
1318
- interface Panel {
1319
1075
  /**
1320
1076
  * Returns the docked padding of the panel. (set by [Panel:DockPadding](https://wiki.facepunch.com/gmod/Panel:DockPadding))
1321
1077
  * @realm client and menu
1322
1078
  * @source https://wiki.facepunch.com/gmod/Panel:GetDockPadding
1323
1079
  */
1324
1080
  GetDockPadding(self: Panel): (number, number, number, number);
1325
- }
1326
1081
 
1327
- interface Panel {
1328
1082
  /**
1329
1083
  * Returns the foreground color of the panel.
1330
1084
  *
@@ -1337,9 +1091,7 @@ interface Panel {
1337
1091
  * @source https://wiki.facepunch.com/gmod/Panel:GetFGColor
1338
1092
  */
1339
1093
  GetFGColor(self: Panel): Color;
1340
- }
1341
1094
 
1342
- interface Panel {
1343
1095
  /**
1344
1096
  * Returns the name of the font that the panel renders its text with.
1345
1097
  *
@@ -1352,18 +1104,14 @@ interface Panel {
1352
1104
  * @source https://wiki.facepunch.com/gmod/Panel:GetFont
1353
1105
  */
1354
1106
  GetFont(self: Panel): string;
1355
- }
1356
1107
 
1357
- interface Panel {
1358
1108
  /**
1359
1109
  * Returns the panel's HTML material. Only works with [Awesomium](https://wiki.facepunch.com/gmod/Awesomium), [HTML](https://wiki.facepunch.com/gmod/HTML) and [DHTML](https://wiki.facepunch.com/gmod/DHTML) panels that have been fully loaded.
1360
1110
  * @realm client
1361
1111
  * @source https://wiki.facepunch.com/gmod/Panel:GetHTMLMaterial
1362
1112
  */
1363
1113
  GetHTMLMaterial(self: Panel): IMaterial;
1364
- }
1365
1114
 
1366
- interface Panel {
1367
1115
  /**
1368
1116
  * Returns the height of a single line of a [RichText](https://wiki.facepunch.com/gmod/RichText) panel.
1369
1117
  *
@@ -1371,9 +1119,7 @@ interface Panel {
1371
1119
  * @source https://wiki.facepunch.com/gmod/Panel:GetLineHeight
1372
1120
  */
1373
1121
  GetLineHeight(self: Panel): number;
1374
- }
1375
1122
 
1376
- interface Panel {
1377
1123
  /**
1378
1124
  * Returns the current maximum character count.
1379
1125
  *
@@ -1383,18 +1129,14 @@ interface Panel {
1383
1129
  * @source https://wiki.facepunch.com/gmod/Panel:GetMaximumCharCount
1384
1130
  */
1385
1131
  GetMaximumCharCount(self: Panel): number;
1386
- }
1387
1132
 
1388
- interface Panel {
1389
1133
  /**
1390
1134
  * Returns the internal name of the panel. Can be set via [Panel:SetName](https://wiki.facepunch.com/gmod/Panel:SetName).
1391
1135
  * @realm client and menu
1392
1136
  * @source https://wiki.facepunch.com/gmod/Panel:GetName
1393
1137
  */
1394
1138
  GetName(self: Panel): string;
1395
- }
1396
1139
 
1397
- interface Panel {
1398
1140
  /**
1399
1141
  * Returns the number of lines in a [RichText](https://wiki.facepunch.com/gmod/RichText) or a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry).
1400
1142
  *
@@ -1404,18 +1146,14 @@ interface Panel {
1404
1146
  * @source https://wiki.facepunch.com/gmod/Panel:GetNumLines
1405
1147
  */
1406
1148
  GetNumLines(self: Panel): number;
1407
- }
1408
1149
 
1409
- interface Panel {
1410
1150
  /**
1411
1151
  * Returns the parent of the panel, returns nil if there is no parent.
1412
1152
  * @realm client and menu
1413
1153
  * @source https://wiki.facepunch.com/gmod/Panel:GetParent
1414
1154
  */
1415
1155
  GetParent(self: Panel): Panel;
1416
- }
1417
1156
 
1418
- interface Panel {
1419
1157
  /**
1420
1158
  * Returns the position of the panel relative to its [Panel:GetParent](https://wiki.facepunch.com/gmod/Panel:GetParent).
1421
1159
  *
@@ -1429,9 +1167,7 @@ interface Panel {
1429
1167
  * @source https://wiki.facepunch.com/gmod/Panel:GetPos
1430
1168
  */
1431
1169
  GetPos(self: Panel): (number, number);
1432
- }
1433
1170
 
1434
- interface Panel {
1435
1171
  /**
1436
1172
  * Returns the vertical and horizontal start indexes of a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry)'s visible text. This is useful when the panel is scrolled.
1437
1173
  *
@@ -1439,18 +1175,14 @@ interface Panel {
1439
1175
  * @source https://wiki.facepunch.com/gmod/Panel:GetScrollStartIndexes
1440
1176
  */
1441
1177
  GetScrollStartIndexes(self: Panel): (number, number);
1442
- }
1443
1178
 
1444
- interface Panel {
1445
1179
  /**
1446
1180
  * Returns a table of all children of the panel object that are selected. This is recursive, and the returned table will include tables for any child objects that also have children. This means that not all first-level members in the returned table will be of type [Panel](https://wiki.facepunch.com/gmod/Panel).
1447
1181
  * @realm client and menu
1448
1182
  * @source https://wiki.facepunch.com/gmod/Panel:GetSelectedChildren
1449
1183
  */
1450
1184
  GetSelectedChildren(self: Panel): table;
1451
- }
1452
1185
 
1453
- interface Panel {
1454
1186
  /**
1455
1187
  * Returns the currently selected range of text.
1456
1188
  *
@@ -1460,9 +1192,7 @@ interface Panel {
1460
1192
  * @source https://wiki.facepunch.com/gmod/Panel:GetSelectedTextRange
1461
1193
  */
1462
1194
  GetSelectedTextRange(self: Panel): (number, number);
1463
- }
1464
1195
 
1465
- interface Panel {
1466
1196
  /**
1467
1197
  * Returns the selection canvas for this panel. This will be the first parent that has [Panel:SetSelectionCanvas](https://wiki.facepunch.com/gmod/Panel:SetSelectionCanvas) set to true (or `self` if this panel is the selection canvas)
1468
1198
  *
@@ -1471,9 +1201,7 @@ interface Panel {
1471
1201
  * @source https://wiki.facepunch.com/gmod/Panel:GetSelectionCanvas
1472
1202
  */
1473
1203
  GetSelectionCanvas(self: Panel): Panel;
1474
- }
1475
1204
 
1476
- interface Panel {
1477
1205
  /**
1478
1206
  * Returns the size of the panel.
1479
1207
  *
@@ -1483,27 +1211,21 @@ interface Panel {
1483
1211
  * @source https://wiki.facepunch.com/gmod/Panel:GetSize
1484
1212
  */
1485
1213
  GetSize(self: Panel): (number, number);
1486
- }
1487
1214
 
1488
- interface Panel {
1489
1215
  /**
1490
1216
  * Returns the table for the derma skin currently being used by this panel object.
1491
1217
  * @realm client and menu
1492
1218
  * @source https://wiki.facepunch.com/gmod/Panel:GetSkin
1493
1219
  */
1494
1220
  GetSkin(self: Panel): table;
1495
- }
1496
1221
 
1497
- interface Panel {
1498
1222
  /**
1499
1223
  * Returns the internal Lua table of the panel.
1500
1224
  * @realm client and menu
1501
1225
  * @source https://wiki.facepunch.com/gmod/Panel:GetTable
1502
1226
  */
1503
1227
  GetTable(self: Panel): table;
1504
- }
1505
1228
 
1506
- interface Panel {
1507
1229
  /**
1508
1230
  * Returns the height of the panel.
1509
1231
  *
@@ -1514,9 +1236,7 @@ interface Panel {
1514
1236
  * @source https://wiki.facepunch.com/gmod/Panel:GetTall
1515
1237
  */
1516
1238
  GetTall(self: Panel): number;
1517
- }
1518
1239
 
1519
- interface Panel {
1520
1240
  /**
1521
1241
  * Returns the panel's text (where applicable).
1522
1242
  *
@@ -1526,27 +1246,21 @@ interface Panel {
1526
1246
  * @source https://wiki.facepunch.com/gmod/Panel:GetText
1527
1247
  */
1528
1248
  GetText(self: Panel): string;
1529
- }
1530
1249
 
1531
- interface Panel {
1532
1250
  /**
1533
1251
  * Gets the left and top text margins of a text-based panel object, such as a [DButton](https://wiki.facepunch.com/gmod/DButton) or [DLabel](https://wiki.facepunch.com/gmod/DLabel). This is set with [Panel:SetTextInset](https://wiki.facepunch.com/gmod/Panel:SetTextInset).
1534
1252
  * @realm client and menu
1535
1253
  * @source https://wiki.facepunch.com/gmod/Panel:GetTextInset
1536
1254
  */
1537
1255
  GetTextInset(self: Panel): (number, number);
1538
- }
1539
1256
 
1540
- interface Panel {
1541
1257
  /**
1542
1258
  * Gets the size of the text within a [Label](https://wiki.facepunch.com/gmod/Label) derived panel.
1543
1259
  * @realm client and menu
1544
1260
  * @source https://wiki.facepunch.com/gmod/Panel:GetTextSize
1545
1261
  */
1546
1262
  GetTextSize(self: Panel): (number, number);
1547
- }
1548
1263
 
1549
- interface Panel {
1550
1264
  /**
1551
1265
  * Returns the tooltip text that was set with [PANEL:SetTooltip](https://wiki.facepunch.com/gmod/PANEL:SetTooltip).
1552
1266
  *
@@ -1554,9 +1268,7 @@ interface Panel {
1554
1268
  * @source https://wiki.facepunch.com/gmod/Panel:GetTooltip
1555
1269
  */
1556
1270
  GetTooltip(self: Panel): string;
1557
- }
1558
1271
 
1559
- interface Panel {
1560
1272
  /**
1561
1273
  * Returns the tooltip delay (time between hovering over the panel, and the tooltip showing up) that was set with [Panel:SetTooltipDelay](https://wiki.facepunch.com/gmod/Panel:SetTooltipDelay), or nothing if it was not set.
1562
1274
  *
@@ -1566,9 +1278,7 @@ interface Panel {
1566
1278
  * @source https://wiki.facepunch.com/gmod/Panel:GetTooltipDelay
1567
1279
  */
1568
1280
  GetTooltipDelay(self: Panel): number;
1569
- }
1570
1281
 
1571
- interface Panel {
1572
1282
  /**
1573
1283
  * Returns the tooltip panel that was set with [PANEL:SetTooltipPanel](https://wiki.facepunch.com/gmod/PANEL:SetTooltipPanel).
1574
1284
  *
@@ -1576,18 +1286,14 @@ interface Panel {
1576
1286
  * @source https://wiki.facepunch.com/gmod/Panel:GetTooltipPanel
1577
1287
  */
1578
1288
  GetTooltipPanel(self: Panel): Panel;
1579
- }
1580
1289
 
1581
- interface Panel {
1582
1290
  /**
1583
1291
  * Gets valid receiver slot of currently dragged panel.
1584
1292
  * @realm client and menu
1585
1293
  * @source https://wiki.facepunch.com/gmod/Panel:GetValidReceiverSlot
1586
1294
  */
1587
1295
  GetValidReceiverSlot(self: Panel): (Panel, table);
1588
- }
1589
1296
 
1590
- interface Panel {
1591
1297
  /**
1592
1298
  * Returns the value the panel holds.
1593
1299
  *
@@ -1600,9 +1306,7 @@ interface Panel {
1600
1306
  * @source https://wiki.facepunch.com/gmod/Panel:GetValue
1601
1307
  */
1602
1308
  GetValue(self: Panel): any;
1603
- }
1604
1309
 
1605
- interface Panel {
1606
1310
  /**
1607
1311
  * Returns the width of the panel.
1608
1312
  *
@@ -1611,9 +1315,7 @@ interface Panel {
1611
1315
  * @source https://wiki.facepunch.com/gmod/Panel:GetWide
1612
1316
  */
1613
1317
  GetWide(self: Panel): number;
1614
- }
1615
1318
 
1616
- interface Panel {
1617
1319
  /**
1618
1320
  * Returns the X position of the panel relative to its [Panel:GetParent](https://wiki.facepunch.com/gmod/Panel:GetParent).
1619
1321
  *
@@ -1623,9 +1325,7 @@ interface Panel {
1623
1325
  * @source https://wiki.facepunch.com/gmod/Panel:GetX
1624
1326
  */
1625
1327
  GetX(self: Panel): number;
1626
- }
1627
1328
 
1628
- interface Panel {
1629
1329
  /**
1630
1330
  * Returns the Y position of the panel relative to its [Panel:GetParent](https://wiki.facepunch.com/gmod/Panel:GetParent).
1631
1331
  *
@@ -1635,54 +1335,42 @@ interface Panel {
1635
1335
  * @source https://wiki.facepunch.com/gmod/Panel:GetY
1636
1336
  */
1637
1337
  GetY(self: Panel): number;
1638
- }
1639
1338
 
1640
- interface Panel {
1641
1339
  /**
1642
1340
  * Returns the Z position of the panel.
1643
1341
  * @realm client and menu
1644
1342
  * @source https://wiki.facepunch.com/gmod/Panel:GetZPos
1645
1343
  */
1646
1344
  GetZPos(self: Panel): number;
1647
- }
1648
1345
 
1649
- interface Panel {
1650
1346
  /**
1651
1347
  * Goes back one page in the HTML panel's history if available.
1652
1348
  * @realm client and menu
1653
1349
  * @source https://wiki.facepunch.com/gmod/Panel:GoBack
1654
1350
  */
1655
1351
  GoBack(self: Panel): void;
1656
- }
1657
1352
 
1658
- interface Panel {
1659
1353
  /**
1660
1354
  * Goes forward one page in the HTML panel's history if available.
1661
1355
  * @realm client and menu
1662
1356
  * @source https://wiki.facepunch.com/gmod/Panel:GoForward
1663
1357
  */
1664
1358
  GoForward(self: Panel): void;
1665
- }
1666
1359
 
1667
- interface Panel {
1668
1360
  /**
1669
1361
  * Goes to the page in the HTML panel's history at the specified relative offset.
1670
1362
  * @realm client and menu
1671
1363
  * @source https://wiki.facepunch.com/gmod/Panel:GoToHistoryOffset
1672
1364
  */
1673
1365
  GoToHistoryOffset(self: Panel, offset: number): void;
1674
- }
1675
1366
 
1676
- interface Panel {
1677
1367
  /**
1678
1368
  * Causes a [RichText](https://wiki.facepunch.com/gmod/RichText) element to scroll to the bottom of its text.
1679
1369
  * @realm client and menu
1680
1370
  * @source https://wiki.facepunch.com/gmod/Panel:GotoTextEnd
1681
1371
  */
1682
1372
  GotoTextEnd(self: Panel): void;
1683
- }
1684
1373
 
1685
- interface Panel {
1686
1374
  /**
1687
1375
  * Causes a [RichText](https://wiki.facepunch.com/gmod/RichText) element to scroll to the top of its text.
1688
1376
  *
@@ -1690,63 +1378,49 @@ interface Panel {
1690
1378
  * @source https://wiki.facepunch.com/gmod/Panel:GotoTextStart
1691
1379
  */
1692
1380
  GotoTextStart(self: Panel): void;
1693
- }
1694
1381
 
1695
- interface Panel {
1696
1382
  /**
1697
1383
  * Returns whenever the panel has child panels.
1698
1384
  * @realm client and menu
1699
1385
  * @source https://wiki.facepunch.com/gmod/Panel:HasChildren
1700
1386
  */
1701
1387
  HasChildren(self: Panel): boolean;
1702
- }
1703
1388
 
1704
- interface Panel {
1705
1389
  /**
1706
1390
  * Returns if the panel is focused.
1707
1391
  * @realm client and menu
1708
1392
  * @source https://wiki.facepunch.com/gmod/Panel:HasFocus
1709
1393
  */
1710
1394
  HasFocus(self: Panel): boolean;
1711
- }
1712
1395
 
1713
- interface Panel {
1714
1396
  /**
1715
1397
  * Returns if the panel or any of its children(sub children and so on) has the focus.
1716
1398
  * @realm client and menu
1717
1399
  * @source https://wiki.facepunch.com/gmod/Panel:HasHierarchicalFocus
1718
1400
  */
1719
1401
  HasHierarchicalFocus(self: Panel): boolean;
1720
- }
1721
1402
 
1722
- interface Panel {
1723
1403
  /**
1724
1404
  * Returns whether the panel is a descendent of the given panel.
1725
1405
  * @realm client and menu
1726
1406
  * @source https://wiki.facepunch.com/gmod/Panel:HasParent
1727
1407
  */
1728
1408
  HasParent(self: Panel, parentPanel: Panel): boolean;
1729
- }
1730
1409
 
1731
- interface Panel {
1732
1410
  /**
1733
1411
  * Makes a panel invisible.
1734
1412
  * @realm client and menu
1735
1413
  * @source https://wiki.facepunch.com/gmod/Panel:Hide
1736
1414
  */
1737
1415
  Hide(self: Panel): void;
1738
- }
1739
1416
 
1740
- interface Panel {
1741
1417
  /**
1742
1418
  * Marks the end of a clickable text segment in a [RichText](https://wiki.facepunch.com/gmod/RichText) element, started with [Panel:InsertClickableTextStart](https://wiki.facepunch.com/gmod/Panel:InsertClickableTextStart).
1743
1419
  * @realm client and menu
1744
1420
  * @source https://wiki.facepunch.com/gmod/Panel:InsertClickableTextEnd
1745
1421
  */
1746
1422
  InsertClickableTextEnd(self: Panel): void;
1747
- }
1748
1423
 
1749
- interface Panel {
1750
1424
  /**
1751
1425
  * Starts the insertion of clickable text for a [RichText](https://wiki.facepunch.com/gmod/RichText) element. Any text appended with [Panel:AppendText](https://wiki.facepunch.com/gmod/Panel:AppendText) between this call and [Panel:InsertClickableTextEnd](https://wiki.facepunch.com/gmod/Panel:InsertClickableTextEnd) will become clickable text.
1752
1426
  *
@@ -1759,18 +1433,14 @@ interface Panel {
1759
1433
  * @source https://wiki.facepunch.com/gmod/Panel:InsertClickableTextStart
1760
1434
  */
1761
1435
  InsertClickableTextStart(self: Panel, signalValue: string): void;
1762
- }
1763
1436
 
1764
- interface Panel {
1765
1437
  /**
1766
1438
  * Inserts a color change in a [RichText](https://wiki.facepunch.com/gmod/RichText) element, which affects the color of all text added with [Panel:AppendText](https://wiki.facepunch.com/gmod/Panel:AppendText) until another color change is applied.
1767
1439
  * @realm client and menu
1768
1440
  * @source https://wiki.facepunch.com/gmod/Panel:InsertColorChange
1769
1441
  */
1770
1442
  InsertColorChange(self: Panel, r: number, g: number, b: number, a: number): void;
1771
- }
1772
1443
 
1773
- interface Panel {
1774
1444
  /**
1775
1445
  * Begins a text fade for a [RichText](https://wiki.facepunch.com/gmod/RichText) element where the last appended text segment is fully faded out after a specific amount of time, at a specific speed.
1776
1446
  *
@@ -1780,18 +1450,14 @@ interface Panel {
1780
1450
  * @source https://wiki.facepunch.com/gmod/Panel:InsertFade
1781
1451
  */
1782
1452
  InsertFade(self: Panel, sustain: number, length: number): void;
1783
- }
1784
1453
 
1785
- interface Panel {
1786
1454
  /**
1787
1455
  * Invalidates the layout of this panel object and all its children. This will cause these objects to re-layout immediately, calling [PANEL:PerformLayout](https://wiki.facepunch.com/gmod/PANEL:PerformLayout). If you want to perform the layout in the next frame, you will have loop manually through all children, and call [Panel:InvalidateLayout](https://wiki.facepunch.com/gmod/Panel:InvalidateLayout) on each.
1788
1456
  * @realm client and menu
1789
1457
  * @source https://wiki.facepunch.com/gmod/Panel:InvalidateChildren
1790
1458
  */
1791
1459
  InvalidateChildren(self: Panel, recursive?: boolean): void;
1792
- }
1793
1460
 
1794
- interface Panel {
1795
1461
  /**
1796
1462
  * Causes the panel to re-layout in the next frame. During the layout process [PANEL:PerformLayout](https://wiki.facepunch.com/gmod/PANEL:PerformLayout) will be called on the target panel.
1797
1463
  *
@@ -1803,9 +1469,7 @@ interface Panel {
1803
1469
  * @source https://wiki.facepunch.com/gmod/Panel:InvalidateLayout
1804
1470
  */
1805
1471
  InvalidateLayout(self: Panel, layoutNow?: boolean): void;
1806
- }
1807
1472
 
1808
- interface Panel {
1809
1473
  /**
1810
1474
  * Calls [Panel:InvalidateLayout](https://wiki.facepunch.com/gmod/Panel:InvalidateLayout) on the panel's [parent](https://wiki.facepunch.com/gmod/Panel:GetParent). This function will silently fail if the panel has no parent.
1811
1475
  *
@@ -1817,36 +1481,28 @@ interface Panel {
1817
1481
  * @source https://wiki.facepunch.com/gmod/Panel:InvalidateParent
1818
1482
  */
1819
1483
  InvalidateParent(self: Panel, layoutNow?: boolean): void;
1820
- }
1821
1484
 
1822
- interface Panel {
1823
1485
  /**
1824
1486
  * Determines whether the mouse cursor is hovered over one of this panel object's children. This is a reverse process using [vgui.GetHoveredPanel](https://wiki.facepunch.com/gmod/vgui.GetHoveredPanel), and looks upward to find the parent.
1825
1487
  * @realm client and menu
1826
1488
  * @source https://wiki.facepunch.com/gmod/Panel:IsChildHovered
1827
1489
  */
1828
1490
  IsChildHovered(self: Panel, immediate?: boolean): boolean;
1829
- }
1830
1491
 
1831
- interface Panel {
1832
1492
  /**
1833
1493
  * Returns whether this panel is draggable ( if user is able to drag it ) or not.
1834
1494
  * @realm client and menu
1835
1495
  * @source https://wiki.facepunch.com/gmod/Panel:IsDraggable
1836
1496
  */
1837
1497
  IsDraggable(self: Panel): boolean;
1838
- }
1839
1498
 
1840
- interface Panel {
1841
1499
  /**
1842
1500
  * Returns whether this panel is currently being dragged or not.
1843
1501
  * @realm client and menu
1844
1502
  * @source https://wiki.facepunch.com/gmod/Panel:IsDragging
1845
1503
  */
1846
1504
  IsDragging(self: Panel): boolean;
1847
- }
1848
1505
 
1849
- interface Panel {
1850
1506
  /**
1851
1507
  * Returns whether the the panel is enabled or disabled.
1852
1508
  *
@@ -1856,9 +1512,7 @@ interface Panel {
1856
1512
  * @source https://wiki.facepunch.com/gmod/Panel:IsEnabled
1857
1513
  */
1858
1514
  IsEnabled(self: Panel): boolean;
1859
- }
1860
1515
 
1861
- interface Panel {
1862
1516
  /**
1863
1517
  * Returns whether the mouse cursor is hovering over this panel or not
1864
1518
  *
@@ -1870,18 +1524,14 @@ interface Panel {
1870
1524
  * @source https://wiki.facepunch.com/gmod/Panel:IsHovered
1871
1525
  */
1872
1526
  IsHovered(self: Panel): boolean;
1873
- }
1874
1527
 
1875
- interface Panel {
1876
1528
  /**
1877
1529
  * Returns true if the panel can receive keyboard input.
1878
1530
  * @realm client and menu
1879
1531
  * @source https://wiki.facepunch.com/gmod/Panel:IsKeyboardInputEnabled
1880
1532
  */
1881
1533
  IsKeyboardInputEnabled(self: Panel): boolean;
1882
- }
1883
1534
 
1884
- interface Panel {
1885
1535
  /**
1886
1536
  * Determines whether or not a [HTML](https://wiki.facepunch.com/gmod/HTML) or [DHTML](https://wiki.facepunch.com/gmod/DHTML) element is currently loading a page.
1887
1537
  *
@@ -1896,126 +1546,98 @@ interface Panel {
1896
1546
  * @source https://wiki.facepunch.com/gmod/Panel:IsLoading
1897
1547
  */
1898
1548
  IsLoading(self: Panel): boolean;
1899
- }
1900
1549
 
1901
- interface Panel {
1902
1550
  /**
1903
1551
  * Returns if the panel is going to be deleted in the next frame.
1904
1552
  * @realm client and menu
1905
1553
  * @source https://wiki.facepunch.com/gmod/Panel:IsMarkedForDeletion
1906
1554
  */
1907
1555
  IsMarkedForDeletion(self: Panel): boolean;
1908
- }
1909
1556
 
1910
- interface Panel {
1911
1557
  /**
1912
1558
  * Returns whether the panel was made modal or not. See [Panel:DoModal](https://wiki.facepunch.com/gmod/Panel:DoModal).
1913
1559
  * @realm client and menu
1914
1560
  * @source https://wiki.facepunch.com/gmod/Panel:IsModal
1915
1561
  */
1916
1562
  IsModal(self: Panel): boolean;
1917
- }
1918
1563
 
1919
- interface Panel {
1920
1564
  /**
1921
1565
  * Returns true if the panel can receive mouse input.
1922
1566
  * @realm client and menu
1923
1567
  * @source https://wiki.facepunch.com/gmod/Panel:IsMouseInputEnabled
1924
1568
  */
1925
1569
  IsMouseInputEnabled(self: Panel): boolean;
1926
- }
1927
1570
 
1928
- interface Panel {
1929
1571
  /**
1930
1572
  * Determines whether or not a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) panel is in multi-line mode. This is set with [Panel:SetMultiline](https://wiki.facepunch.com/gmod/Panel:SetMultiline).
1931
1573
  * @realm client and menu
1932
1574
  * @source https://wiki.facepunch.com/gmod/Panel:IsMultiline
1933
1575
  */
1934
1576
  IsMultiline(self: Panel): boolean;
1935
- }
1936
1577
 
1937
- interface Panel {
1938
1578
  /**
1939
1579
  * Returns whether the panel contains the given panel, recursively.
1940
1580
  * @realm client and menu
1941
1581
  * @source https://wiki.facepunch.com/gmod/Panel:IsOurChild
1942
1582
  */
1943
1583
  IsOurChild(self: Panel, childPanel: Panel): boolean;
1944
- }
1945
1584
 
1946
- interface Panel {
1947
1585
  /**
1948
1586
  * Returns if the panel was made popup or not. See [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup)
1949
1587
  * @realm client and menu
1950
1588
  * @source https://wiki.facepunch.com/gmod/Panel:IsPopup
1951
1589
  */
1952
1590
  IsPopup(self: Panel): boolean;
1953
- }
1954
1591
 
1955
- interface Panel {
1956
1592
  /**
1957
1593
  * Determines if the panel object is selectable (like icons in the Spawn Menu, holding Shift). This is set with [Panel:SetSelectable](https://wiki.facepunch.com/gmod/Panel:SetSelectable).
1958
1594
  * @realm client and menu
1959
1595
  * @source https://wiki.facepunch.com/gmod/Panel:IsSelectable
1960
1596
  */
1961
1597
  IsSelectable(self: Panel): boolean;
1962
- }
1963
1598
 
1964
- interface Panel {
1965
1599
  /**
1966
1600
  * Returns if the panel object is selected (like icons in the Spawn Menu, holding Shift). This can be set in Lua using [Panel:SetSelected](https://wiki.facepunch.com/gmod/Panel:SetSelected).
1967
1601
  * @realm client and menu
1968
1602
  * @source https://wiki.facepunch.com/gmod/Panel:IsSelected
1969
1603
  */
1970
1604
  IsSelected(self: Panel): boolean;
1971
- }
1972
1605
 
1973
- interface Panel {
1974
1606
  /**
1975
1607
  * Determines if the panel object is a selection canvas or not. This is set with [Panel:SetSelectionCanvas](https://wiki.facepunch.com/gmod/Panel:SetSelectionCanvas).
1976
1608
  * @realm client and menu
1977
1609
  * @source https://wiki.facepunch.com/gmod/Panel:IsSelectionCanvas
1978
1610
  */
1979
1611
  IsSelectionCanvas(self: Panel): any;
1980
- }
1981
1612
 
1982
- interface Panel {
1983
1613
  /**
1984
1614
  * Returns if the panel is valid and not marked for deletion.
1985
1615
  * @realm client and menu
1986
1616
  * @source https://wiki.facepunch.com/gmod/Panel:IsValid
1987
1617
  */
1988
1618
  IsValid(self: Panel): boolean;
1989
- }
1990
1619
 
1991
- interface Panel {
1992
1620
  /**
1993
1621
  * Returns if the panel is visible. This will **NOT** take into account visibility of the parent.
1994
1622
  * @realm client and menu
1995
1623
  * @source https://wiki.facepunch.com/gmod/Panel:IsVisible
1996
1624
  */
1997
1625
  IsVisible(self: Panel): boolean;
1998
- }
1999
1626
 
2000
- interface Panel {
2001
1627
  /**
2002
1628
  * Returns if a panel allows world clicking set by [Panel:SetWorldClicker](https://wiki.facepunch.com/gmod/Panel:SetWorldClicker).
2003
1629
  * @realm client and menu
2004
1630
  * @source https://wiki.facepunch.com/gmod/Panel:IsWorldClicker
2005
1631
  */
2006
1632
  IsWorldClicker(self: Panel): boolean;
2007
- }
2008
1633
 
2009
- interface Panel {
2010
1634
  /**
2011
1635
  * Remove the focus from the panel.
2012
1636
  * @realm client and menu
2013
1637
  * @source https://wiki.facepunch.com/gmod/Panel:KillFocus
2014
1638
  */
2015
1639
  KillFocus(self: Panel): void;
2016
- }
2017
1640
 
2018
- interface Panel {
2019
1641
  /**
2020
1642
  * Redefines the panel object's [Panel:SetPos](https://wiki.facepunch.com/gmod/Panel:SetPos) method to operate using frame-by-frame linear interpolation ([Global.Lerp](https://wiki.facepunch.com/gmod/Global.Lerp)). When the panel's position is changed, it will move to the target position at the speed defined. You can undo this with [Panel:DisableLerp](https://wiki.facepunch.com/gmod/Panel:DisableLerp).
2021
1643
  *
@@ -2025,9 +1647,7 @@ interface Panel {
2025
1647
  * @source https://wiki.facepunch.com/gmod/Panel:LerpPositions
2026
1648
  */
2027
1649
  LerpPositions(self: Panel, speed: number, easeOut: boolean): void;
2028
- }
2029
1650
 
2030
- interface Panel {
2031
1651
  /**
2032
1652
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2033
1653
  *
@@ -2038,9 +1658,7 @@ interface Panel {
2038
1658
  * @deprecated No longer does anything.
2039
1659
  */
2040
1660
  LoadControlsFromFile(self: Panel, path: string): void;
2041
- }
2042
1661
 
2043
- interface Panel {
2044
1662
  /**
2045
1663
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2046
1664
  *
@@ -2051,9 +1669,7 @@ interface Panel {
2051
1669
  * @deprecated No longer does anything.
2052
1670
  */
2053
1671
  LoadControlsFromString(self: Panel, data: string): void;
2054
- }
2055
1672
 
2056
- interface Panel {
2057
1673
  /**
2058
1674
  * Loads a .gwen file (created by GWEN Designer) and calls [Panel:LoadGWENString](https://wiki.facepunch.com/gmod/Panel:LoadGWENString) with the contents of the loaded file.
2059
1675
  *
@@ -2063,18 +1679,14 @@ interface Panel {
2063
1679
  * @source https://wiki.facepunch.com/gmod/Panel:LoadGWENFile
2064
1680
  */
2065
1681
  LoadGWENFile(self: Panel, filename: string, path?: string): void;
2066
- }
2067
1682
 
2068
- interface Panel {
2069
1683
  /**
2070
1684
  * Loads controls for the panel from a JSON string.
2071
1685
  * @realm client and menu
2072
1686
  * @source https://wiki.facepunch.com/gmod/Panel:LoadGWENString
2073
1687
  */
2074
1688
  LoadGWENString(self: Panel, str: string): void;
2075
- }
2076
1689
 
2077
- interface Panel {
2078
1690
  /**
2079
1691
  * Sets a new image to be loaded by a [TGAImage](https://wiki.facepunch.com/gmod/TGAImage).
2080
1692
  * @realm client and menu
@@ -2082,18 +1694,14 @@ interface Panel {
2082
1694
  * @deprecated DImage should be used instead (with `.png` or `.jpg` images). `TGAImage` panel has no advantages.
2083
1695
  */
2084
1696
  LoadTGAImage(self: Panel, imageName: string, strPath: string): void;
2085
- }
2086
1697
 
2087
- interface Panel {
2088
1698
  /**
2089
1699
  * Returns the cursor position local to the position of the panel (usually the upper-left corner).
2090
1700
  * @realm client and menu
2091
1701
  * @source https://wiki.facepunch.com/gmod/Panel:LocalCursorPos
2092
1702
  */
2093
1703
  LocalCursorPos(self: Panel): (number, number);
2094
- }
2095
1704
 
2096
- interface Panel {
2097
1705
  /**
2098
1706
  * Takes X and Y coordinates relative to the panel and returns their corresponding positions relative to the screen.
2099
1707
  *
@@ -2110,9 +1718,7 @@ interface Panel {
2110
1718
  * @source https://wiki.facepunch.com/gmod/Panel:LocalToScreen
2111
1719
  */
2112
1720
  LocalToScreen(self: Panel, posX: number, posY: number): (number, number);
2113
- }
2114
1721
 
2115
- interface Panel {
2116
1722
  /**
2117
1723
  * Focuses the panel and enables it to receive input.
2118
1724
  *
@@ -2127,63 +1733,49 @@ interface Panel {
2127
1733
  * @source https://wiki.facepunch.com/gmod/Panel:MakePopup
2128
1734
  */
2129
1735
  MakePopup(self: Panel): void;
2130
- }
2131
1736
 
2132
- interface Panel {
2133
1737
  /**
2134
1738
  * Allows the panel to receive mouse input even if the mouse cursor is outside the bounds of the panel.
2135
1739
  * @realm client and menu
2136
1740
  * @source https://wiki.facepunch.com/gmod/Panel:MouseCapture
2137
1741
  */
2138
1742
  MouseCapture(self: Panel, doCapture: boolean): void;
2139
- }
2140
1743
 
2141
- interface Panel {
2142
1744
  /**
2143
1745
  * Places the panel above the passed panel with the specified offset.
2144
1746
  * @realm client and menu
2145
1747
  * @source https://wiki.facepunch.com/gmod/Panel:MoveAbove
2146
1748
  */
2147
1749
  MoveAbove(self: Panel, panel: Panel, offset?: number): void;
2148
- }
2149
1750
 
2150
- interface Panel {
2151
1751
  /**
2152
1752
  * Places the panel below the passed panel with the specified offset.
2153
1753
  * @realm client and menu
2154
1754
  * @source https://wiki.facepunch.com/gmod/Panel:MoveBelow
2155
1755
  */
2156
1756
  MoveBelow(self: Panel, panel: Panel, offset?: number): void;
2157
- }
2158
1757
 
2159
- interface Panel {
2160
1758
  /**
2161
1759
  * Moves the panel by the specified coordinates using animation.
2162
1760
  * @realm client and menu
2163
1761
  * @source https://wiki.facepunch.com/gmod/Panel:MoveBy
2164
1762
  */
2165
1763
  MoveBy(self: Panel, moveX: number, moveY: number, time: number, delay?: number, ease?: number, callback?: (animData: table, targetPanel: Panel) => void): void;
2166
- }
2167
1764
 
2168
- interface Panel {
2169
1765
  /**
2170
1766
  * Places the panel left to the passed panel with the specified offset.
2171
1767
  * @realm client and menu
2172
1768
  * @source https://wiki.facepunch.com/gmod/Panel:MoveLeftOf
2173
1769
  */
2174
1770
  MoveLeftOf(self: Panel, panel: Panel, offset?: number): void;
2175
- }
2176
1771
 
2177
- interface Panel {
2178
1772
  /**
2179
1773
  * Places the panel right to the passed panel with the specified offset.
2180
1774
  * @realm client and menu
2181
1775
  * @source https://wiki.facepunch.com/gmod/Panel:MoveRightOf
2182
1776
  */
2183
1777
  MoveRightOf(self: Panel, panel: Panel, offset?: number): void;
2184
- }
2185
1778
 
2186
- interface Panel {
2187
1779
  /**
2188
1780
  * Moves the panel to the specified position using animation.
2189
1781
  * **NOTE**: Setting the ease argument to 0 will result in the animation happening instantly, this applies to all MoveTo/SizeTo functions
@@ -2193,45 +1785,35 @@ interface Panel {
2193
1785
  * @source https://wiki.facepunch.com/gmod/Panel:MoveTo
2194
1786
  */
2195
1787
  MoveTo(self: Panel, posX: number, posY: number, time: number, delay?: number, ease?: number, callback?: (animData: table, targetPanel: Panel) => void): void;
2196
- }
2197
1788
 
2198
- interface Panel {
2199
1789
  /**
2200
1790
  * Moves this panel object in front of the specified sibling (child of the same parent) in the render order, and shuffles up the Z-positions of siblings now behind.
2201
1791
  * @realm client and menu
2202
1792
  * @source https://wiki.facepunch.com/gmod/Panel:MoveToAfter
2203
1793
  */
2204
1794
  MoveToAfter(self: Panel, siblingPanel: Panel): boolean;
2205
- }
2206
1795
 
2207
- interface Panel {
2208
1796
  /**
2209
1797
  * Moves the panel object behind all other panels on screen. If the panel has been made a pop-up with [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup), it will still draw in front of any panels that haven't.
2210
1798
  * @realm client and menu
2211
1799
  * @source https://wiki.facepunch.com/gmod/Panel:MoveToBack
2212
1800
  */
2213
1801
  MoveToBack(self: Panel): void;
2214
- }
2215
1802
 
2216
- interface Panel {
2217
1803
  /**
2218
1804
  * Moves this panel object behind the specified sibling (child of the same parent) in the render order, and shuffles up the [Panel:SetZPos](https://wiki.facepunch.com/gmod/Panel:SetZPos) of siblings now in front.
2219
1805
  * @realm client and menu
2220
1806
  * @source https://wiki.facepunch.com/gmod/Panel:MoveToBefore
2221
1807
  */
2222
1808
  MoveToBefore(self: Panel, siblingPanel: Panel): boolean;
2223
- }
2224
1809
 
2225
- interface Panel {
2226
1810
  /**
2227
1811
  * Moves the panel in front of all other panels on screen. Unless the panel has been made a pop-up using [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup), it will still draw behind any that have.
2228
1812
  * @realm client and menu
2229
1813
  * @source https://wiki.facepunch.com/gmod/Panel:MoveToFront
2230
1814
  */
2231
1815
  MoveToFront(self: Panel): void;
2232
- }
2233
1816
 
2234
- interface Panel {
2235
1817
  /**
2236
1818
  * Creates a new animation for the panel object.
2237
1819
  *
@@ -2249,9 +1831,7 @@ interface Panel {
2249
1831
  * @source https://wiki.facepunch.com/gmod/Panel:NewAnimation
2250
1832
  */
2251
1833
  NewAnimation(self: Panel, length: number, delay?: number, ease?: number, callback?: (animData: table, targetPanel: Panel) => void): table;
2252
- }
2253
1834
 
2254
- interface Panel {
2255
1835
  /**
2256
1836
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2257
1837
  *
@@ -2259,9 +1839,7 @@ interface Panel {
2259
1839
  * @source https://wiki.facepunch.com/gmod/Panel:NewObject
2260
1840
  */
2261
1841
  NewObject(self: Panel, objectName: string): void;
2262
- }
2263
1842
 
2264
- interface Panel {
2265
1843
  /**
2266
1844
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2267
1845
  *
@@ -2269,9 +1847,7 @@ interface Panel {
2269
1847
  * @source https://wiki.facepunch.com/gmod/Panel:NewObjectCallback
2270
1848
  */
2271
1849
  NewObjectCallback(self: Panel, objectName: string, callbackName: string): void;
2272
- }
2273
1850
 
2274
- interface Panel {
2275
1851
  /**
2276
1852
  * Sets whether this panel's drawings should be clipped within the parent panel's bounds.
2277
1853
  *
@@ -2286,18 +1862,14 @@ interface Panel {
2286
1862
  * @source https://wiki.facepunch.com/gmod/Panel:NoClipping
2287
1863
  */
2288
1864
  NoClipping(self: Panel, disableClipping: boolean): void;
2289
- }
2290
1865
 
2291
- interface Panel {
2292
1866
  /**
2293
1867
  * Returns the number of children of the panel object that are selected. This is equivalent to calling [Panel:IsSelected](https://wiki.facepunch.com/gmod/Panel:IsSelected) on all child objects and counting the number of returns that are `true`.
2294
1868
  * @realm client and menu
2295
1869
  * @source https://wiki.facepunch.com/gmod/Panel:NumSelectedChildren
2296
1870
  */
2297
1871
  NumSelectedChildren(self: Panel): number;
2298
- }
2299
1872
 
2300
- interface Panel {
2301
1873
  /**
2302
1874
  * Instructs a HTML control to download and parse a HTML script using the passed URL.
2303
1875
  *
@@ -2306,9 +1878,7 @@ interface Panel {
2306
1878
  * @source https://wiki.facepunch.com/gmod/Panel:OpenURL
2307
1879
  */
2308
1880
  OpenURL(self: Panel, URL: string): void;
2309
- }
2310
1881
 
2311
- interface Panel {
2312
1882
  /**
2313
1883
  * Paints a ghost copy of the panel at the given position.
2314
1884
  * **WARNING**: This function sets Z pos of panel's children ([PANEL:SetZPos](https://wiki.facepunch.com/gmod/PANEL:SetZPos)). It also briefly unparents and reparents the panel.
@@ -2318,18 +1888,14 @@ interface Panel {
2318
1888
  * @source https://wiki.facepunch.com/gmod/Panel:PaintAt
2319
1889
  */
2320
1890
  PaintAt(self: Panel, posX: number, posY: number): void;
2321
- }
2322
1891
 
2323
- interface Panel {
2324
1892
  /**
2325
1893
  * Paints the panel at its current position. To use this you must call [Panel:SetPaintedManually](https://wiki.facepunch.com/gmod/Panel:SetPaintedManually)(true).
2326
1894
  * @realm client and menu
2327
1895
  * @source https://wiki.facepunch.com/gmod/Panel:PaintManual
2328
1896
  */
2329
1897
  PaintManual(self: Panel, unclamp?: boolean): void;
2330
- }
2331
1898
 
2332
- interface Panel {
2333
1899
  /**
2334
1900
  * Parents the panel to the HUD.
2335
1901
  * Makes it invisible on the escape-menu and disables controls.
@@ -2338,9 +1904,7 @@ interface Panel {
2338
1904
  * @source https://wiki.facepunch.com/gmod/Panel:ParentToHUD
2339
1905
  */
2340
1906
  ParentToHUD(self: Panel): void;
2341
- }
2342
1907
 
2343
- interface Panel {
2344
1908
  /**
2345
1909
  * Only works for TextEntries.
2346
1910
  *
@@ -2354,18 +1918,14 @@ interface Panel {
2354
1918
  * @deprecated Due to privacy concerns, this function has been disabled
2355
1919
  */
2356
1920
  Paste(self: Panel): void;
2357
- }
2358
1921
 
2359
- interface Panel {
2360
1922
  /**
2361
1923
  * Sets the width and position of a [DLabel](https://wiki.facepunch.com/gmod/DLabel) and places the passed panel object directly to the right of it. Returns the `y` value of the bottom of the tallest object. The panel on which this method is run is not relevant; only the passed objects are affected.
2362
1924
  * @realm client and menu
2363
1925
  * @source https://wiki.facepunch.com/gmod/Panel:PositionLabel
2364
1926
  */
2365
1927
  PositionLabel(self: Panel, lblWidth: number, x: number, y: number, lbl: Panel, panelObj: Panel): number;
2366
- }
2367
1928
 
2368
- interface Panel {
2369
1929
  /**
2370
1930
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2371
1931
  *
@@ -2375,27 +1935,21 @@ interface Panel {
2375
1935
  * @source https://wiki.facepunch.com/gmod/Panel:Prepare
2376
1936
  */
2377
1937
  Prepare(self: Panel): void;
2378
- }
2379
1938
 
2380
- interface Panel {
2381
1939
  /**
2382
1940
  * Enables the queue for panel animations. If enabled, the next new animation will begin after all current animations have ended. This must be called before [Panel:NewAnimation](https://wiki.facepunch.com/gmod/Panel:NewAnimation) to work, and only applies to the next new animation. If you want to queue many, you must call this before each.
2383
1941
  * @realm client and menu
2384
1942
  * @source https://wiki.facepunch.com/gmod/Panel:Queue
2385
1943
  */
2386
1944
  Queue(self: Panel): void;
2387
- }
2388
1945
 
2389
- interface Panel {
2390
1946
  /**
2391
1947
  * Causes a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) to rebuild its model image.
2392
1948
  * @realm client
2393
1949
  * @source https://wiki.facepunch.com/gmod/Panel:RebuildSpawnIcon
2394
1950
  */
2395
1951
  RebuildSpawnIcon(self: Panel): void;
2396
- }
2397
1952
 
2398
- interface Panel {
2399
1953
  /**
2400
1954
  * Re-renders a spawn icon with customized cam data.
2401
1955
  *
@@ -2408,27 +1962,21 @@ interface Panel {
2408
1962
  * @source https://wiki.facepunch.com/gmod/Panel:RebuildSpawnIconEx
2409
1963
  */
2410
1964
  RebuildSpawnIconEx(self: Panel, data: table): void;
2411
- }
2412
1965
 
2413
- interface Panel {
2414
1966
  /**
2415
1967
  * Allows the panel to receive drag and drop events. Can be called multiple times with different names to receive multiple different draggable panel events.
2416
1968
  * @realm client and menu
2417
1969
  * @source https://wiki.facepunch.com/gmod/Panel:Receiver
2418
1970
  */
2419
1971
  Receiver(self: Panel, name: string, func: (pnl: Panel, tbl: table, dropped: boolean, menuIndex: number, x: number, y: number) => void, menu?: table): void;
2420
- }
2421
1972
 
2422
- interface Panel {
2423
1973
  /**
2424
1974
  * Refreshes the HTML panel's current page.
2425
1975
  * @realm client and menu
2426
1976
  * @source https://wiki.facepunch.com/gmod/Panel:Refresh
2427
1977
  */
2428
1978
  Refresh(self: Panel, ignoreCache?: boolean): void;
2429
- }
2430
1979
 
2431
- interface Panel {
2432
1980
  /**
2433
1981
  * Marks a panel for deletion so it will be deleted on the next frame.
2434
1982
  *
@@ -2442,27 +1990,21 @@ interface Panel {
2442
1990
  * @source https://wiki.facepunch.com/gmod/Panel:Remove
2443
1991
  */
2444
1992
  Remove(self: Panel): void;
2445
- }
2446
1993
 
2447
- interface Panel {
2448
1994
  /**
2449
1995
  * Attempts to obtain focus for this panel.
2450
1996
  * @realm client and menu
2451
1997
  * @source https://wiki.facepunch.com/gmod/Panel:RequestFocus
2452
1998
  */
2453
1999
  RequestFocus(self: Panel): void;
2454
- }
2455
2000
 
2456
- interface Panel {
2457
2001
  /**
2458
2002
  * Resets all text fades in a [RichText](https://wiki.facepunch.com/gmod/RichText) element made with [Panel:InsertFade](https://wiki.facepunch.com/gmod/Panel:InsertFade).
2459
2003
  * @realm client and menu
2460
2004
  * @source https://wiki.facepunch.com/gmod/Panel:ResetAllFades
2461
2005
  */
2462
2006
  ResetAllFades(self: Panel, hold: boolean, expiredOnly: boolean, newSustain: number): void;
2463
- }
2464
2007
 
2465
- interface Panel {
2466
2008
  /**
2467
2009
  * Executes a string as JavaScript code on a web document panel.
2468
2010
  *
@@ -2479,9 +2021,7 @@ interface Panel {
2479
2021
  * @source https://wiki.facepunch.com/gmod/Panel:RunJavascript
2480
2022
  */
2481
2023
  RunJavascript(self: Panel, js: string): void;
2482
- }
2483
2024
 
2484
- interface Panel {
2485
2025
  /**
2486
2026
  * Saves the current state (caret position and the text inside) of a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) as an undo state.
2487
2027
  *
@@ -2491,9 +2031,7 @@ interface Panel {
2491
2031
  * @source https://wiki.facepunch.com/gmod/Panel:SaveUndoState
2492
2032
  */
2493
2033
  SaveUndoState(self: Panel): void;
2494
- }
2495
2034
 
2496
- interface Panel {
2497
2035
  /**
2498
2036
  * Translates global screen coordinate to coordinates relative to the panel.
2499
2037
  *
@@ -2506,9 +2044,7 @@ interface Panel {
2506
2044
  * @source https://wiki.facepunch.com/gmod/Panel:ScreenToLocal
2507
2045
  */
2508
2046
  ScreenToLocal(self: Panel, screenX: number, screenY: number): (number, number);
2509
- }
2510
2047
 
2511
- interface Panel {
2512
2048
  /**
2513
2049
  * Selects all items within a panel or object. For text-based objects, selects all text.
2514
2050
  *
@@ -2519,18 +2055,14 @@ interface Panel {
2519
2055
  * @source https://wiki.facepunch.com/gmod/Panel:SelectAll
2520
2056
  */
2521
2057
  SelectAll(self: Panel): void;
2522
- }
2523
2058
 
2524
- interface Panel {
2525
2059
  /**
2526
2060
  * If called on a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry), clicking the text entry for the first time will automatically select all of the text ready to be copied by the user.
2527
2061
  * @realm client and menu
2528
2062
  * @source https://wiki.facepunch.com/gmod/Panel:SelectAllOnFocus
2529
2063
  */
2530
2064
  SelectAllOnFocus(self: Panel): void;
2531
- }
2532
2065
 
2533
- interface Panel {
2534
2066
  /**
2535
2067
  * Selects all the text in a panel object. Will not select non-text items; for this, use [Panel:SelectAll](https://wiki.facepunch.com/gmod/Panel:SelectAll).
2536
2068
  * @realm client and menu
@@ -2538,9 +2070,7 @@ interface Panel {
2538
2070
  * @deprecated Duplicate of Panel:SelectAll.
2539
2071
  */
2540
2072
  SelectAllText(self: Panel, resetCursorPos: boolean): void;
2541
- }
2542
2073
 
2543
- interface Panel {
2544
2074
  /**
2545
2075
  * Deselects all items in a panel object. For text-based objects, this will deselect all text.
2546
2076
  *
@@ -2551,18 +2081,14 @@ interface Panel {
2551
2081
  * @source https://wiki.facepunch.com/gmod/Panel:SelectNone
2552
2082
  */
2553
2083
  SelectNone(self: Panel): void;
2554
- }
2555
2084
 
2556
- interface Panel {
2557
2085
  /**
2558
2086
  * Sets the achievement to be displayed by [AchievementIcon](https://wiki.facepunch.com/gmod/AchievementIcon).
2559
2087
  * @realm client and menu
2560
2088
  * @source https://wiki.facepunch.com/gmod/Panel:SetAchievement
2561
2089
  */
2562
2090
  SetAchievement(self: Panel, id: number): void;
2563
- }
2564
2091
 
2565
- interface Panel {
2566
2092
  /**
2567
2093
  * Configures a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) to allow user to type characters that are not included in the US-ASCII (7-bit ASCII) character set.
2568
2094
  *
@@ -2572,36 +2098,28 @@ interface Panel {
2572
2098
  * @source https://wiki.facepunch.com/gmod/Panel:SetAllowNonAsciiCharacters
2573
2099
  */
2574
2100
  SetAllowNonAsciiCharacters(self: Panel, allowed: boolean): void;
2575
- }
2576
2101
 
2577
- interface Panel {
2578
2102
  /**
2579
2103
  * Sets the alpha multiplier for the panel
2580
2104
  * @realm client and menu
2581
2105
  * @source https://wiki.facepunch.com/gmod/Panel:SetAlpha
2582
2106
  */
2583
2107
  SetAlpha(self: Panel, alpha: number): void;
2584
- }
2585
2108
 
2586
- interface Panel {
2587
2109
  /**
2588
2110
  * Enables or disables animations for the panel object by overriding the [PANEL:AnimationThink](https://wiki.facepunch.com/gmod/PANEL:AnimationThink) hook to nil and back.
2589
2111
  * @realm client and menu
2590
2112
  * @source https://wiki.facepunch.com/gmod/Panel:SetAnimationEnabled
2591
2113
  */
2592
2114
  SetAnimationEnabled(self: Panel, enable: boolean): void;
2593
- }
2594
2115
 
2595
- interface Panel {
2596
2116
  /**
2597
2117
  * Sets whenever the panel should be removed if the parent was removed.
2598
2118
  * @realm client and menu
2599
2119
  * @source https://wiki.facepunch.com/gmod/Panel:SetAutoDelete
2600
2120
  */
2601
2121
  SetAutoDelete(self: Panel, autoDelete: boolean): void;
2602
- }
2603
2122
 
2604
- interface Panel {
2605
2123
  /**
2606
2124
  * Sets the background color of a panel such as a [RichText](https://wiki.facepunch.com/gmod/RichText), [Label](https://wiki.facepunch.com/gmod/Label), [DColorCube](https://wiki.facepunch.com/gmod/DColorCube) or the base [Panel](https://wiki.facepunch.com/gmod/Panel).
2607
2125
  *
@@ -2618,13 +2136,9 @@ interface Panel {
2618
2136
  * @source https://wiki.facepunch.com/gmod/Panel:SetBGColor
2619
2137
  */
2620
2138
  SetBGColor(self: Panel, r: number, g: number, b: number, a: number): void;
2621
- }
2622
2139
 
2623
- interface Panel {
2624
2140
  SetBGColor(self: Panel, color: Color): void;
2625
- }
2626
2141
 
2627
- interface Panel {
2628
2142
  /**
2629
2143
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2630
2144
  * Sets the background color of the panel.
@@ -2632,18 +2146,14 @@ interface Panel {
2632
2146
  * @source https://wiki.facepunch.com/gmod/Panel:SetBGColorEx
2633
2147
  */
2634
2148
  SetBGColorEx(self: Panel, r: number, g: number, b: number, a: number): void;
2635
- }
2636
2149
 
2637
- interface Panel {
2638
2150
  /**
2639
2151
  * Sets the position of the caret (or text cursor) in a text-based panel object.
2640
2152
  * @realm client and menu
2641
2153
  * @source https://wiki.facepunch.com/gmod/Panel:SetCaretPos
2642
2154
  */
2643
2155
  SetCaretPos(self: Panel, offset: number): void;
2644
- }
2645
2156
 
2646
- interface Panel {
2647
2157
  /**
2648
2158
  * **WARNING**: This function does not exist on all panels
2649
2159
  *
@@ -2660,9 +2170,7 @@ interface Panel {
2660
2170
  * @source https://wiki.facepunch.com/gmod/Panel:SetConVar
2661
2171
  */
2662
2172
  SetConVar(self: Panel, convar: string): void;
2663
- }
2664
2173
 
2665
- interface Panel {
2666
2174
  /**
2667
2175
  * Sets the alignment of the contents.
2668
2176
  *
@@ -2675,9 +2183,7 @@ interface Panel {
2675
2183
  * @source https://wiki.facepunch.com/gmod/Panel:SetContentAlignment
2676
2184
  */
2677
2185
  SetContentAlignment(self: Panel, alignment: number): void;
2678
- }
2679
2186
 
2680
- interface Panel {
2681
2187
  /**
2682
2188
  * Stores a string in the named cookie using [Panel:GetCookieName](https://wiki.facepunch.com/gmod/Panel:GetCookieName) as prefix.
2683
2189
  *
@@ -2695,18 +2201,14 @@ interface Panel {
2695
2201
  * @source https://wiki.facepunch.com/gmod/Panel:SetCookie
2696
2202
  */
2697
2203
  SetCookie(self: Panel, cookieName: string, value: string): void;
2698
- }
2699
2204
 
2700
- interface Panel {
2701
2205
  /**
2702
2206
  * Sets the panel's cookie name. Calls [PANEL:LoadCookies](https://wiki.facepunch.com/gmod/PANEL:LoadCookies) if defined.
2703
2207
  * @realm client and menu
2704
2208
  * @source https://wiki.facepunch.com/gmod/Panel:SetCookieName
2705
2209
  */
2706
2210
  SetCookieName(self: Panel, name: string): void;
2707
- }
2708
2211
 
2709
- interface Panel {
2710
2212
  /**
2711
2213
  * Sets the appearance of the cursor. You can find a list of all available cursors with image previews [here](https://wiki.facepunch.com/gmod/Cursors).
2712
2214
  *
@@ -2714,9 +2216,7 @@ interface Panel {
2714
2216
  * @source https://wiki.facepunch.com/gmod/Panel:SetCursor
2715
2217
  */
2716
2218
  SetCursor(self: Panel, cursor: string): void;
2717
- }
2718
2219
 
2719
- interface Panel {
2720
2220
  /**
2721
2221
  * Sets the drag parent.
2722
2222
  *
@@ -2726,9 +2226,7 @@ interface Panel {
2726
2226
  * @source https://wiki.facepunch.com/gmod/Panel:SetDragParent
2727
2227
  */
2728
2228
  SetDragParent(self: Panel, parent: Panel): void;
2729
- }
2730
2229
 
2731
- interface Panel {
2732
2230
  /**
2733
2231
  * Sets the visibility of the language selection box when typing in non-English mode.
2734
2232
  *
@@ -2738,9 +2236,7 @@ interface Panel {
2738
2236
  * @source https://wiki.facepunch.com/gmod/Panel:SetDrawLanguageID
2739
2237
  */
2740
2238
  SetDrawLanguageID(self: Panel, visible: boolean): void;
2741
- }
2742
2239
 
2743
- interface Panel {
2744
2240
  /**
2745
2241
  * Sets where to draw the language selection box.
2746
2242
  *
@@ -2750,9 +2246,7 @@ interface Panel {
2750
2246
  * @source https://wiki.facepunch.com/gmod/Panel:SetDrawLanguageIDAtLeft
2751
2247
  */
2752
2248
  SetDrawLanguageIDAtLeft(self: Panel, left: boolean): void;
2753
- }
2754
2249
 
2755
- interface Panel {
2756
2250
  /**
2757
2251
  * Makes the panel render in front of all others, including the spawn menu and main menu.
2758
2252
  *
@@ -2770,9 +2264,7 @@ interface Panel {
2770
2264
  * @source https://wiki.facepunch.com/gmod/Panel:SetDrawOnTop
2771
2265
  */
2772
2266
  SetDrawOnTop(self: Panel, drawOnTop?: boolean): void;
2773
- }
2774
2267
 
2775
- interface Panel {
2776
2268
  /**
2777
2269
  * Sets the target area for dropping when an object is being dragged around this panel using the [dragndrop](https://wiki.facepunch.com/gmod/dragndrop).
2778
2270
  *
@@ -2782,9 +2274,7 @@ interface Panel {
2782
2274
  * @source https://wiki.facepunch.com/gmod/Panel:SetDropTarget
2783
2275
  */
2784
2276
  SetDropTarget(self: Panel, x: number, y: number, width: number, height: number): void;
2785
- }
2786
2277
 
2787
- interface Panel {
2788
2278
  /**
2789
2279
  * Sets the enabled state of a panel object that supports being disabled, such as a [DButton](https://wiki.facepunch.com/gmod/DButton) or [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry).
2790
2280
  *
@@ -2796,9 +2286,7 @@ interface Panel {
2796
2286
  * @source https://wiki.facepunch.com/gmod/Panel:SetEnabled
2797
2287
  */
2798
2288
  SetEnabled(self: Panel, enable: boolean): void;
2799
- }
2800
2289
 
2801
- interface Panel {
2802
2290
  /**
2803
2291
  * Adds a shadow falling to the bottom right corner of the panel's text.
2804
2292
  *
@@ -2809,9 +2297,7 @@ interface Panel {
2809
2297
  * @source https://wiki.facepunch.com/gmod/Panel:SetExpensiveShadow
2810
2298
  */
2811
2299
  SetExpensiveShadow(self: Panel, distance: number, Color: Color): void;
2812
- }
2813
2300
 
2814
- interface Panel {
2815
2301
  /**
2816
2302
  * Sets the foreground color of a panel.
2817
2303
  *
@@ -2830,13 +2316,9 @@ interface Panel {
2830
2316
  * @source https://wiki.facepunch.com/gmod/Panel:SetFGColor
2831
2317
  */
2832
2318
  SetFGColor(self: Panel, r: number, g: number, b: number, a: number): void;
2833
- }
2834
2319
 
2835
- interface Panel {
2836
2320
  SetFGColor(self: Panel, color: Color): void;
2837
- }
2838
2321
 
2839
- interface Panel {
2840
2322
  /**
2841
2323
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2842
2324
  * Sets the foreground color of the panel.
@@ -2847,9 +2329,7 @@ interface Panel {
2847
2329
  * @source https://wiki.facepunch.com/gmod/Panel:SetFGColorEx
2848
2330
  */
2849
2331
  SetFGColorEx(self: Panel, r: number, g: number, b: number, a: number): void;
2850
- }
2851
2332
 
2852
- interface Panel {
2853
2333
  /**
2854
2334
  * Sets the panel that owns this FocusNavGroup to be the root in the focus traversal hierarchy. This function will only work on EditablePanel class panels and its derivatives.
2855
2335
  *
@@ -2859,9 +2339,7 @@ interface Panel {
2859
2339
  * @source https://wiki.facepunch.com/gmod/Panel:SetFocusTopLevel
2860
2340
  */
2861
2341
  SetFocusTopLevel(self: Panel, state: boolean): void;
2862
- }
2863
2342
 
2864
- interface Panel {
2865
2343
  /**
2866
2344
  * Sets the font used to render this panel's text. This works for [Label](https://wiki.facepunch.com/gmod/Label), [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) and [RichText](https://wiki.facepunch.com/gmod/RichText), but it's a better idea to use their local `SetFont` ([DTextEntry:SetFont](https://wiki.facepunch.com/gmod/DTextEntry:SetFont), [DLabel:SetFont](https://wiki.facepunch.com/gmod/DLabel:SetFont)) methods when available.
2867
2345
  *
@@ -2871,18 +2349,14 @@ interface Panel {
2871
2349
  * @source https://wiki.facepunch.com/gmod/Panel:SetFontInternal
2872
2350
  */
2873
2351
  SetFontInternal(self: Panel, fontName: string): void;
2874
- }
2875
2352
 
2876
- interface Panel {
2877
2353
  /**
2878
2354
  * Allows you to set HTML code within a panel.
2879
2355
  * @realm client and menu
2880
2356
  * @source https://wiki.facepunch.com/gmod/Panel:SetHTML
2881
2357
  */
2882
2358
  SetHTML(self: Panel, HTML: string): void;
2883
- }
2884
2359
 
2885
- interface Panel {
2886
2360
  /**
2887
2361
  * Sets the height of the panel.
2888
2362
  *
@@ -2895,9 +2369,7 @@ interface Panel {
2895
2369
  * @source https://wiki.facepunch.com/gmod/Panel:SetHeight
2896
2370
  */
2897
2371
  SetHeight(self: Panel, height: number): void;
2898
- }
2899
2372
 
2900
- interface Panel {
2901
2373
  /**
2902
2374
  * Enables or disables the keyboard input for the panel.
2903
2375
  * @realm client and menu
@@ -2905,18 +2377,14 @@ interface Panel {
2905
2377
  * @deprecated Alias of Panel:SetKeyboardInputEnabled(lowercase)
2906
2378
  */
2907
2379
  SetKeyBoardInputEnabled(self: Panel, keyboardInput: boolean): void;
2908
- }
2909
2380
 
2910
- interface Panel {
2911
2381
  /**
2912
2382
  * Allows or disallows the panel to receive keyboard focus and input. This is recursively applied to all children.
2913
2383
  * @realm client
2914
2384
  * @source https://wiki.facepunch.com/gmod/Panel:SetKeyboardInputEnabled(lowercase)
2915
2385
  */
2916
2386
  SetKeyboardInputEnabled(self: Panel, enable: boolean): void;
2917
- }
2918
2387
 
2919
- interface Panel {
2920
2388
  /**
2921
2389
  * Sets the height of a single line of a [RichText](https://wiki.facepunch.com/gmod/RichText) panel.
2922
2390
  *
@@ -2924,9 +2392,7 @@ interface Panel {
2924
2392
  * @source https://wiki.facepunch.com/gmod/Panel:SetLineHeight
2925
2393
  */
2926
2394
  SetLineHeight(self: Panel): number;
2927
- }
2928
2395
 
2929
- interface Panel {
2930
2396
  /**
2931
2397
  * Sets the maximum character count this panel should have.
2932
2398
  *
@@ -2936,9 +2402,7 @@ interface Panel {
2936
2402
  * @source https://wiki.facepunch.com/gmod/Panel:SetMaximumCharCount
2937
2403
  */
2938
2404
  SetMaximumCharCount(self: Panel, maxChar: number): void;
2939
- }
2940
2405
 
2941
- interface Panel {
2942
2406
  /**
2943
2407
  * Sets the minimum dimensions of the panel or object.
2944
2408
  *
@@ -2950,9 +2414,7 @@ interface Panel {
2950
2414
  * @source https://wiki.facepunch.com/gmod/Panel:SetMinimumSize
2951
2415
  */
2952
2416
  SetMinimumSize(self: Panel, minW?: number, minH?: number): void;
2953
- }
2954
2417
 
2955
- interface Panel {
2956
2418
  /**
2957
2419
  * Sets the model to be displayed by [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
2958
2420
  *
@@ -2963,9 +2425,7 @@ interface Panel {
2963
2425
  * @source https://wiki.facepunch.com/gmod/Panel:SetModel
2964
2426
  */
2965
2427
  SetModel(self: Panel, ModelPath: string, skin?: number, bodygroups?: string): void;
2966
- }
2967
2428
 
2968
- interface Panel {
2969
2429
  /**
2970
2430
  * Enables or disables the mouse input for the panel.
2971
2431
  * **NOTE**: Panels parented to the context menu will not be clickable unless [Panel:SetKeyboardInputEnabled](https://wiki.facepunch.com/gmod/Panel:SetKeyboardInputEnabled(lowercase)) is enabled or [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup) has been called. If you want the panel to have mouse input but you do not want to prevent players from moving, set [Panel:SetKeyboardInputEnabled](https://wiki.facepunch.com/gmod/Panel:SetKeyboardInputEnabled(lowercase)) to false immediately after calling [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup).
@@ -2975,63 +2435,49 @@ interface Panel {
2975
2435
  * @source https://wiki.facepunch.com/gmod/Panel:SetMouseInputEnabled
2976
2436
  */
2977
2437
  SetMouseInputEnabled(self: Panel, mouseInput: boolean): void;
2978
- }
2979
2438
 
2980
- interface Panel {
2981
2439
  /**
2982
2440
  * Enables or disables the multi-line functionality of [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) panel and its derivatives.
2983
2441
  * @realm client and menu
2984
2442
  * @source https://wiki.facepunch.com/gmod/Panel:SetMultiline
2985
2443
  */
2986
2444
  SetMultiline(self: Panel, multiline: boolean): void;
2987
- }
2988
2445
 
2989
- interface Panel {
2990
2446
  /**
2991
2447
  * Sets the internal name of the panel. Can be retrieved with [Panel:GetName](https://wiki.facepunch.com/gmod/Panel:GetName).
2992
2448
  * @realm client and menu
2993
2449
  * @source https://wiki.facepunch.com/gmod/Panel:SetName
2994
2450
  */
2995
2451
  SetName(self: Panel, name: string): void;
2996
- }
2997
2452
 
2998
- interface Panel {
2999
2453
  /**
3000
2454
  * Set to true to open links in an external browser. This only functions on the `x86-64` beta.
3001
2455
  * @realm menu
3002
2456
  * @source https://wiki.facepunch.com/gmod/Panel:SetOpenLinksExternally
3003
2457
  */
3004
2458
  SetOpenLinksExternally(self: Panel, openExternally: boolean): void;
3005
- }
3006
2459
 
3007
- interface Panel {
3008
2460
  /**
3009
2461
  * Sets whether the default background of the panel should be drawn or not. It's color is usually set by [Panel:SetBGColor](https://wiki.facepunch.com/gmod/Panel:SetBGColor).
3010
2462
  * @realm client and menu
3011
2463
  * @source https://wiki.facepunch.com/gmod/Panel:SetPaintBackgroundEnabled
3012
2464
  */
3013
2465
  SetPaintBackgroundEnabled(self: Panel, paintBackground: boolean): void;
3014
- }
3015
2466
 
3016
- interface Panel {
3017
2467
  /**
3018
2468
  * Sets whether the default border of the panel should be drawn or not.
3019
2469
  * @realm client and menu
3020
2470
  * @source https://wiki.facepunch.com/gmod/Panel:SetPaintBorderEnabled
3021
2471
  */
3022
2472
  SetPaintBorderEnabled(self: Panel, paintBorder: boolean): void;
3023
- }
3024
2473
 
3025
- interface Panel {
3026
2474
  /**
3027
2475
  * Enables or disables painting of the panel manually with [Panel:PaintManual](https://wiki.facepunch.com/gmod/Panel:PaintManual).
3028
2476
  * @realm client and menu
3029
2477
  * @source https://wiki.facepunch.com/gmod/Panel:SetPaintedManually
3030
2478
  */
3031
2479
  SetPaintedManually(self: Panel, paintedManually: boolean): void;
3032
- }
3033
2480
 
3034
- interface Panel {
3035
2481
  /**
3036
2482
  * Sets the parent of the panel.
3037
2483
  * **NOTE**: Panels parented to the context menu will not be clickable unless [Panel:SetMouseInputEnabled](https://wiki.facepunch.com/gmod/Panel:SetMouseInputEnabled) and [Panel:SetKeyboardInputEnabled](https://wiki.facepunch.com/gmod/Panel:SetKeyboardInputEnabled(lowercase)) are both true or [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup) has been called. If you want the panel to have mouse input but you do not want to prevent players from moving, set [Panel:SetKeyboardInputEnabled](https://wiki.facepunch.com/gmod/Panel:SetKeyboardInputEnabled(lowercase)) to false immediately after calling [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup).
@@ -3041,27 +2487,21 @@ interface Panel {
3041
2487
  * @source https://wiki.facepunch.com/gmod/Panel:SetParent
3042
2488
  */
3043
2489
  SetParent(self: Panel, parent: Panel): void;
3044
- }
3045
2490
 
3046
- interface Panel {
3047
2491
  /**
3048
2492
  * Used by [AvatarImage](https://wiki.facepunch.com/gmod/AvatarImage) to load an avatar for given player.
3049
2493
  * @realm client
3050
2494
  * @source https://wiki.facepunch.com/gmod/Panel:SetPlayer
3051
2495
  */
3052
2496
  SetPlayer(self: Panel, player: Player, size?: number): void;
3053
- }
3054
2497
 
3055
- interface Panel {
3056
2498
  /**
3057
2499
  * If this panel object has been made a popup with [Panel:MakePopup](https://wiki.facepunch.com/gmod/Panel:MakePopup), this method will prevent it from drawing in front of other panels when it receives input focus.
3058
2500
  * @realm client and menu
3059
2501
  * @source https://wiki.facepunch.com/gmod/Panel:SetPopupStayAtBack
3060
2502
  */
3061
2503
  SetPopupStayAtBack(self: Panel, stayAtBack: boolean): void;
3062
- }
3063
2504
 
3064
- interface Panel {
3065
2505
  /**
3066
2506
  * Sets the position of the panel's top left corner.
3067
2507
  *
@@ -3076,45 +2516,35 @@ interface Panel {
3076
2516
  * @source https://wiki.facepunch.com/gmod/Panel:SetPos
3077
2517
  */
3078
2518
  SetPos(self: Panel, posX: number, posY: number): void;
3079
- }
3080
2519
 
3081
- interface Panel {
3082
2520
  /**
3083
2521
  * Sets whenever the panel should be rendered in a screenshot. (`jpeg` or `screenshot` commands, Camera SWEP)
3084
2522
  * @realm client and menu
3085
2523
  * @source https://wiki.facepunch.com/gmod/Panel:SetRenderInScreenshots
3086
2524
  */
3087
2525
  SetRenderInScreenshots(self: Panel, renderInScreenshot: boolean): void;
3088
- }
3089
2526
 
3090
- interface Panel {
3091
2527
  /**
3092
2528
  * Sets whether the panel object can be selected or not (like icons in the Spawn Menu, holding Shift). If enabled, this will affect the function of a [DButton](https://wiki.facepunch.com/gmod/DButton) whilst Shift is pressed. [Panel:SetSelected](https://wiki.facepunch.com/gmod/Panel:SetSelected) can be used to select/deselect the object.
3093
2529
  * @realm client and menu
3094
2530
  * @source https://wiki.facepunch.com/gmod/Panel:SetSelectable
3095
2531
  */
3096
2532
  SetSelectable(self: Panel, selectable: boolean): void;
3097
- }
3098
2533
 
3099
- interface Panel {
3100
2534
  /**
3101
2535
  * Sets the selected state of a selectable panel object. This functionality is set with [Panel:SetSelectable](https://wiki.facepunch.com/gmod/Panel:SetSelectable) and checked with [Panel:IsSelectable](https://wiki.facepunch.com/gmod/Panel:IsSelectable).
3102
2536
  * @realm client and menu
3103
2537
  * @source https://wiki.facepunch.com/gmod/Panel:SetSelected
3104
2538
  */
3105
2539
  SetSelected(self: Panel, selected?: boolean): void;
3106
- }
3107
2540
 
3108
- interface Panel {
3109
2541
  /**
3110
2542
  * Enables the panel object for selection (much like the spawn menu).
3111
2543
  * @realm client and menu
3112
2544
  * @source https://wiki.facepunch.com/gmod/Panel:SetSelectionCanvas
3113
2545
  */
3114
2546
  SetSelectionCanvas(self: Panel, set: boolean): void;
3115
- }
3116
2547
 
3117
- interface Panel {
3118
2548
  /**
3119
2549
  * Sets the size of the panel.
3120
2550
  *
@@ -3131,18 +2561,14 @@ interface Panel {
3131
2561
  * @source https://wiki.facepunch.com/gmod/Panel:SetSize
3132
2562
  */
3133
2563
  SetSize(self: Panel, width: number, height: number): void;
3134
- }
3135
2564
 
3136
- interface Panel {
3137
2565
  /**
3138
2566
  * Sets the derma skin that the panel object will use, and refreshes all panels with [derma.RefreshSkins](https://wiki.facepunch.com/gmod/derma.RefreshSkins).
3139
2567
  * @realm client and menu
3140
2568
  * @source https://wiki.facepunch.com/gmod/Panel:SetSkin
3141
2569
  */
3142
2570
  SetSkin(self: Panel, skinName: string): void;
3143
- }
3144
2571
 
3145
- interface Panel {
3146
2572
  /**
3147
2573
  * Sets the `.png` image to be displayed on a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) or the panel it is based on - [ModelImage](https://wiki.facepunch.com/gmod/ModelImage).
3148
2574
  *
@@ -3152,18 +2578,14 @@ interface Panel {
3152
2578
  * @source https://wiki.facepunch.com/gmod/Panel:SetSpawnIcon
3153
2579
  */
3154
2580
  SetSpawnIcon(self: Panel, icon: string): void;
3155
- }
3156
2581
 
3157
- interface Panel {
3158
2582
  /**
3159
2583
  * Used by [AvatarImage](https://wiki.facepunch.com/gmod/AvatarImage) panels to load an avatar by its 64-bit Steam ID (community ID).
3160
2584
  * @realm client
3161
2585
  * @source https://wiki.facepunch.com/gmod/Panel:SetSteamID
3162
2586
  */
3163
2587
  SetSteamID(self: Panel, steamid: string, size: number): void;
3164
- }
3165
2588
 
3166
- interface Panel {
3167
2589
  /**
3168
2590
  * When TAB is pressed, the next selectable panel in the number sequence is selected.
3169
2591
  *
@@ -3174,18 +2596,14 @@ interface Panel {
3174
2596
  * @source https://wiki.facepunch.com/gmod/Panel:SetTabPosition
3175
2597
  */
3176
2598
  SetTabPosition(self: Panel, position: number): void;
3177
- }
3178
2599
 
3179
- interface Panel {
3180
2600
  /**
3181
2601
  * Sets height of a panel. An alias of [Panel:SetHeight](https://wiki.facepunch.com/gmod/Panel:SetHeight).
3182
2602
  * @realm client and menu
3183
2603
  * @source https://wiki.facepunch.com/gmod/Panel:SetTall
3184
2604
  */
3185
2605
  SetTall(self: Panel, height: number): void;
3186
- }
3187
2606
 
3188
- interface Panel {
3189
2607
  /**
3190
2608
  * Removes the panel after given time in seconds.
3191
2609
  * **NOTE**: This function will not work if [PANEL:AnimationThink](https://wiki.facepunch.com/gmod/PANEL:AnimationThink) is overridden, unless [Panel:AnimationThinkInternal](https://wiki.facepunch.com/gmod/Panel:AnimationThinkInternal) is called every frame.
@@ -3195,9 +2613,7 @@ interface Panel {
3195
2613
  * @source https://wiki.facepunch.com/gmod/Panel:SetTerm
3196
2614
  */
3197
2615
  SetTerm(self: Panel, delay: number): void;
3198
- }
3199
2616
 
3200
- interface Panel {
3201
2617
  /**
3202
2618
  * Sets the text value of a panel object containing text, such as a [Label](https://wiki.facepunch.com/gmod/Label), [TextEntry](https://wiki.facepunch.com/gmod/TextEntry) or [RichText](https://wiki.facepunch.com/gmod/RichText) and their derivatives, such as [DLabel](https://wiki.facepunch.com/gmod/DLabel), [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) or [DButton](https://wiki.facepunch.com/gmod/DButton).
3203
2619
  *
@@ -3213,9 +2629,7 @@ interface Panel {
3213
2629
  * @source https://wiki.facepunch.com/gmod/Panel:SetText
3214
2630
  */
3215
2631
  SetText(self: Panel, text: string): void;
3216
- }
3217
2632
 
3218
- interface Panel {
3219
2633
  /**
3220
2634
  * Makes [TextEntry](https://wiki.facepunch.com/gmod/TextEntry)'s text be replaced by `*` characters, just like a password-entry text field would.
3221
2635
  *
@@ -3223,27 +2637,21 @@ interface Panel {
3223
2637
  * @source https://wiki.facepunch.com/gmod/Panel:SetTextHidden
3224
2638
  */
3225
2639
  SetTextHidden(self: Panel, arg0: boolean): void;
3226
- }
3227
2640
 
3228
- interface Panel {
3229
2641
  /**
3230
2642
  * Sets the left and top text margins of a text-based panel object, such as a [DButton](https://wiki.facepunch.com/gmod/DButton) or [DLabel](https://wiki.facepunch.com/gmod/DLabel).
3231
2643
  * @realm client and menu
3232
2644
  * @source https://wiki.facepunch.com/gmod/Panel:SetTextInset
3233
2645
  */
3234
2646
  SetTextInset(self: Panel, insetX: number, insetY: number): void;
3235
- }
3236
2647
 
3237
- interface Panel {
3238
2648
  /**
3239
2649
  * Sets text selection colors of a [RichText](https://wiki.facepunch.com/gmod/RichText) element.
3240
2650
  * @realm client and menu
3241
2651
  * @source https://wiki.facepunch.com/gmod/Panel:SetTextSelectionColors
3242
2652
  */
3243
2653
  SetTextSelectionColors(self: Panel, textColor: Color, backgroundColor: Color): void;
3244
- }
3245
2654
 
3246
- interface Panel {
3247
2655
  /**
3248
2656
  * Sets the height of a [RichText](https://wiki.facepunch.com/gmod/RichText) element to accommodate the text inside.
3249
2657
  *
@@ -3254,9 +2662,7 @@ interface Panel {
3254
2662
  * @source https://wiki.facepunch.com/gmod/Panel:SetToFullHeight
3255
2663
  */
3256
2664
  SetToFullHeight(self: Panel): void;
3257
- }
3258
2665
 
3259
- interface Panel {
3260
2666
  /**
3261
2667
  * Sets the tooltip to be displayed when a player hovers over the panel object with their cursor.
3262
2668
  *
@@ -3266,9 +2672,7 @@ interface Panel {
3266
2672
  * @source https://wiki.facepunch.com/gmod/Panel:SetTooltip
3267
2673
  */
3268
2674
  SetTooltip(self: Panel, str?: string): void;
3269
- }
3270
2675
 
3271
- interface Panel {
3272
2676
  /**
3273
2677
  * Sets the tooltip delay. (time between hovering over the panel, and the tooltip showing up)
3274
2678
  *
@@ -3278,9 +2682,7 @@ interface Panel {
3278
2682
  * @source https://wiki.facepunch.com/gmod/Panel:SetTooltipDelay
3279
2683
  */
3280
2684
  SetTooltipDelay(self: Panel, tooltip: number): void;
3281
- }
3282
2685
 
3283
- interface Panel {
3284
2686
  /**
3285
2687
  * Sets the panel to be displayed as contents of a [DTooltip](https://wiki.facepunch.com/gmod/DTooltip) when a player hovers over the panel object with their cursor. See [Panel:SetTooltipPanelOverride](https://wiki.facepunch.com/gmod/Panel:SetTooltipPanelOverride) if you are looking to override [DTooltip](https://wiki.facepunch.com/gmod/DTooltip) itself.
3286
2688
  *
@@ -3296,9 +2698,7 @@ interface Panel {
3296
2698
  * @source https://wiki.facepunch.com/gmod/Panel:SetTooltipPanel
3297
2699
  */
3298
2700
  SetTooltipPanel(self: Panel, tooltipPanel?: Panel): void;
3299
- }
3300
2701
 
3301
- interface Panel {
3302
2702
  /**
3303
2703
  * Sets the panel class to be created instead of [DTooltip](https://wiki.facepunch.com/gmod/DTooltip) when the player hovers over this panel and a tooltip needs creating.
3304
2704
  *
@@ -3306,18 +2706,14 @@ interface Panel {
3306
2706
  * @source https://wiki.facepunch.com/gmod/Panel:SetTooltipPanelOverride
3307
2707
  */
3308
2708
  SetTooltipPanelOverride(self: Panel, override: string): void;
3309
- }
3310
2709
 
3311
- interface Panel {
3312
2710
  /**
3313
2711
  * Sets the URL of a link-based panel such as [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL).
3314
2712
  * @realm client and menu
3315
2713
  * @source https://wiki.facepunch.com/gmod/Panel:SetURL
3316
2714
  */
3317
2715
  SetURL(self: Panel, url: string): void;
3318
- }
3319
2716
 
3320
- interface Panel {
3321
2717
  /**
3322
2718
  * Sets the underlined font for use by clickable text in a [RichText](https://wiki.facepunch.com/gmod/RichText). See also [Panel:InsertClickableTextStart](https://wiki.facepunch.com/gmod/Panel:InsertClickableTextStart)
3323
2719
  *
@@ -3327,9 +2723,7 @@ interface Panel {
3327
2723
  * @source https://wiki.facepunch.com/gmod/Panel:SetUnderlineFont
3328
2724
  */
3329
2725
  SetUnderlineFont(self: Panel, fontName: string): void;
3330
- }
3331
2726
 
3332
- interface Panel {
3333
2727
  /**
3334
2728
  * Sets the visibility of the vertical scrollbar.
3335
2729
  *
@@ -3339,27 +2733,21 @@ interface Panel {
3339
2733
  * @source https://wiki.facepunch.com/gmod/Panel:SetVerticalScrollbarEnabled
3340
2734
  */
3341
2735
  SetVerticalScrollbarEnabled(self: Panel, display?: boolean): void;
3342
- }
3343
2736
 
3344
- interface Panel {
3345
2737
  /**
3346
2738
  * Sets the "visibility" of the panel.
3347
2739
  * @realm client and menu
3348
2740
  * @source https://wiki.facepunch.com/gmod/Panel:SetVisible
3349
2741
  */
3350
2742
  SetVisible(self: Panel, visible: boolean): void;
3351
- }
3352
2743
 
3353
- interface Panel {
3354
2744
  /**
3355
2745
  * Sets width of a panel. An alias of [Panel:SetWidth](https://wiki.facepunch.com/gmod/Panel:SetWidth).
3356
2746
  * @realm client and menu
3357
2747
  * @source https://wiki.facepunch.com/gmod/Panel:SetWide
3358
2748
  */
3359
2749
  SetWide(self: Panel, width: number): void;
3360
- }
3361
2750
 
3362
- interface Panel {
3363
2751
  /**
3364
2752
  * Sets the width of the panel.
3365
2753
  *
@@ -3372,9 +2760,7 @@ interface Panel {
3372
2760
  * @source https://wiki.facepunch.com/gmod/Panel:SetWidth
3373
2761
  */
3374
2762
  SetWidth(self: Panel, width: number): void;
3375
- }
3376
2763
 
3377
- interface Panel {
3378
2764
  /**
3379
2765
  * This makes it so that when you're hovering over this panel you can "click" on the world. Your weapon aim (and its viewmodel) will follow the cursor. This is primarily used for the Sandbox context menu.
3380
2766
  *
@@ -3382,9 +2768,7 @@ interface Panel {
3382
2768
  * @source https://wiki.facepunch.com/gmod/Panel:SetWorldClicker
3383
2769
  */
3384
2770
  SetWorldClicker(self: Panel, enable: boolean): void;
3385
- }
3386
2771
 
3387
- interface Panel {
3388
2772
  /**
3389
2773
  * Sets whether text wrapping should be enabled or disabled on [Label](https://wiki.facepunch.com/gmod/Label) and [DLabel](https://wiki.facepunch.com/gmod/DLabel) panels.
3390
2774
  *
@@ -3394,9 +2778,7 @@ interface Panel {
3394
2778
  * @source https://wiki.facepunch.com/gmod/Panel:SetWrap
3395
2779
  */
3396
2780
  SetWrap(self: Panel, wrap: boolean): void;
3397
- }
3398
2781
 
3399
- interface Panel {
3400
2782
  /**
3401
2783
  * Sets the X position of the panel.
3402
2784
  *
@@ -3406,9 +2788,7 @@ interface Panel {
3406
2788
  * @source https://wiki.facepunch.com/gmod/Panel:SetX
3407
2789
  */
3408
2790
  SetX(self: Panel, x: number): void;
3409
- }
3410
2791
 
3411
- interface Panel {
3412
2792
  /**
3413
2793
  * Sets the Y position of the panel.
3414
2794
  *
@@ -3418,9 +2798,7 @@ interface Panel {
3418
2798
  * @source https://wiki.facepunch.com/gmod/Panel:SetY
3419
2799
  */
3420
2800
  SetY(self: Panel, y: number): void;
3421
- }
3422
2801
 
3423
- interface Panel {
3424
2802
  /**
3425
2803
  * Sets the panels z position which determines the rendering order.
3426
2804
  *
@@ -3432,27 +2810,21 @@ interface Panel {
3432
2810
  * @source https://wiki.facepunch.com/gmod/Panel:SetZPos
3433
2811
  */
3434
2812
  SetZPos(self: Panel, zIndex: number): void;
3435
- }
3436
2813
 
3437
- interface Panel {
3438
2814
  /**
3439
2815
  * Makes a panel visible.
3440
2816
  * @realm client and menu
3441
2817
  * @source https://wiki.facepunch.com/gmod/Panel:Show
3442
2818
  */
3443
2819
  Show(self: Panel): void;
3444
- }
3445
2820
 
3446
- interface Panel {
3447
2821
  /**
3448
2822
  * Uses animation to resize the panel to the specified size.
3449
2823
  * @realm client and menu
3450
2824
  * @source https://wiki.facepunch.com/gmod/Panel:SizeTo
3451
2825
  */
3452
2826
  SizeTo(self: Panel, sizeW?: number, sizeH?: number, time?: number, delay?: number, ease?: number, callback?: (animData: table, targetPanel: Panel) => void): void;
3453
- }
3454
2827
 
3455
- interface Panel {
3456
2828
  /**
3457
2829
  * Resizes the panel to fit the bounds of its children.
3458
2830
  *
@@ -3465,9 +2837,7 @@ interface Panel {
3465
2837
  * @source https://wiki.facepunch.com/gmod/Panel:SizeToChildren
3466
2838
  */
3467
2839
  SizeToChildren(self: Panel, sizeW?: boolean, sizeH?: boolean): void;
3468
- }
3469
2840
 
3470
- interface Panel {
3471
2841
  /**
3472
2842
  * Resizes the panel so that its width and height fit all of the content inside.
3473
2843
  *
@@ -3481,9 +2851,7 @@ interface Panel {
3481
2851
  * @source https://wiki.facepunch.com/gmod/Panel:SizeToContents
3482
2852
  */
3483
2853
  SizeToContents(self: Panel): void;
3484
- }
3485
2854
 
3486
- interface Panel {
3487
2855
  /**
3488
2856
  * Resizes the panel object's width to accommodate all child objects/contents.
3489
2857
  *
@@ -3496,9 +2864,7 @@ interface Panel {
3496
2864
  * @source https://wiki.facepunch.com/gmod/Panel:SizeToContentsX
3497
2865
  */
3498
2866
  SizeToContentsX(self: Panel, addVal?: number): void;
3499
- }
3500
2867
 
3501
- interface Panel {
3502
2868
  /**
3503
2869
  * Resizes the panel object's height to accommodate all child objects/contents.
3504
2870
  *
@@ -3511,99 +2877,77 @@ interface Panel {
3511
2877
  * @source https://wiki.facepunch.com/gmod/Panel:SizeToContentsY
3512
2878
  */
3513
2879
  SizeToContentsY(self: Panel, addVal?: number): void;
3514
- }
3515
2880
 
3516
- interface Panel {
3517
2881
  /**
3518
2882
  * Slides the panel in from above.
3519
2883
  * @realm client and menu
3520
2884
  * @source https://wiki.facepunch.com/gmod/Panel:SlideDown
3521
2885
  */
3522
2886
  SlideDown(self: Panel, Length: number): void;
3523
- }
3524
2887
 
3525
- interface Panel {
3526
2888
  /**
3527
2889
  * Slides the panel out to the top.
3528
2890
  * @realm client and menu
3529
2891
  * @source https://wiki.facepunch.com/gmod/Panel:SlideUp
3530
2892
  */
3531
2893
  SlideUp(self: Panel, Length: number): void;
3532
- }
3533
2894
 
3534
- interface Panel {
3535
2895
  /**
3536
2896
  * Begins a box selection, enables mouse capture for the panel object, and sets the start point of the selection box to the mouse cursor's position, relative to this object. For this to work, either the object or its parent must be enabled as a selection canvas. This is set using [Panel:SetSelectionCanvas](https://wiki.facepunch.com/gmod/Panel:SetSelectionCanvas).
3537
2897
  * @realm client and menu
3538
2898
  * @source https://wiki.facepunch.com/gmod/Panel:StartBoxSelection
3539
2899
  */
3540
2900
  StartBoxSelection(self: Panel): void;
3541
- }
3542
2901
 
3543
- interface Panel {
3544
2902
  /**
3545
2903
  * Stops all panel animations by clearing its animation list. This also clears all delayed animations.
3546
2904
  * @realm client and menu
3547
2905
  * @source https://wiki.facepunch.com/gmod/Panel:Stop
3548
2906
  */
3549
2907
  Stop(self: Panel): void;
3550
- }
3551
2908
 
3552
- interface Panel {
3553
2909
  /**
3554
2910
  * Stops the loading of the [HTML](https://wiki.facepunch.com/gmod/HTML) panel's current page.
3555
2911
  * @realm client and menu
3556
2912
  * @source https://wiki.facepunch.com/gmod/Panel:StopLoading
3557
2913
  */
3558
2914
  StopLoading(self: Panel): void;
3559
- }
3560
2915
 
3561
- interface Panel {
3562
2916
  /**
3563
2917
  * Resizes the panel object's height so that its bottom is aligned with the top of the passed panel. An offset greater than zero will reduce the panel's height to leave a gap between it and the passed panel.
3564
2918
  * @realm client and menu
3565
2919
  * @source https://wiki.facepunch.com/gmod/Panel:StretchBottomTo
3566
2920
  */
3567
2921
  StretchBottomTo(self: Panel, tgtPanel: Panel, offset?: number): void;
3568
- }
3569
2922
 
3570
- interface Panel {
3571
2923
  /**
3572
2924
  * Resizes the panel object's width so that its right edge is aligned with the left of the passed panel. An offset greater than zero will reduce the panel's width to leave a gap between it and the passed panel.
3573
2925
  * @realm client and menu
3574
2926
  * @source https://wiki.facepunch.com/gmod/Panel:StretchRightTo
3575
2927
  */
3576
2928
  StretchRightTo(self: Panel, tgtPanel: Panel, offset?: number): void;
3577
- }
3578
2929
 
3579
- interface Panel {
3580
2930
  /**
3581
2931
  * Sets the dimensions of the panel to fill its parent. It will only stretch in directions that aren't nil.
3582
2932
  * @realm client and menu
3583
2933
  * @source https://wiki.facepunch.com/gmod/Panel:StretchToParent
3584
2934
  */
3585
2935
  StretchToParent(self: Panel, offsetLeft?: number, offsetTop?: number, offsetRight?: number, offsetBottom?: number): void;
3586
- }
3587
2936
 
3588
- interface Panel {
3589
2937
  /**
3590
2938
  * Toggles the selected state of a selectable panel object. This functionality is set with [Panel:SetSelectable](https://wiki.facepunch.com/gmod/Panel:SetSelectable) and checked with [Panel:IsSelectable](https://wiki.facepunch.com/gmod/Panel:IsSelectable). To check whether the object is selected or not, [Panel:IsSelected](https://wiki.facepunch.com/gmod/Panel:IsSelected) is used.
3591
2939
  * @realm client and menu
3592
2940
  * @source https://wiki.facepunch.com/gmod/Panel:ToggleSelection
3593
2941
  */
3594
2942
  ToggleSelection(self: Panel): void;
3595
- }
3596
2943
 
3597
- interface Panel {
3598
2944
  /**
3599
2945
  * Toggles the visibility of a panel and all its children.
3600
2946
  * @realm client and menu
3601
2947
  * @source https://wiki.facepunch.com/gmod/Panel:ToggleVisible
3602
2948
  */
3603
2949
  ToggleVisible(self: Panel): void;
3604
- }
3605
2950
 
3606
- interface Panel {
3607
2951
  /**
3608
2952
  * Restores the last saved state (caret position and the text inside) of a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry). Should act identically to pressing CTRL+Z in a [TextEntry](https://wiki.facepunch.com/gmod/TextEntry).
3609
2953
  *
@@ -3613,18 +2957,14 @@ interface Panel {
3613
2957
  * @source https://wiki.facepunch.com/gmod/Panel:Undo
3614
2958
  */
3615
2959
  Undo(self: Panel): void;
3616
- }
3617
2960
 
3618
- interface Panel {
3619
2961
  /**
3620
2962
  * Recursively deselects this panel object and all of its children. This will cascade to all child objects at every level below the parent.
3621
2963
  * @realm client and menu
3622
2964
  * @source https://wiki.facepunch.com/gmod/Panel:UnselectAll
3623
2965
  */
3624
2966
  UnselectAll(self: Panel): void;
3625
- }
3626
2967
 
3627
- interface Panel {
3628
2968
  /**
3629
2969
  * Forcibly updates the panels' HTML Material, similar to when Paint is called on it.This is only useful if the panel is not normally visible, i.e the panel exists purely for its HTML Material.
3630
2970
  * **NOTE**: Only works on with panels that have a HTML Material. See [Panel:GetHTMLMaterial](https://wiki.facepunch.com/gmod/Panel:GetHTMLMaterial) for more details.
@@ -3636,9 +2976,7 @@ interface Panel {
3636
2976
  * @source https://wiki.facepunch.com/gmod/Panel:UpdateHTMLTexture
3637
2977
  */
3638
2978
  UpdateHTMLTexture(self: Panel): void;
3639
- }
3640
2979
 
3641
- interface Panel {
3642
2980
  /**
3643
2981
  * Returns if a given panel is valid or not.
3644
2982
  * @realm client and menu
@@ -3648,3 +2986,5 @@ interface Panel {
3648
2986
  Valid(self: Panel): boolean;
3649
2987
  }
3650
2988
 
2989
+ // The PANEL hook table is a Panel.
2990
+ interface PANEL extends Panel {}