@tlua/gmod 1.0.5 → 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 +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  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 +11 -13
  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 +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  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 +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  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 +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -15,36 +15,42 @@ interface DHScrollBar extends Panel {
15
15
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:AddScroll
16
16
  */
17
17
  AddScroll(self: DHScrollBar, add: number): boolean;
18
+
18
19
  /**
19
20
  * Smoothly scrolls to given level.
20
21
  * @realm client and menu
21
22
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:AnimateTo
22
23
  */
23
24
  AnimateTo(self: DHScrollBar, scroll: number, length: number, delay?: number, ease?: number): void;
25
+
24
26
  /**
25
27
  * Returns the scale of the scroll bar based on the difference in size between the visible "window" into the canvas that is being scrolled. Should be used after [DHScrollBar:SetUp](https://wiki.facepunch.com/gmod/DHScrollBar:SetUp).
26
28
  * @realm client and menu
27
29
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:BarScale
28
30
  */
29
31
  BarScale(self: DHScrollBar): number;
32
+
30
33
  /**
31
34
  * Returns whether or not the manual left/right scroll buttons are visible or not. Set by [DHScrollBar:SetHideButtons](https://wiki.facepunch.com/gmod/DHScrollBar:SetHideButtons).
32
35
  * @realm client and menu
33
36
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:GetHideButtons
34
37
  */
35
38
  GetHideButtons(self: DHScrollBar): boolean;
39
+
36
40
  /**
37
41
  * Returns the negative of [DHScrollBar:GetScroll](https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll).
38
42
  * @realm client and menu
39
43
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:GetOffset
40
44
  */
41
45
  GetOffset(self: DHScrollBar): number;
46
+
42
47
  /**
43
48
  * Returns the amount of scroll level from the left in pixels.
44
49
  * @realm client and menu
45
50
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll
46
51
  */
47
52
  GetScroll(self: DHScrollBar): number;
53
+
48
54
  /**
49
55
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
50
56
  *
@@ -55,18 +61,21 @@ interface DHScrollBar extends Panel {
55
61
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:Grip
56
62
  */
57
63
  Grip(self: DHScrollBar): void;
64
+
58
65
  /**
59
66
  * Allows hiding the left and right buttons for better visual stylisation.
60
67
  * @realm client and menu
61
68
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:SetHideButtons
62
69
  */
63
70
  SetHideButtons(self: DHScrollBar, hide: boolean): void;
71
+
64
72
  /**
65
73
  * Sets the scroll level in pixels.
66
74
  * @realm client and menu
67
75
  * @source https://wiki.facepunch.com/gmod/DHScrollBar:SetScroll
68
76
  */
69
77
  SetScroll(self: DHScrollBar, scroll: number): void;
78
+
70
79
  /**
71
80
  * Sets up the scrollbar for use.
72
81
  *
@@ -77,14 +86,3 @@ interface DHScrollBar extends Panel {
77
86
  */
78
87
  SetUp(self: DHScrollBar, barSize: number, canvasSize: number): void;
79
88
  }
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
@@ -17,6 +17,7 @@ interface DHTML extends HTML {
17
17
  * @source https://wiki.facepunch.com/gmod/DHTML:AddFunction
18
18
  */
19
19
  AddFunction(self: DHTML, library: string, name: string, callback: function): void;
20
+
20
21
  /**
21
22
  * Runs/Executes a string as JavaScript code in a panel.
22
23
  * **NOTE**: This function does **NOT** evaluate expression (i.e. allow you to pass variables from JavaScript (JS) to Lua context).Because a return value is nil/no value (a.k.a. void).If you wish to pass/return values from JS to Lua, you may want to use [DHTML:AddFunction](https://wiki.facepunch.com/gmod/DHTML:AddFunction) function to accomplish that job.
@@ -28,12 +29,14 @@ interface DHTML extends HTML {
28
29
  * @source https://wiki.facepunch.com/gmod/DHTML:Call
29
30
  */
30
31
  Call(self: DHTML, js: string): void;
32
+
31
33
  /**
32
34
  * Returns if the loaded page can run Lua code, set by [DHTML:SetAllowLua](https://wiki.facepunch.com/gmod/DHTML:SetAllowLua)
33
35
  * @realm client and menu
34
36
  * @source https://wiki.facepunch.com/gmod/DHTML:GetAllowLua
35
37
  */
36
38
  GetAllowLua(self: DHTML): boolean;
39
+
37
40
  /**
38
41
  * Returns the value set by [DHTML:SetScrollbars](https://wiki.facepunch.com/gmod/DHTML:SetScrollbars).
39
42
  *
@@ -42,6 +45,7 @@ interface DHTML extends HTML {
42
45
  * @deprecated Broken. Use the CSS `overflow` rule instead.
43
46
  */
44
47
  GetScrollbars(self: DHTML): boolean;
48
+
45
49
  /**
46
50
  * Runs/Executes a string as JavaScript code in a panel.
47
51
  *
@@ -54,12 +58,14 @@ interface DHTML extends HTML {
54
58
  * @source https://wiki.facepunch.com/gmod/DHTML:QueueJavascript
55
59
  */
56
60
  QueueJavascript(self: DHTML, js: string): void;
61
+
57
62
  /**
58
63
  * Determines whether the loaded page can run Lua code or not. See [DHTML](https://wiki.facepunch.com/gmod/DHTML) for how to run Lua from a DHTML window.
59
64
  * @realm client and menu
60
65
  * @source https://wiki.facepunch.com/gmod/DHTML:SetAllowLua
61
66
  */
62
67
  SetAllowLua(self: DHTML, allow?: boolean): void;
68
+
63
69
  /**
64
70
  * Sets if the loaded window should display scrollbars when the webpage is larger than the viewing window. This is similar to the CSS `overflow` rule.
65
71
  * @realm client and menu
@@ -68,11 +74,3 @@ interface DHTML extends HTML {
68
74
  */
69
75
  SetScrollbars(self: DHTML, show: boolean): void;
70
76
  }
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
@@ -6,6 +6,7 @@ interface DHTMLControls extends Panel {
6
6
  ForwardButton: DButton;
7
7
  RefreshButton: DButton;
8
8
  StopButton: DButton;
9
+
9
10
  /**
10
11
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
11
12
  *
@@ -13,12 +14,14 @@ interface DHTMLControls extends Panel {
13
14
  * @source https://wiki.facepunch.com/gmod/DHTMLControls:FinishedLoading
14
15
  */
15
16
  FinishedLoading(self: DHTMLControls): void;
17
+
16
18
  /**
17
19
  * Sets the color of the navigation buttons.
18
20
  * @realm client and menu
19
21
  * @source https://wiki.facepunch.com/gmod/DHTMLControls:SetButtonColor
20
22
  */
21
23
  SetButtonColor(self: DHTMLControls, clr: Color): void;
24
+
22
25
  /**
23
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
24
27
  *
@@ -26,6 +29,7 @@ interface DHTMLControls extends Panel {
26
29
  * @source https://wiki.facepunch.com/gmod/DHTMLControls:StartedLoading
27
30
  */
28
31
  StartedLoading(self: DHTMLControls): void;
32
+
29
33
  /**
30
34
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
35
  *
@@ -36,6 +40,7 @@ interface DHTMLControls extends Panel {
36
40
  * @source https://wiki.facepunch.com/gmod/DHTMLControls:UpdateHistory
37
41
  */
38
42
  UpdateHistory(self: DHTMLControls, url: string): void;
43
+
39
44
  /**
40
45
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
46
  *
@@ -44,9 +49,3 @@ interface DHTMLControls extends Panel {
44
49
  */
45
50
  UpdateNavButtonStatus(self: DHTMLControls): void;
46
51
  }
47
-
48
-
49
-
50
-
51
-
52
-
@@ -18,30 +18,35 @@ interface DIconBrowser extends DScrollPanel {
18
18
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:Fill
19
19
  */
20
20
  Fill(self: DIconBrowser): void;
21
+
21
22
  /**
22
23
  * A simple unused search feature, hides all icons that do not contain given text in their file path.
23
24
  * @realm client and menu
24
25
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:FilterByText
25
26
  */
26
27
  FilterByText(self: DIconBrowser, text: string): void;
28
+
27
29
  /**
28
30
  * Returns whether or not the browser should fill itself with icons.
29
31
  * @realm client and menu
30
32
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:GetManual
31
33
  */
32
34
  GetManual(self: DIconBrowser): boolean;
35
+
33
36
  /**
34
37
  * Returns the currently selected icon's file path.
35
38
  * @realm client and menu
36
39
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon
37
40
  */
38
41
  GetSelectedIcon(self: DIconBrowser): string;
42
+
39
43
  /**
40
44
  * Called when the selected icon was changed. Use [DIconBrowser:GetSelectedIcon](https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon) to get the selected icon's filepath.
41
45
  * @realm client and menu
42
46
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChange
43
47
  */
44
48
  OnChange(self: DIconBrowser): void;
49
+
45
50
  /**
46
51
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
47
52
  *
@@ -52,24 +57,28 @@ interface DIconBrowser extends DScrollPanel {
52
57
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChangeInternal
53
58
  */
54
59
  OnChangeInternal(self: DIconBrowser): void;
60
+
55
61
  /**
56
62
  * Scrolls the browser to the selected icon
57
63
  * @realm client and menu
58
64
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:ScrollToSelected
59
65
  */
60
66
  ScrollToSelected(self: DIconBrowser): void;
67
+
61
68
  /**
62
69
  * Selects an icon from file path
63
70
  * @realm client and menu
64
71
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:SelectIcon
65
72
  */
66
73
  SelectIcon(self: DIconBrowser, icon: string): void;
74
+
67
75
  /**
68
76
  * Sets whether or not the browser should automatically fill itself with icons.
69
77
  * @realm client and menu
70
78
  * @source https://wiki.facepunch.com/gmod/DIconBrowser:SetManual
71
79
  */
72
80
  SetManual(self: DIconBrowser, manual: boolean): void;
81
+
73
82
  /**
74
83
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
84
  *
@@ -81,14 +90,3 @@ interface DIconBrowser extends DScrollPanel {
81
90
  */
82
91
  SetSelectedIcon(self: DIconBrowser, str: string): void;
83
92
  }
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
@@ -17,36 +17,42 @@ interface DIconLayout extends DDragBase {
17
17
  * @source https://wiki.facepunch.com/gmod/DIconLayout:Copy
18
18
  */
19
19
  Copy(self: DIconLayout): Panel;
20
+
20
21
  /**
21
22
  * Copies the contents (Child elements) of another [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) to itself.
22
23
  * @realm client and menu
23
24
  * @source https://wiki.facepunch.com/gmod/DIconLayout:CopyContents
24
25
  */
25
26
  CopyContents(self: DIconLayout, from: Panel): void;
27
+
26
28
  /**
27
29
  * Returns the size of the border.
28
30
  * @realm client and menu
29
31
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetBorder
30
32
  */
31
33
  GetBorder(self: DIconLayout): number;
34
+
32
35
  /**
33
36
  * Returns the direction that it will be layed out, using the DOCK enumerations.
34
37
  * @realm client and menu
35
38
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetLayoutDir
36
39
  */
37
40
  GetLayoutDir(self: DIconLayout): number;
41
+
38
42
  /**
39
43
  * Returns the distance between two 'icons' on the X axis.
40
44
  * @realm client and menu
41
45
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceX
42
46
  */
43
47
  GetSpaceX(self: DIconLayout): number;
48
+
44
49
  /**
45
50
  * Returns distance between two "Icons" on the Y axis.
46
51
  * @realm client and menu
47
52
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceY
48
53
  */
49
54
  GetSpaceY(self: DIconLayout): number;
55
+
50
56
  /**
51
57
  * Returns whether the icon layout will stretch its height to fit all the children.
52
58
  *
@@ -56,6 +62,7 @@ interface DIconLayout extends DDragBase {
56
62
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchHeight
57
63
  */
58
64
  GetStretchHeight(self: DIconLayout): boolean;
65
+
59
66
  /**
60
67
  * Returns whether the icon layout will stretch its width to fit all the children.
61
68
  *
@@ -65,12 +72,14 @@ interface DIconLayout extends DDragBase {
65
72
  * @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchWidth
66
73
  */
67
74
  GetStretchWidth(self: DIconLayout): boolean;
75
+
68
76
  /**
69
77
  * Resets layout vars before calling [Panel:InvalidateLayout](https://wiki.facepunch.com/gmod/Panel:InvalidateLayout). This is called when children are added or removed, and must be called when the spacing, border or layout direction is changed.
70
78
  * @realm client and menu
71
79
  * @source https://wiki.facepunch.com/gmod/DIconLayout:Layout
72
80
  */
73
81
  Layout(self: DIconLayout): void;
82
+
74
83
  /**
75
84
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
76
85
  *
@@ -81,6 +90,7 @@ interface DIconLayout extends DDragBase {
81
90
  * @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_LEFT
82
91
  */
83
92
  LayoutIcons_LEFT(self: DIconLayout): void;
93
+
84
94
  /**
85
95
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
86
96
  *
@@ -91,12 +101,14 @@ interface DIconLayout extends DDragBase {
91
101
  * @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_TOP
92
102
  */
93
103
  LayoutIcons_TOP(self: DIconLayout): void;
104
+
94
105
  /**
95
106
  * Sets the internal border (padding) within the DIconLayout. This will not change its size, only the positioning of children. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
96
107
  * @realm client and menu
97
108
  * @source https://wiki.facepunch.com/gmod/DIconLayout:SetBorder
98
109
  */
99
110
  SetBorder(self: DIconLayout, width: number): void;
111
+
100
112
  /**
101
113
  * Sets the direction that it will be layed out, using the [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK).
102
114
  *
@@ -106,18 +118,21 @@ interface DIconLayout extends DDragBase {
106
118
  * @source https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir
107
119
  */
108
120
  SetLayoutDir(self: DIconLayout, direction: number): void;
121
+
109
122
  /**
110
123
  * Sets the horizontal (x) spacing between children within the DIconLayout. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
111
124
  * @realm client and menu
112
125
  * @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceX
113
126
  */
114
127
  SetSpaceX(self: DIconLayout, xSpacing: number): void;
128
+
115
129
  /**
116
130
  * Sets the vertical (y) spacing between children within the DIconLayout. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
117
131
  * @realm client and menu
118
132
  * @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceY
119
133
  */
120
134
  SetSpaceY(self: DIconLayout, ySpacing: number): void;
135
+
121
136
  /**
122
137
  * If set to true, the icon layout will stretch its height to fit all the children.
123
138
  *
@@ -127,6 +142,7 @@ interface DIconLayout extends DDragBase {
127
142
  * @source https://wiki.facepunch.com/gmod/DIconLayout:SetStretchHeight
128
143
  */
129
144
  SetStretchHeight(self: DIconLayout, do_stretch: boolean): void;
145
+
130
146
  /**
131
147
  * If set to true, the icon layout will stretch its width to fit all the children.
132
148
  *
@@ -137,21 +153,3 @@ interface DIconLayout extends DDragBase {
137
153
  */
138
154
  SetStretchWidth(self: DIconLayout, stretchW: boolean): void;
139
155
  }
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
@@ -19,6 +19,7 @@ interface DImage extends DPanel {
19
19
  * @source https://wiki.facepunch.com/gmod/DImage:DoLoadMaterial
20
20
  */
21
21
  DoLoadMaterial(self: DImage): void;
22
+
22
23
  /**
23
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
24
25
  *
@@ -31,6 +32,7 @@ interface DImage extends DPanel {
31
32
  * @source https://wiki.facepunch.com/gmod/DImage:FixVertexLitMaterial
32
33
  */
33
34
  FixVertexLitMaterial(self: DImage): void;
35
+
34
36
  /**
35
37
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
36
38
  *
@@ -41,18 +43,21 @@ interface DImage extends DPanel {
41
43
  * @source https://wiki.facepunch.com/gmod/DImage:GetFailsafeMatName
42
44
  */
43
45
  GetFailsafeMatName(self: DImage): string;
46
+
44
47
  /**
45
48
  * Returns the image loaded in the image panel.
46
49
  * @realm client and menu
47
50
  * @source https://wiki.facepunch.com/gmod/DImage:GetImage
48
51
  */
49
52
  GetImage(self: DImage): string;
53
+
50
54
  /**
51
55
  * Returns the color override of the image panel.
52
56
  * @realm client and menu
53
57
  * @source https://wiki.facepunch.com/gmod/DImage:GetImageColor
54
58
  */
55
59
  GetImageColor(self: DImage): Color;
60
+
56
61
  /**
57
62
  * Returns whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
58
63
  *
@@ -62,6 +67,7 @@ interface DImage extends DPanel {
62
67
  * @source https://wiki.facepunch.com/gmod/DImage:GetKeepAspect
63
68
  */
64
69
  GetKeepAspect(self: DImage): boolean;
70
+
65
71
  /**
66
72
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
73
  *
@@ -72,12 +78,14 @@ interface DImage extends DPanel {
72
78
  * @source https://wiki.facepunch.com/gmod/DImage:GetMatName
73
79
  */
74
80
  GetMatName(self: DImage): string;
81
+
75
82
  /**
76
83
  * Returns the current [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) of the [DImage](https://wiki.facepunch.com/gmod/DImage).
77
84
  * @realm client and menu
78
85
  * @source https://wiki.facepunch.com/gmod/DImage:GetMaterial
79
86
  */
80
87
  GetMaterial(self: DImage): IMaterial;
88
+
81
89
  /**
82
90
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
83
91
  *
@@ -90,6 +98,7 @@ interface DImage extends DPanel {
90
98
  * @source https://wiki.facepunch.com/gmod/DImage:LoadMaterial
91
99
  */
92
100
  LoadMaterial(self: DImage): void;
101
+
93
102
  /**
94
103
  * Paints a ghost copy of the DImage panel at the given position and
95
104
  * dimensions. This function overrides Panel:PaintAt.
@@ -98,6 +107,7 @@ interface DImage extends DPanel {
98
107
  * @source https://wiki.facepunch.com/gmod/DImage:PaintAt
99
108
  */
100
109
  PaintAt(self: DImage, posX: number, posY: number, width?: number, height?: number): void;
110
+
101
111
  /**
102
112
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
103
113
  *
@@ -108,6 +118,7 @@ interface DImage extends DPanel {
108
118
  * @source https://wiki.facepunch.com/gmod/DImage:SetFailsafeMatName
109
119
  */
110
120
  SetFailsafeMatName(self: DImage, backupMat: string): void;
121
+
111
122
  /**
112
123
  * Sets the image to load into the frame. If the first image can't be loaded and `strBackup` is set, that image will be loaded instead.
113
124
  *
@@ -117,12 +128,14 @@ interface DImage extends DPanel {
117
128
  * @source https://wiki.facepunch.com/gmod/DImage:SetImage
118
129
  */
119
130
  SetImage(self: DImage, strImage: string, strBackup?: string): void;
131
+
120
132
  /**
121
133
  * Sets the image's color override.
122
134
  * @realm client and menu
123
135
  * @source https://wiki.facepunch.com/gmod/DImage:SetImageColor
124
136
  */
125
137
  SetImageColor(self: DImage, col: Color): void;
138
+
126
139
  /**
127
140
  * Sets whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
128
141
  *
@@ -132,6 +145,7 @@ interface DImage extends DPanel {
132
145
  * @source https://wiki.facepunch.com/gmod/DImage:SetKeepAspect
133
146
  */
134
147
  SetKeepAspect(self: DImage, keep: boolean): void;
148
+
135
149
  /**
136
150
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
137
151
  *
@@ -142,12 +156,14 @@ interface DImage extends DPanel {
142
156
  * @source https://wiki.facepunch.com/gmod/DImage:SetMatName
143
157
  */
144
158
  SetMatName(self: DImage, mat: string): void;
159
+
145
160
  /**
146
161
  * Sets a [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) directly as an image.
147
162
  * @realm client and menu
148
163
  * @source https://wiki.facepunch.com/gmod/DImage:SetMaterial
149
164
  */
150
165
  SetMaterial(self: DImage, mat: IMaterial): void;
166
+
151
167
  /**
152
168
  * Similar to [DImage:SetImage](https://wiki.facepunch.com/gmod/DImage:SetImage), but will only do the expensive part of actually loading the textures/material if the material is about to be rendered/viewed.
153
169
  *
@@ -157,6 +173,7 @@ interface DImage extends DPanel {
157
173
  * @source https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial
158
174
  */
159
175
  SetOnViewMaterial(self: DImage, mat: string, backupMat: string): void;
176
+
160
177
  /**
161
178
  * Returns true if the image is **not** yet loaded.
162
179
  * @realm client and menu
@@ -164,23 +181,3 @@ interface DImage extends DPanel {
164
181
  */
165
182
  Unloaded(self: DImage): boolean;
166
183
  }
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
@@ -3,6 +3,7 @@
3
3
  interface DImageButton extends DButton {
4
4
  /** The internal DImage panel used to render the image. */
5
5
  m_Image: DImage;
6
+
6
7
  /**
7
8
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
8
9
  *
@@ -13,6 +14,7 @@ interface DImageButton extends DButton {
13
14
  * @source https://wiki.facepunch.com/gmod/DImageButton:DepressImage
14
15
  */
15
16
  DepressImage(self: DImageButton): void;
17
+
16
18
  /**
17
19
  * Returns whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
18
20
  *
@@ -20,12 +22,14 @@ interface DImageButton extends DButton {
20
22
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetDepressImage
21
23
  */
22
24
  GetDepressImage(self: DImageButton): boolean;
25
+
23
26
  /**
24
27
  * Returns the "image" of the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton). Equivalent of [DImage:GetImage](https://wiki.facepunch.com/gmod/DImage:GetImage).
25
28
  * @realm client and menu
26
29
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetImage
27
30
  */
28
31
  GetImage(self: DImageButton): string;
32
+
29
33
  /**
30
34
  * Returns whether the image inside the button should be stretched to fit it or not
31
35
  *
@@ -35,6 +39,7 @@ interface DImageButton extends DButton {
35
39
  * @source https://wiki.facepunch.com/gmod/DImageButton:GetStretchToFit
36
40
  */
37
41
  GetStretchToFit(self: DImageButton): boolean;
42
+
38
43
  /**
39
44
  * Controls whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
40
45
  *
@@ -42,12 +47,14 @@ interface DImageButton extends DButton {
42
47
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetDepressImage
43
48
  */
44
49
  SetDepressImage(self: DImageButton, enable: boolean): void;
50
+
45
51
  /**
46
52
  * Hides or shows the image of the image button. Internally this calls [Panel:SetVisible](https://wiki.facepunch.com/gmod/Panel:SetVisible) on the internal [DImage](https://wiki.facepunch.com/gmod/DImage).
47
53
  * @realm client and menu
48
54
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetImageVisible
49
55
  */
50
56
  SetImageVisible(self: DImageButton, visible: boolean): void;
57
+
51
58
  /**
52
59
  * Sets whether the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should keep the aspect ratio of its image. Equivalent of [DImage:SetKeepAspect](https://wiki.facepunch.com/gmod/DImage:SetKeepAspect).
53
60
  *
@@ -57,12 +64,14 @@ interface DImageButton extends DButton {
57
64
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetKeepAspect
58
65
  */
59
66
  SetKeepAspect(self: DImageButton, keep: boolean): void;
67
+
60
68
  /**
61
69
  * See [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial)
62
70
  * @realm client and menu
63
71
  * @source https://wiki.facepunch.com/gmod/DImageButton:SetOnViewMaterial
64
72
  */
65
73
  SetOnViewMaterial(self: DImageButton, mat: string, backup: string): void;
74
+
66
75
  /**
67
76
  * Sets whether the image inside the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should be stretched to fill the entire size of the button, without preserving aspect ratio.
68
77
  *
@@ -73,13 +82,3 @@ interface DImageButton extends DButton {
73
82
  */
74
83
  SetStretchToFit(self: DImageButton, stretch: boolean): void;
75
84
  }
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
@@ -6,4 +6,3 @@
6
6
  * @source https://wiki.facepunch.com/gmod/DKillIcon
7
7
  */
8
8
  interface DKillIcon extends Panel {}
9
-