@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
@@ -13,5 +13,3 @@ interface DBubbleContainer extends DPanel {
13
13
  */
14
14
  OpenForPos(self: DBubbleContainer, x: number, y: number, w: number, h: number): void;
15
15
  }
16
-
17
-
@@ -16,12 +16,14 @@ interface DButton extends DLabel {
16
16
  * @source https://wiki.facepunch.com/gmod/DButton:GetDrawBorder
17
17
  */
18
18
  GetDrawBorder(self: DButton): boolean;
19
+
19
20
  /**
20
21
  * Returns true if the DButton is currently depressed (a user is clicking on it).
21
22
  * @realm client and menu
22
23
  * @source https://wiki.facepunch.com/gmod/DButton:IsDown
23
24
  */
24
25
  IsDown(self: DButton): boolean;
26
+
25
27
  /**
26
28
  * Sets a console command to be called when the button is clicked.
27
29
  *
@@ -31,6 +33,7 @@ interface DButton extends DLabel {
31
33
  * @source https://wiki.facepunch.com/gmod/DButton:SetConsoleCommand
32
34
  */
33
35
  SetConsoleCommand(self: DButton, command: string, args?: string): void;
36
+
34
37
  /**
35
38
  * Does absolutely nothing at all. Default value is automatically set to true.
36
39
  *
@@ -38,12 +41,14 @@ interface DButton extends DLabel {
38
41
  * @source https://wiki.facepunch.com/gmod/DButton:SetDrawBorder
39
42
  */
40
43
  SetDrawBorder(self: DButton, draw: boolean): void;
44
+
41
45
  /**
42
46
  * Sets an image to be displayed as the button's background. Alias of [DButton:SetImage](https://wiki.facepunch.com/gmod/DButton:SetImage)
43
47
  * @realm client and menu
44
48
  * @source https://wiki.facepunch.com/gmod/DButton:SetIcon
45
49
  */
46
50
  SetIcon(self: DButton, img?: string): void;
51
+
47
52
  /**
48
53
  * Sets an image to be displayed as the button's background.
49
54
  *
@@ -55,6 +60,7 @@ interface DButton extends DLabel {
55
60
  * @source https://wiki.facepunch.com/gmod/DButton:SetImage
56
61
  */
57
62
  SetImage(self: DButton, img?: string): void;
63
+
58
64
  /**
59
65
  * Sets an image to be displayed as the button's background.
60
66
  *
@@ -65,11 +71,3 @@ interface DButton extends DLabel {
65
71
  */
66
72
  SetMaterial(self: DButton, img?: IMaterial): void;
67
73
  }
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/DCategoryHeader
11
11
  */
12
12
  interface DCategoryHeader extends DButton {}
13
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DCategoryList
9
9
  */
10
10
  interface DCategoryList extends DScrollPanel {}
11
-
@@ -13,18 +13,21 @@ interface DCheckBox extends DButton {
13
13
  * @source https://wiki.facepunch.com/gmod/DCheckBox:DoClick
14
14
  */
15
15
  DoClick(self: DCheckBox): void;
16
+
16
17
  /**
17
18
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the checked state of the checkbox.
18
19
  * @realm client and menu
19
20
  * @source https://wiki.facepunch.com/gmod/DCheckBox:GetChecked
20
21
  */
21
22
  GetChecked(self: DCheckBox): boolean;
23
+
22
24
  /**
23
25
  * Returns whether the state of the checkbox is being edited. This means whether the user is currently clicking (mouse-down) on the checkbox, and applies to both the left and right mouse buttons.
24
26
  * @realm client and menu
25
27
  * @source https://wiki.facepunch.com/gmod/DCheckBox:IsEditing
26
28
  */
27
29
  IsEditing(self: DCheckBox): boolean;
30
+
28
31
  /**
29
32
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the checked state of the checkbox. Does not call the checkbox's [DCheckBox:OnChange](https://wiki.facepunch.com/gmod/DCheckBox:OnChange) and [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged) methods, unlike [DCheckBox:SetValue](https://wiki.facepunch.com/gmod/DCheckBox:SetValue).
30
33
  * @realm client and menu
@@ -32,8 +35,3 @@ interface DCheckBox extends DButton {
32
35
  */
33
36
  SetChecked(self: DCheckBox, checked: boolean): void;
34
37
  }
35
-
36
-
37
-
38
-
39
-
@@ -3,18 +3,21 @@
3
3
  interface DCheckBoxLabel extends Panel {
4
4
  Button: DCheckBox;
5
5
  Label: DLabel;
6
+
6
7
  /**
7
8
  * Gets the checked state of the checkbox. This calls the checkbox's [DCheckBox:GetChecked](https://wiki.facepunch.com/gmod/DCheckBox:GetChecked) function.
8
9
  * @realm client and menu
9
10
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetChecked
10
11
  */
11
12
  GetChecked(self: DCheckBoxLabel): boolean;
13
+
12
14
  /**
13
15
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the indentation of the element on the X axis. See also [DCheckBoxLabel:SetIndent](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent)
14
16
  * @realm client and menu
15
17
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetIndent
16
18
  */
17
19
  GetIndent(self: DCheckBoxLabel): number;
20
+
18
21
  /**
19
22
  * Sets the color of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel)'s text to the bright text color defined in the skin.
20
23
  *
@@ -22,12 +25,14 @@ interface DCheckBoxLabel extends Panel {
22
25
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetBright
23
26
  */
24
27
  SetBright(self: DCheckBoxLabel, bright: boolean): void;
28
+
25
29
  /**
26
30
  * Sets the checked state of the checkbox. Does not call [DCheckBoxLabel:OnChange](https://wiki.facepunch.com/gmod/DCheckBoxLabel:OnChange) or [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged), unlike [DCheckBoxLabel:SetValue](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetValue).
27
31
  * @realm client and menu
28
32
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetChecked
29
33
  */
30
34
  SetChecked(self: DCheckBoxLabel, checked: boolean): void;
35
+
31
36
  /**
32
37
  * Sets the text of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel) to be dark colored in accordance with the currently active Derma skin.
33
38
  *
@@ -35,24 +40,28 @@ interface DCheckBoxLabel extends Panel {
35
40
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetDark
36
41
  */
37
42
  SetDark(self: DCheckBoxLabel, darkify: boolean): void;
43
+
38
44
  /**
39
45
  * Sets the font of the text part of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
40
46
  * @realm client and menu
41
47
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetFont
42
48
  */
43
49
  SetFont(self: DCheckBoxLabel, font: string): void;
50
+
44
51
  /**
45
52
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the indentation of the element on the X axis.
46
53
  * @realm client and menu
47
54
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent
48
55
  */
49
56
  SetIndent(self: DCheckBoxLabel, ident: number): void;
57
+
50
58
  /**
51
59
  * Sets the text color for the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
52
60
  * @realm client and menu
53
61
  * @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetTextColor
54
62
  */
55
63
  SetTextColor(self: DCheckBoxLabel, color: Color): void;
64
+
56
65
  /**
57
66
  * Toggles the checked state of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
58
67
  * @realm client and menu
@@ -60,13 +69,3 @@ interface DCheckBoxLabel extends Panel {
60
69
  */
61
70
  Toggle(self: DCheckBoxLabel): void;
62
71
  }
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
@@ -19,18 +19,21 @@ interface DCollapsibleCategory extends Panel {
19
19
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:AnimSlide
20
20
  */
21
21
  AnimSlide(self: DCollapsibleCategory, anim: table, delta: number, data: table): void;
22
+
22
23
  /**
23
24
  * Forces the category to open or collapse
24
25
  * @realm client and menu
25
26
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:DoExpansion
26
27
  */
27
28
  DoExpansion(self: DCollapsibleCategory, expand: boolean): void;
29
+
28
30
  /**
29
31
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the expand/collapse animation time set by [DCollapsibleCategory:SetAnimTime](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetAnimTime).
30
32
  * @realm client and menu
31
33
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetAnimTime
32
34
  */
33
35
  GetAnimTime(self: DCollapsibleCategory): number;
36
+
34
37
  /**
35
38
  * Returns whether or not the panel background is being drawn. Alias of [DCollapsibleCategory:GetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground).
36
39
  * @realm client and menu
@@ -38,12 +41,14 @@ interface DCollapsibleCategory extends Panel {
38
41
  * @deprecated You should use DCollapsibleCategory:GetPaintBackground instead.
39
42
  */
40
43
  GetDrawBackground(self: DCollapsibleCategory): boolean;
44
+
41
45
  /**
42
46
  * Returns whether the DCollapsibleCategory is expanded or not.
43
47
  * @realm client and menu
44
48
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetExpanded
45
49
  */
46
50
  GetExpanded(self: DCollapsibleCategory): boolean;
51
+
47
52
  /**
48
53
  * Returns the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
49
54
  *
@@ -53,6 +58,7 @@ interface DCollapsibleCategory extends Panel {
53
58
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetHeaderHeight
54
59
  */
55
60
  GetHeaderHeight(self: DCollapsibleCategory): number;
61
+
56
62
  /**
57
63
  * If set, the [DCategoryList](https://wiki.facepunch.com/gmod/DCategoryList) that created this panel.
58
64
  *
@@ -62,6 +68,7 @@ interface DCollapsibleCategory extends Panel {
62
68
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetList
63
69
  */
64
70
  GetList(self: DCollapsibleCategory): Panel;
71
+
65
72
  /**
66
73
  * Doesn't actually do anything.
67
74
  *
@@ -71,12 +78,14 @@ interface DCollapsibleCategory extends Panel {
71
78
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPadding
72
79
  */
73
80
  GetPadding(self: DCollapsibleCategory): number;
81
+
74
82
  /**
75
83
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns whether or not the background should be painted.
76
84
  * @realm client and menu
77
85
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground
78
86
  */
79
87
  GetPaintBackground(self: DCollapsibleCategory): boolean;
88
+
80
89
  /**
81
90
  * Returns whatever was set by [DCollapsibleCategory:SetStartHeight](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight)
82
91
  *
@@ -84,18 +93,21 @@ interface DCollapsibleCategory extends Panel {
84
93
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetStartHeight
85
94
  */
86
95
  GetStartHeight(self: DCollapsibleCategory): number;
96
+
87
97
  /**
88
98
  * Sets the time in seconds it takes to expand the DCollapsibleCategory
89
99
  * @realm client and menu
90
100
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetAnimTime
91
101
  */
92
102
  SetAnimTime(self: DCollapsibleCategory, time: number): void;
103
+
93
104
  /**
94
105
  * Sets the contents of the DCollapsibleCategory.
95
106
  * @realm client and menu
96
107
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetContents
97
108
  */
98
109
  SetContents(self: DCollapsibleCategory, pnl: Panel): void;
110
+
99
111
  /**
100
112
  * Sets whether or not to draw the panel background. Alias of [DCollapsibleCategory:SetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground).
101
113
  * @realm client and menu
@@ -103,6 +115,7 @@ interface DCollapsibleCategory extends Panel {
103
115
  * @deprecated You should use DCollapsibleCategory:SetPaintBackground instead.
104
116
  */
105
117
  SetDrawBackground(self: DCollapsibleCategory, draw: boolean): void;
118
+
106
119
  /**
107
120
  * Sets whether the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory) is expanded or not upon opening the container.
108
121
  *
@@ -112,6 +125,7 @@ interface DCollapsibleCategory extends Panel {
112
125
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetExpanded
113
126
  */
114
127
  SetExpanded(self: DCollapsibleCategory, expanded?: boolean): void;
128
+
115
129
  /**
116
130
  * Sets the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
117
131
  *
@@ -121,12 +135,14 @@ interface DCollapsibleCategory extends Panel {
121
135
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetHeaderHeight
122
136
  */
123
137
  SetHeaderHeight(self: DCollapsibleCategory, height: number): void;
138
+
124
139
  /**
125
140
  * Sets the name of the DCollapsibleCategory.
126
141
  * @realm client and menu
127
142
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetLabel
128
143
  */
129
144
  SetLabel(self: DCollapsibleCategory, label: string): void;
145
+
130
146
  /**
131
147
  * Used internally by [DCategoryList](https://wiki.facepunch.com/gmod/DCategoryList) when it creates a [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory) during [DCategoryList:Add](https://wiki.facepunch.com/gmod/DCategoryList:Add).
132
148
  *
@@ -135,24 +151,28 @@ interface DCollapsibleCategory extends Panel {
135
151
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetList
136
152
  */
137
153
  SetList(self: DCollapsibleCategory, pnl: Panel): void;
154
+
138
155
  /**
139
156
  * Doesn't actually do anything.
140
157
  * @realm client and menu
141
158
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPadding
142
159
  */
143
160
  SetPadding(self: DCollapsibleCategory, padding: number): void;
161
+
144
162
  /**
145
163
  * Sets whether or not the background should be painted.
146
164
  * @realm client and menu
147
165
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground
148
166
  */
149
167
  SetPaintBackground(self: DCollapsibleCategory, paint: boolean): void;
168
+
150
169
  /**
151
170
  * Does nothing.
152
171
  * @realm client and menu
153
172
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight
154
173
  */
155
174
  SetStartHeight(self: DCollapsibleCategory, height: number): void;
175
+
156
176
  /**
157
177
  * Toggles the expanded state of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
158
178
  *
@@ -161,6 +181,7 @@ interface DCollapsibleCategory extends Panel {
161
181
  * @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:Toggle
162
182
  */
163
183
  Toggle(self: DCollapsibleCategory): void;
184
+
164
185
  /**
165
186
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
166
187
  *
@@ -172,26 +193,3 @@ interface DCollapsibleCategory extends Panel {
172
193
  */
173
194
  UpdateAltLines(self: DCollapsibleCategory): void;
174
195
  }
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
@@ -14,6 +14,7 @@ interface DColorButton extends DLabel {
14
14
  * @source https://wiki.facepunch.com/gmod/DColorButton:GetDrawBorder
15
15
  */
16
16
  GetDrawBorder(self: DColorButton): boolean;
17
+
17
18
  /**
18
19
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the unique ID set by [DColorButton:SetID](https://wiki.facepunch.com/gmod/DColorButton:SetID).
19
20
  *
@@ -23,6 +24,7 @@ interface DColorButton extends DLabel {
23
24
  * @source https://wiki.facepunch.com/gmod/DColorButton:GetID
24
25
  */
25
26
  GetID(self: DColorButton): number;
27
+
26
28
  /**
27
29
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that is an alias of [Panel:IsSelected](https://wiki.facepunch.com/gmod/Panel:IsSelected).
28
30
  *
@@ -30,12 +32,14 @@ interface DColorButton extends DLabel {
30
32
  * @source https://wiki.facepunch.com/gmod/DColorButton:GetSelected
31
33
  */
32
34
  GetSelected(self: DColorButton): boolean;
35
+
33
36
  /**
34
37
  * Returns whether the [DColorButton](https://wiki.facepunch.com/gmod/DColorButton) is currently being pressed (the user is holding it down).
35
38
  * @realm client and menu
36
39
  * @source https://wiki.facepunch.com/gmod/DColorButton:IsDown
37
40
  */
38
41
  IsDown(self: DColorButton): boolean;
42
+
39
43
  /**
40
44
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does absolutely nothing at all. Default value is automatically set to true.
41
45
  *
@@ -43,6 +47,7 @@ interface DColorButton extends DLabel {
43
47
  * @source https://wiki.facepunch.com/gmod/DColorButton:SetDrawBorder
44
48
  */
45
49
  SetDrawBorder(self: DColorButton, draw: boolean): void;
50
+
46
51
  /**
47
52
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that is used internally by [DColorPalette](https://wiki.facepunch.com/gmod/DColorPalette) to detect which button is which.
48
53
  *
@@ -53,10 +58,3 @@ interface DColorButton extends DLabel {
53
58
  */
54
59
  SetID(self: DColorButton, id: number): void;
55
60
  }
56
-
57
-
58
-
59
-
60
-
61
-
62
-
@@ -18,12 +18,14 @@ interface DColorCombo extends DPropertySheet {
18
18
  * @source https://wiki.facepunch.com/gmod/DColorCombo:BuildControls
19
19
  */
20
20
  BuildControls(self: DColorCombo): void;
21
+
21
22
  /**
22
23
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color of the [DColorCombo](https://wiki.facepunch.com/gmod/DColorCombo).
23
24
  * @realm client
24
25
  * @source https://wiki.facepunch.com/gmod/DColorCombo:GetColor
25
26
  */
26
27
  GetColor(self: DColorCombo): Color;
28
+
27
29
  /**
28
30
  * Returns true if the panel is currently being edited
29
31
  *
@@ -33,6 +35,7 @@ interface DColorCombo extends DPropertySheet {
33
35
  * @source https://wiki.facepunch.com/gmod/DColorCombo:IsEditing
34
36
  */
35
37
  IsEditing(self: DColorCombo): boolean;
38
+
36
39
  /**
37
40
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color of this panel. See also [DColorCombo:GetColor](https://wiki.facepunch.com/gmod/DColorCombo:GetColor)
38
41
  * @realm client
@@ -40,8 +43,3 @@ interface DColorCombo extends DPropertySheet {
40
43
  */
41
44
  SetColor(self: DColorCombo, clr: Color): void;
42
45
  }
43
-
44
-
45
-
46
-
47
-
@@ -13,12 +13,14 @@ interface DColorCube extends DSlider {
13
13
  * @source https://wiki.facepunch.com/gmod/DColorCube:GetBaseRGB
14
14
  */
15
15
  GetBaseRGB(self: DColorCube): Color;
16
+
16
17
  /**
17
18
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color cube's default color. By default, it is set to white. (255 255 255 RGB)
18
19
  * @realm client and menu
19
20
  * @source https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor
20
21
  */
21
22
  GetDefaultColor(self: DColorCube): Color;
23
+
22
24
  /**
23
25
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the value set by [DColorCube:SetHue](https://wiki.facepunch.com/gmod/DColorCube:SetHue).
24
26
  *
@@ -26,12 +28,14 @@ interface DColorCube extends DSlider {
26
28
  * @source https://wiki.facepunch.com/gmod/DColorCube:GetHue
27
29
  */
28
30
  GetHue(self: DColorCube): number;
31
+
29
32
  /**
30
33
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color cube's current set color.
31
34
  * @realm client and menu
32
35
  * @source https://wiki.facepunch.com/gmod/DColorCube:GetRGB
33
36
  */
34
37
  GetRGB(self: DColorCube): Color;
38
+
35
39
  /**
36
40
  * Sets the color to whatever [DColorCube:GetDefaultColor](https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor) returns
37
41
  *
@@ -39,6 +43,7 @@ interface DColorCube extends DSlider {
39
43
  * @source https://wiki.facepunch.com/gmod/DColorCube:ResetToDefaultValue
40
44
  */
41
45
  ResetToDefaultValue(self: DColorCube): void;
46
+
42
47
  /**
43
48
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the base color and the color used to draw the color cube panel itself.
44
49
  *
@@ -49,18 +54,21 @@ interface DColorCube extends DSlider {
49
54
  * @source https://wiki.facepunch.com/gmod/DColorCube:SetBaseRGB
50
55
  */
51
56
  SetBaseRGB(self: DColorCube, color: Color): void;
57
+
52
58
  /**
53
59
  * Sets the base color of the color cube and updates the slider position.
54
60
  * @realm client and menu
55
61
  * @source https://wiki.facepunch.com/gmod/DColorCube:SetColor
56
62
  */
57
63
  SetColor(self: DColorCube, color: Color): void;
64
+
58
65
  /**
59
66
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the color cube's default color. This value will be used to reset to on middle mouse click of the color cube's draggable slider.
60
67
  * @realm client and menu
61
68
  * @source https://wiki.facepunch.com/gmod/DColorCube:SetDefaultColor
62
69
  */
63
70
  SetDefaultColor(self: DColorCube, arg0: Color): void;
71
+
64
72
  /**
65
73
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that appears to do nothing and unused.
66
74
  *
@@ -68,6 +76,7 @@ interface DColorCube extends DSlider {
68
76
  * @source https://wiki.facepunch.com/gmod/DColorCube:SetHue
69
77
  */
70
78
  SetHue(self: DColorCube, hue: number): void;
79
+
71
80
  /**
72
81
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
73
82
  *
@@ -78,6 +87,7 @@ interface DColorCube extends DSlider {
78
87
  * @source https://wiki.facepunch.com/gmod/DColorCube:SetRGB
79
88
  */
80
89
  SetRGB(self: DColorCube, clr: Color): void;
90
+
81
91
  /**
82
92
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
83
93
  *
@@ -88,6 +98,7 @@ interface DColorCube extends DSlider {
88
98
  * @source https://wiki.facepunch.com/gmod/DColorCube:TranslateValues
89
99
  */
90
100
  TranslateValues(self: DColorCube, x?: number, y?: number): (number, number);
101
+
91
102
  /**
92
103
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
93
104
  *
@@ -99,16 +110,3 @@ interface DColorCube extends DSlider {
99
110
  */
100
111
  UpdateColor(self: DColorCube, x?: number, y?: number): void;
101
112
  }
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-