@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
@@ -16,12 +16,14 @@ interface DForm extends DCollapsibleCategory {
16
16
  * @source https://wiki.facepunch.com/gmod/DForm:AddItem
17
17
  */
18
18
  AddItem(self: DForm, left: Panel, right?: Panel): void;
19
+
19
20
  /**
20
21
  * Adds a [DButton](https://wiki.facepunch.com/gmod/DButton) onto the [DForm](https://wiki.facepunch.com/gmod/DForm)
21
22
  * @realm client and menu
22
23
  * @source https://wiki.facepunch.com/gmod/DForm:Button
23
24
  */
24
25
  Button(self: DForm, text: string, concommand?: string, ...: any): DButton;
26
+
25
27
  /**
26
28
  * Adds a [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel) onto the [DForm](https://wiki.facepunch.com/gmod/DForm).
27
29
  * **NOTE**: This will run [DCheckBoxLabel:OnChange](https://wiki.facepunch.com/gmod/DCheckBoxLabel:OnChange) when being added. This is caused by [Panel:SetConVar](https://wiki.facepunch.com/gmod/Panel:SetConVar) being used when this function is used. To avoid this, use [DForm:AddItem](https://wiki.facepunch.com/gmod/DForm:AddItem) with a [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
@@ -30,18 +32,21 @@ interface DForm extends DCollapsibleCategory {
30
32
  * @source https://wiki.facepunch.com/gmod/DForm:CheckBox
31
33
  */
32
34
  CheckBox(self: DForm, label: string, convar: string): DCheckBoxLabel;
35
+
33
36
  /**
34
37
  * Adds a [DComboBox](https://wiki.facepunch.com/gmod/DComboBox) onto the [DForm](https://wiki.facepunch.com/gmod/DForm)
35
38
  * @realm client and menu
36
39
  * @source https://wiki.facepunch.com/gmod/DForm:ComboBox
37
40
  */
38
41
  ComboBox(self: DForm, title: string, convar: string): (DComboBox, DLabel);
42
+
39
43
  /**
40
44
  * Adds a [DLabel](https://wiki.facepunch.com/gmod/DLabel) onto the [DForm](https://wiki.facepunch.com/gmod/DForm). Unlike [DForm:Help](https://wiki.facepunch.com/gmod/DForm:Help), this is indented and is colored blue, depending on the derma skin.
41
45
  * @realm client and menu
42
46
  * @source https://wiki.facepunch.com/gmod/DForm:ControlHelp
43
47
  */
44
48
  ControlHelp(self: DForm, help: string): DLabel;
49
+
45
50
  /**
46
51
  * An Accessor Function in DForm that does nothing.
47
52
  *
@@ -49,6 +54,7 @@ interface DForm extends DCollapsibleCategory {
49
54
  * @source https://wiki.facepunch.com/gmod/DForm:GetAutoSize
50
55
  */
51
56
  GetAutoSize(self: DForm): boolean;
57
+
52
58
  /**
53
59
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does nothing.
54
60
  *
@@ -56,12 +62,14 @@ interface DForm extends DCollapsibleCategory {
56
62
  * @source https://wiki.facepunch.com/gmod/DForm:GetSpacing
57
63
  */
58
64
  GetSpacing(self: DForm): number;
65
+
59
66
  /**
60
67
  * Adds a [DLabel](https://wiki.facepunch.com/gmod/DLabel) onto the [DForm](https://wiki.facepunch.com/gmod/DForm) as a helper
61
68
  * @realm client and menu
62
69
  * @source https://wiki.facepunch.com/gmod/DForm:Help
63
70
  */
64
71
  Help(self: DForm, help: string): DLabel;
72
+
65
73
  /**
66
74
  * Adds a [DListBox](https://wiki.facepunch.com/gmod/DListBox) onto the [DForm](https://wiki.facepunch.com/gmod/DForm)
67
75
  *
@@ -70,18 +78,21 @@ interface DForm extends DCollapsibleCategory {
70
78
  * @deprecated Use DListView with DForm:AddItem instead.
71
79
  */
72
80
  ListBox(self: DForm, label?: string): (DListBox, DLabel);
81
+
73
82
  /**
74
83
  * Adds a [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider) onto the [DForm](https://wiki.facepunch.com/gmod/DForm)
75
84
  * @realm client and menu
76
85
  * @source https://wiki.facepunch.com/gmod/DForm:NumSlider
77
86
  */
78
87
  NumSlider(self: DForm, label: string, convar: string, min: number, max: number, decimals?: number): DNumSlider;
88
+
79
89
  /**
80
90
  * Adds a [DNumberWang](https://wiki.facepunch.com/gmod/DNumberWang) onto the [DForm](https://wiki.facepunch.com/gmod/DForm)
81
91
  * @realm client and menu
82
92
  * @source https://wiki.facepunch.com/gmod/DForm:NumberWang
83
93
  */
84
94
  NumberWang(self: DForm, label: string, convar: string, min: number, max: number, decimals?: number): (DNumberWang, DLabel);
95
+
85
96
  /**
86
97
  * Creates a [DPanelSelect](https://wiki.facepunch.com/gmod/DPanelSelect) and docks it to the top of the DForm.
87
98
  * @realm client and menu
@@ -89,12 +100,14 @@ interface DForm extends DCollapsibleCategory {
89
100
  * @deprecated This is derived from the deprecated DPanelSelect.
90
101
  */
91
102
  PanelSelect(self: DForm): DPanelSelect;
103
+
92
104
  /**
93
105
  * Creates a [PropSelect](https://wiki.facepunch.com/gmod/PropSelect) panel and docks it to the top of the DForm.
94
106
  * @realm client and menu
95
107
  * @source https://wiki.facepunch.com/gmod/DForm:PropSelect
96
108
  */
97
109
  PropSelect(self: DForm, label: string, convar: string, models: table, height?: number): PropSelect;
110
+
98
111
  /**
99
112
  * Does nothing.
100
113
  *
@@ -102,6 +115,7 @@ interface DForm extends DCollapsibleCategory {
102
115
  * @source https://wiki.facepunch.com/gmod/DForm:Rebuild
103
116
  */
104
117
  Rebuild(self: DForm): void;
118
+
105
119
  /**
106
120
  * an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does nothing
107
121
  *
@@ -109,6 +123,7 @@ interface DForm extends DCollapsibleCategory {
109
123
  * @source https://wiki.facepunch.com/gmod/DForm:SetAutoSize
110
124
  */
111
125
  SetAutoSize(self: DForm, arg0: boolean): void;
126
+
112
127
  /**
113
128
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does nothing.
114
129
  *
@@ -116,6 +131,7 @@ interface DForm extends DCollapsibleCategory {
116
131
  * @source https://wiki.facepunch.com/gmod/DForm:SetSpacing
117
132
  */
118
133
  SetSpacing(self: DForm, arg0: number): void;
134
+
119
135
  /**
120
136
  * Adds a [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) to a [DForm](https://wiki.facepunch.com/gmod/DForm)
121
137
  * @realm client and menu
@@ -123,21 +139,3 @@ interface DForm extends DCollapsibleCategory {
123
139
  */
124
140
  TextEntry(self: DForm, label: string, convar: string): (DTextEntry, DLabel);
125
141
  }
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
@@ -15,6 +15,7 @@ interface DFrame extends EditablePanel {
15
15
  lblTitle: DLabel;
16
16
  /** The icon image in the title bar, if set via DFrame:SetIcon. */
17
17
  imgIcon?: DImage;
18
+
18
19
  /**
19
20
  * Hides or removes the DFrame, and calls [DFrame:OnClose](https://wiki.facepunch.com/gmod/DFrame:OnClose).
20
21
  *
@@ -24,30 +25,35 @@ interface DFrame extends EditablePanel {
24
25
  * @source https://wiki.facepunch.com/gmod/DFrame:Close
25
26
  */
26
27
  Close(self: DFrame): void;
28
+
27
29
  /**
28
30
  * Gets whether the background behind the frame is being blurred.
29
31
  * @realm client and menu
30
32
  * @source https://wiki.facepunch.com/gmod/DFrame:GetBackgroundBlur
31
33
  */
32
34
  GetBackgroundBlur(self: DFrame): boolean;
35
+
33
36
  /**
34
37
  * Determines whether or not the DFrame will be removed when it is closed. This is set with [DFrame:SetDeleteOnClose](https://wiki.facepunch.com/gmod/DFrame:SetDeleteOnClose).
35
38
  * @realm client and menu
36
39
  * @source https://wiki.facepunch.com/gmod/DFrame:GetDeleteOnClose
37
40
  */
38
41
  GetDeleteOnClose(self: DFrame): boolean;
42
+
39
43
  /**
40
44
  * Gets whether or not the frame is draggable by the user.
41
45
  * @realm client and menu
42
46
  * @source https://wiki.facepunch.com/gmod/DFrame:GetDraggable
43
47
  */
44
48
  GetDraggable(self: DFrame): boolean;
49
+
45
50
  /**
46
51
  * Gets whether or not the frame is part of a derma menu. This is set with [DFrame:SetIsMenu](https://wiki.facepunch.com/gmod/DFrame:SetIsMenu).
47
52
  * @realm client and menu
48
53
  * @source https://wiki.facepunch.com/gmod/DFrame:GetIsMenu
49
54
  */
50
55
  GetIsMenu(self: DFrame): boolean;
56
+
51
57
  /**
52
58
  * Gets the minimum height the DFrame can be resized to by the user.
53
59
  *
@@ -57,6 +63,7 @@ interface DFrame extends EditablePanel {
57
63
  * @source https://wiki.facepunch.com/gmod/DFrame:GetMinHeight
58
64
  */
59
65
  GetMinHeight(self: DFrame): number;
66
+
60
67
  /**
61
68
  * Gets the minimum width the DFrame can be resized to by the user.
62
69
  *
@@ -66,18 +73,21 @@ interface DFrame extends EditablePanel {
66
73
  * @source https://wiki.facepunch.com/gmod/DFrame:GetMinWidth
67
74
  */
68
75
  GetMinWidth(self: DFrame): number;
76
+
69
77
  /**
70
78
  * Gets whether or not the shadow effect bordering the DFrame is being drawn.
71
79
  * @realm client and menu
72
80
  * @source https://wiki.facepunch.com/gmod/DFrame:GetPaintShadow
73
81
  */
74
82
  GetPaintShadow(self: DFrame): boolean;
83
+
75
84
  /**
76
85
  * Gets whether or not the DFrame is restricted to the boundaries of the screen resolution.
77
86
  * @realm client and menu
78
87
  * @source https://wiki.facepunch.com/gmod/DFrame:GetScreenLock
79
88
  */
80
89
  GetScreenLock(self: DFrame): boolean;
90
+
81
91
  /**
82
92
  * Gets whether or not the DFrame can be resized by the user.
83
93
  *
@@ -87,42 +97,49 @@ interface DFrame extends EditablePanel {
87
97
  * @source https://wiki.facepunch.com/gmod/DFrame:GetSizable
88
98
  */
89
99
  GetSizable(self: DFrame): boolean;
100
+
90
101
  /**
91
102
  * Returns the title of the frame.
92
103
  * @realm client and menu
93
104
  * @source https://wiki.facepunch.com/gmod/DFrame:GetTitle
94
105
  */
95
106
  GetTitle(self: DFrame): string;
107
+
96
108
  /**
97
109
  * Determines if the frame or one of its children has the screen focus.
98
110
  * @realm client and menu
99
111
  * @source https://wiki.facepunch.com/gmod/DFrame:IsActive
100
112
  */
101
113
  IsActive(self: DFrame): boolean;
114
+
102
115
  /**
103
116
  * Indicate that the background elements won't be usable.
104
117
  * @realm client and menu
105
118
  * @source https://wiki.facepunch.com/gmod/DFrame:SetBackgroundBlur
106
119
  */
107
120
  SetBackgroundBlur(self: DFrame, blur: boolean): void;
121
+
108
122
  /**
109
123
  * Determines whether or not the DFrame is removed when it is closed with [DFrame:Close](https://wiki.facepunch.com/gmod/DFrame:Close).
110
124
  * @realm client and menu
111
125
  * @source https://wiki.facepunch.com/gmod/DFrame:SetDeleteOnClose
112
126
  */
113
127
  SetDeleteOnClose(self: DFrame, shouldDelete: boolean): void;
128
+
114
129
  /**
115
130
  * Sets whether the frame should be draggable by the user. The DFrame can only be dragged from its title bar.
116
131
  * @realm client and menu
117
132
  * @source https://wiki.facepunch.com/gmod/DFrame:SetDraggable
118
133
  */
119
134
  SetDraggable(self: DFrame, draggable: boolean): void;
135
+
120
136
  /**
121
137
  * Adds or removes an icon on the left of the [DFrame](https://wiki.facepunch.com/gmod/DFrame)'s title.
122
138
  * @realm client and menu
123
139
  * @source https://wiki.facepunch.com/gmod/DFrame:SetIcon
124
140
  */
125
141
  SetIcon(self: DFrame, path: string): void;
142
+
126
143
  /**
127
144
  * Sets whether the frame is part of a derma menu or not.
128
145
  *
@@ -132,6 +149,7 @@ interface DFrame extends EditablePanel {
132
149
  * @source https://wiki.facepunch.com/gmod/DFrame:SetIsMenu
133
150
  */
134
151
  SetIsMenu(self: DFrame, isMenu: boolean): void;
152
+
135
153
  /**
136
154
  * Sets the minimum height the DFrame can be resized to by the user.
137
155
  *
@@ -141,6 +159,7 @@ interface DFrame extends EditablePanel {
141
159
  * @source https://wiki.facepunch.com/gmod/DFrame:SetMinHeight
142
160
  */
143
161
  SetMinHeight(self: DFrame, minH: number): void;
162
+
144
163
  /**
145
164
  * Sets the minimum width the DFrame can be resized to by the user.
146
165
  *
@@ -150,18 +169,21 @@ interface DFrame extends EditablePanel {
150
169
  * @source https://wiki.facepunch.com/gmod/DFrame:SetMinWidth
151
170
  */
152
171
  SetMinWidth(self: DFrame, minW: number): void;
172
+
153
173
  /**
154
174
  * Sets whether or not the shadow effect bordering the DFrame should be drawn.
155
175
  * @realm client and menu
156
176
  * @source https://wiki.facepunch.com/gmod/DFrame:SetPaintShadow
157
177
  */
158
178
  SetPaintShadow(self: DFrame, shouldPaint: boolean): void;
179
+
159
180
  /**
160
181
  * Sets whether the DFrame is restricted to the boundaries of the screen resolution.
161
182
  * @realm client and menu
162
183
  * @source https://wiki.facepunch.com/gmod/DFrame:SetScreenLock
163
184
  */
164
185
  SetScreenLock(self: DFrame, lock: boolean): void;
186
+
165
187
  /**
166
188
  * Sets whether or not the [DFrame](https://wiki.facepunch.com/gmod/DFrame) can be resized by the user.
167
189
  *
@@ -173,12 +195,14 @@ interface DFrame extends EditablePanel {
173
195
  * @source https://wiki.facepunch.com/gmod/DFrame:SetSizable
174
196
  */
175
197
  SetSizable(self: DFrame, sizeable: boolean): void;
198
+
176
199
  /**
177
200
  * Sets the title of the frame.
178
201
  * @realm client and menu
179
202
  * @source https://wiki.facepunch.com/gmod/DFrame:SetTitle
180
203
  */
181
204
  SetTitle(self: DFrame, title: string): void;
205
+
182
206
  /**
183
207
  * Determines whether the DFrame's control box (close, minimise and maximise buttons) is displayed.
184
208
  * @realm client and menu
@@ -186,28 +210,3 @@ interface DFrame extends EditablePanel {
186
210
  */
187
211
  ShowCloseButton(self: DFrame, show: boolean): void;
188
212
  }
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
@@ -17,36 +17,42 @@ interface DGrid extends Panel {
17
17
  * @source https://wiki.facepunch.com/gmod/DGrid:AddItem
18
18
  */
19
19
  AddItem(self: DGrid, item: Panel): void;
20
+
20
21
  /**
21
22
  * Returns the width of each column of the [DGrid](https://wiki.facepunch.com/gmod/DGrid), which is set by [DGrid:SetColWide](https://wiki.facepunch.com/gmod/DGrid:SetColWide).
22
23
  * @realm client and menu
23
24
  * @source https://wiki.facepunch.com/gmod/DGrid:GetColWide
24
25
  */
25
26
  GetColWide(self: DGrid): number;
27
+
26
28
  /**
27
29
  * Returns the number of columns of this [DGrid](https://wiki.facepunch.com/gmod/DGrid). Set by [DGrid:SetCols](https://wiki.facepunch.com/gmod/DGrid:SetCols).
28
30
  * @realm client and menu
29
31
  * @source https://wiki.facepunch.com/gmod/DGrid:GetCols
30
32
  */
31
33
  GetCols(self: DGrid): number;
34
+
32
35
  /**
33
36
  * Returns a list of panels in the grid.
34
37
  * @realm client and menu
35
38
  * @source https://wiki.facepunch.com/gmod/DGrid:GetItems
36
39
  */
37
40
  GetItems(self: DGrid): table;
41
+
38
42
  /**
39
43
  * Returns the height of each row of the [DGrid](https://wiki.facepunch.com/gmod/DGrid), which is set by [DGrid:SetRowHeight](https://wiki.facepunch.com/gmod/DGrid:SetRowHeight).
40
44
  * @realm client and menu
41
45
  * @source https://wiki.facepunch.com/gmod/DGrid:GetRowHeight
42
46
  */
43
47
  GetRowHeight(self: DGrid): number;
48
+
44
49
  /**
45
50
  * Removes given panel from the [DGrid:GetItems](https://wiki.facepunch.com/gmod/DGrid:GetItems).
46
51
  * @realm client and menu
47
52
  * @source https://wiki.facepunch.com/gmod/DGrid:RemoveItem
48
53
  */
49
54
  RemoveItem(self: DGrid, item: Panel, bDontDelete?: boolean): void;
55
+
50
56
  /**
51
57
  * Sets the width of each column.
52
58
  *
@@ -56,6 +62,7 @@ interface DGrid extends Panel {
56
62
  * @source https://wiki.facepunch.com/gmod/DGrid:SetColWide
57
63
  */
58
64
  SetColWide(self: DGrid, colWidth: number): void;
65
+
59
66
  /**
60
67
  * Sets the number of columns this panel should have.
61
68
  *
@@ -65,6 +72,7 @@ interface DGrid extends Panel {
65
72
  * @source https://wiki.facepunch.com/gmod/DGrid:SetCols
66
73
  */
67
74
  SetCols(self: DGrid, cols: number): void;
75
+
68
76
  /**
69
77
  * Sets the height of each row.
70
78
  *
@@ -74,6 +82,7 @@ interface DGrid extends Panel {
74
82
  * @source https://wiki.facepunch.com/gmod/DGrid:SetRowHeight
75
83
  */
76
84
  SetRowHeight(self: DGrid, rowHeight: number): void;
85
+
77
86
  /**
78
87
  * Sorts the items in the grid. Does not visually update the grid, use [Panel:InvalidateLayout](https://wiki.facepunch.com/gmod/Panel:InvalidateLayout) for that.
79
88
  * @realm client and menu
@@ -81,14 +90,3 @@ interface DGrid extends Panel {
81
90
  */
82
91
  SortByMember(self: DGrid, key: string, desc?: boolean): void;
83
92
  }
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
@@ -12,12 +12,14 @@ interface DHorizontalDivider extends DPanel {
12
12
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetDividerWidth
13
13
  */
14
14
  GetDividerWidth(self: DHorizontalDivider): number;
15
+
15
16
  /**
16
17
  * Returns whether or not the player is currently dragging the middle divider bar.
17
18
  * @realm client
18
19
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetDragging
19
20
  */
20
21
  GetDragging(self: DHorizontalDivider): boolean;
22
+
21
23
  /**
22
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
23
25
  *
@@ -28,48 +30,56 @@ interface DHorizontalDivider extends DPanel {
28
30
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetHoldPos
29
31
  */
30
32
  GetHoldPos(self: DHorizontalDivider): number;
33
+
31
34
  /**
32
35
  * Returns the left side content of the [DHorizontalDivider](https://wiki.facepunch.com/gmod/DHorizontalDivider)
33
36
  * @realm client
34
37
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetLeft
35
38
  */
36
39
  GetLeft(self: DHorizontalDivider): Panel;
40
+
37
41
  /**
38
42
  * Returns the minimum width of the left side, set by [DHorizontalDivider:SetLeftMin](https://wiki.facepunch.com/gmod/DHorizontalDivider:SetLeftMin).
39
43
  * @realm client
40
44
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetLeftMin
41
45
  */
42
46
  GetLeftMin(self: DHorizontalDivider): number;
47
+
43
48
  /**
44
49
  * Returns the current width of the left side, set by [DHorizontalDivider:SetLeftWidth](https://wiki.facepunch.com/gmod/DHorizontalDivider:SetLeftWidth) or by the user.
45
50
  * @realm client
46
51
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetLeftWidth
47
52
  */
48
53
  GetLeftWidth(self: DHorizontalDivider): number;
54
+
49
55
  /**
50
56
  * Returns the middle content, set by [DHorizontalDivider:SetMiddle](https://wiki.facepunch.com/gmod/DHorizontalDivider:SetMiddle).
51
57
  * @realm client
52
58
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetMiddle
53
59
  */
54
60
  GetMiddle(self: DHorizontalDivider): Panel;
61
+
55
62
  /**
56
63
  * Returns the right side content
57
64
  * @realm client
58
65
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetRight
59
66
  */
60
67
  GetRight(self: DHorizontalDivider): Panel;
68
+
61
69
  /**
62
70
  * Returns the minimum width of the right side, set by [DHorizontalDivider:SetRightMin](https://wiki.facepunch.com/gmod/DHorizontalDivider:SetRightMin).
63
71
  * @realm client
64
72
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:GetRightMin
65
73
  */
66
74
  GetRightMin(self: DHorizontalDivider): number;
75
+
67
76
  /**
68
77
  * Sets the width of the horizontal divider bar.
69
78
  * @realm client
70
79
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetDividerWidth
71
80
  */
72
81
  SetDividerWidth(self: DHorizontalDivider, width: number): void;
82
+
73
83
  /**
74
84
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
85
  *
@@ -80,6 +90,7 @@ interface DHorizontalDivider extends DPanel {
80
90
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetDragging
81
91
  */
82
92
  SetDragging(self: DHorizontalDivider, dragonot: boolean): void;
93
+
83
94
  /**
84
95
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
85
96
  *
@@ -90,18 +101,21 @@ interface DHorizontalDivider extends DPanel {
90
101
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetHoldPos
91
102
  */
92
103
  SetHoldPos(self: DHorizontalDivider, x: number): void;
104
+
93
105
  /**
94
106
  * Sets the left side content of the [DHorizontalDivider](https://wiki.facepunch.com/gmod/DHorizontalDivider).
95
107
  * @realm client
96
108
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetLeft
97
109
  */
98
110
  SetLeft(self: DHorizontalDivider, pnl: Panel): void;
111
+
99
112
  /**
100
113
  * Sets the minimum width of the left side
101
114
  * @realm client
102
115
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetLeftMin
103
116
  */
104
117
  SetLeftMin(self: DHorizontalDivider, minWidth: number): void;
118
+
105
119
  /**
106
120
  * Sets the current/starting width of the left side.
107
121
  *
@@ -111,24 +125,28 @@ interface DHorizontalDivider extends DPanel {
111
125
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetLeftWidth
112
126
  */
113
127
  SetLeftWidth(self: DHorizontalDivider, width: number): void;
128
+
114
129
  /**
115
130
  * Sets the middle content, over the draggable divider bar panel.
116
131
  * @realm client
117
132
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetMiddle
118
133
  */
119
134
  SetMiddle(self: DHorizontalDivider, middle: Panel): void;
135
+
120
136
  /**
121
137
  * Sets the right side content
122
138
  * @realm client
123
139
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetRight
124
140
  */
125
141
  SetRight(self: DHorizontalDivider, pnl: Panel): void;
142
+
126
143
  /**
127
144
  * Sets the minimum width of the right side
128
145
  * @realm client
129
146
  * @source https://wiki.facepunch.com/gmod/DHorizontalDivider:SetRightMin
130
147
  */
131
148
  SetRightMin(self: DHorizontalDivider, minWidth: number): void;
149
+
132
150
  /**
133
151
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
134
152
  * TODO Document me
@@ -137,23 +155,3 @@ interface DHorizontalDivider extends DPanel {
137
155
  */
138
156
  StartGrab(self: DHorizontalDivider): void;
139
157
  }
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
@@ -15,24 +15,28 @@ interface DHorizontalScroller extends Panel {
15
15
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:AddPanel
16
16
  */
17
17
  AddPanel(self: DHorizontalScroller, pnl: Panel): void;
18
+
18
19
  /**
19
20
  * Returns the internal canvas panel where the content of [DHorizontalScroller](https://wiki.facepunch.com/gmod/DHorizontalScroller) are placed on.
20
21
  * @realm client and menu
21
22
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:GetCanvas
22
23
  */
23
24
  GetCanvas(self: DHorizontalScroller): Panel;
25
+
24
26
  /**
25
27
  * Returns the overlap set by [DHorizontalScroller:SetOverlap](https://wiki.facepunch.com/gmod/DHorizontalScroller:SetOverlap).
26
28
  * @realm client and menu
27
29
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:GetOverlap
28
30
  */
29
31
  GetOverlap(self: DHorizontalScroller): number;
32
+
30
33
  /**
31
34
  * Returns whether this panel should show drop targets.
32
35
  * @realm client and menu
33
36
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:GetShowDropTargets
34
37
  */
35
38
  GetShowDropTargets(self: DHorizontalScroller): boolean;
39
+
36
40
  /**
37
41
  * Same as [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable).
38
42
  * TODO: Transclude or whatever to here?
@@ -41,30 +45,35 @@ interface DHorizontalScroller extends Panel {
41
45
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:MakeDroppable
42
46
  */
43
47
  MakeDroppable(self: DHorizontalScroller, name: string): void;
48
+
44
49
  /**
45
50
  * Scrolls the [DHorizontalScroller](https://wiki.facepunch.com/gmod/DHorizontalScroller) to given child panel.
46
51
  * @realm client and menu
47
52
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:ScrollToChild
48
53
  */
49
54
  ScrollToChild(self: DHorizontalScroller, target: Panel): void;
55
+
50
56
  /**
51
57
  * Controls the spacing between elements of the horizontal scroller.
52
58
  * @realm client and menu
53
59
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:SetOverlap
54
60
  */
55
61
  SetOverlap(self: DHorizontalScroller, overlap: number): void;
62
+
56
63
  /**
57
64
  * Sets the scroll amount, automatically clamping the value.
58
65
  * @realm client and menu
59
66
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:SetScroll
60
67
  */
61
68
  SetScroll(self: DHorizontalScroller, scroll: number): void;
69
+
62
70
  /**
63
71
  * Sets whether this panel should show drop targets.
64
72
  * @realm client and menu
65
73
  * @source https://wiki.facepunch.com/gmod/DHorizontalScroller:SetShowDropTargets
66
74
  */
67
75
  SetShowDropTargets(self: DHorizontalScroller, newState: boolean): void;
76
+
68
77
  /**
69
78
  * Same as [DDragBase:SetUseLiveDrag](https://wiki.facepunch.com/gmod/DDragBase:SetUseLiveDrag)
70
79
  * @realm client and menu
@@ -72,14 +81,3 @@ interface DHorizontalScroller extends Panel {
72
81
  */
73
82
  SetUseLiveDrag(self: DHorizontalScroller, newState: boolean): void;
74
83
  }
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-