@tlua/gmod 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +1 -26
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -5,18 +5,14 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DNumberWang
7
7
  */
8
- interface DNumberWang extends DTextEntry {}
9
-
10
- interface DNumberWang {
8
+ interface DNumberWang extends DTextEntry {
11
9
  /**
12
10
  * Returns the amount of decimal places allowed in the number selector, set by [DNumberWang:SetDecimals](https://wiki.facepunch.com/gmod/DNumberWang:SetDecimals)
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetDecimals
15
13
  */
16
14
  GetDecimals(self: DNumberWang): number;
17
- }
18
15
 
19
- interface DNumberWang {
20
16
  /**
21
17
  * Returns whatever is set by [DNumberWang:SetFloatValue](https://wiki.facepunch.com/gmod/DNumberWang:SetFloatValue) or 0.
22
18
  *
@@ -24,45 +20,35 @@ interface DNumberWang {
24
20
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetFloatValue
25
21
  */
26
22
  GetFloatValue(self: DNumberWang): number;
27
- }
28
23
 
29
- interface DNumberWang {
30
24
  /**
31
25
  * Returns a fraction representing the current number selector value to number selector min/max range ratio. If argument `val` is supplied, that number will be computed instead.
32
26
  * @realm client and menu
33
27
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetFraction
34
28
  */
35
29
  GetFraction(self: DNumberWang, val: number): void;
36
- }
37
30
 
38
- interface DNumberWang {
39
31
  /**
40
32
  * Returns interval at which the up and down buttons change the current value.
41
33
  * @realm client and menu
42
34
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetInterval
43
35
  */
44
36
  GetInterval(self: DNumberWang): number;
45
- }
46
37
 
47
- interface DNumberWang {
48
38
  /**
49
39
  * Returns the maximum numeric value allowed by the number selector.
50
40
  * @realm client and menu
51
41
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetMax
52
42
  */
53
43
  GetMax(self: DNumberWang): number;
54
- }
55
44
 
56
- interface DNumberWang {
57
45
  /**
58
46
  * Returns the minimum numeric value allowed by the number selector.
59
47
  * @realm client and menu
60
48
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetMin
61
49
  */
62
50
  GetMin(self: DNumberWang): number;
63
- }
64
51
 
65
- interface DNumberWang {
66
52
  /**
67
53
  * This function returns the panel it is used on.
68
54
  *
@@ -70,27 +56,21 @@ interface DNumberWang {
70
56
  * @source https://wiki.facepunch.com/gmod/DNumberWang:GetTextArea
71
57
  */
72
58
  GetTextArea(self: DNumberWang): Panel;
73
- }
74
59
 
75
- interface DNumberWang {
76
60
  /**
77
61
  * Hides the number selector arrows.
78
62
  * @realm client and menu
79
63
  * @source https://wiki.facepunch.com/gmod/DNumberWang:HideWang
80
64
  */
81
65
  HideWang(self: DNumberWang): void;
82
- }
83
66
 
84
- interface DNumberWang {
85
67
  /**
86
68
  * Sets the amount of decimal places allowed in the number selector.
87
69
  * @realm client and menu
88
70
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetDecimals
89
71
  */
90
72
  SetDecimals(self: DNumberWang, num: number): void;
91
- }
92
73
 
93
- interface DNumberWang {
94
74
  /**
95
75
  * Appears to do nothing.
96
76
  *
@@ -98,45 +78,35 @@ interface DNumberWang {
98
78
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetFloatValue
99
79
  */
100
80
  SetFloatValue(self: DNumberWang, val: number): void;
101
- }
102
81
 
103
- interface DNumberWang {
104
82
  /**
105
83
  * Sets the value of the number selector based on the given fraction number.
106
84
  * @realm client and menu
107
85
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetFraction
108
86
  */
109
87
  SetFraction(self: DNumberWang, val: number): void;
110
- }
111
88
 
112
- interface DNumberWang {
113
89
  /**
114
90
  * Sets interval at which the up and down buttons change the current value.
115
91
  * @realm client and menu
116
92
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetInterval
117
93
  */
118
94
  SetInterval(self: DNumberWang, min: number): void;
119
- }
120
95
 
121
- interface DNumberWang {
122
96
  /**
123
97
  * Sets the maximum numeric value allowed by the number selector.
124
98
  * @realm client and menu
125
99
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetMax
126
100
  */
127
101
  SetMax(self: DNumberWang, max: number): void;
128
- }
129
102
 
130
- interface DNumberWang {
131
103
  /**
132
104
  * Sets the minimum numeric value allowed by the number selector.
133
105
  * @realm client and menu
134
106
  * @source https://wiki.facepunch.com/gmod/DNumberWang:SetMin
135
107
  */
136
108
  SetMin(self: DNumberWang, min: number): void;
137
- }
138
109
 
139
- interface DNumberWang {
140
110
  /**
141
111
  * Sets the minimum and maximum value allowed by the number selector.
142
112
  * @realm client and menu
@@ -144,4 +114,3 @@ interface DNumberWang {
144
114
  */
145
115
  SetMinMax(self: DNumberWang, min: number, max: number): void;
146
116
  }
147
-
@@ -8,4 +8,3 @@
8
8
  * @deprecated You should use DBinder instead.
9
9
  */
10
10
  interface DNumPad extends DPanel {}
11
-
@@ -9,72 +9,56 @@ interface DNumSlider extends Panel {
9
9
  Slider: DSlider;
10
10
  /** The number scratch panel. */
11
11
  Scratch: DNumberScratch;
12
- }
13
12
 
14
- interface DNumSlider {
15
13
  /**
16
14
  * Returns the amount of numbers after the decimal point.
17
15
  * @realm client and menu
18
16
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetDecimals
19
17
  */
20
18
  GetDecimals(self: DNumSlider): number;
21
- }
22
19
 
23
- interface DNumSlider {
24
20
  /**
25
21
  * Returns the default value of the slider, if one was set by [DNumSlider:SetDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue)
26
22
  * @realm client and menu
27
23
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetDefaultValue
28
24
  */
29
25
  GetDefaultValue(self: DNumSlider): number;
30
- }
31
26
 
32
- interface DNumSlider {
33
27
  /**
34
28
  * Returns the maximum value of the slider
35
29
  * @realm client and menu
36
30
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetMax
37
31
  */
38
32
  GetMax(self: DNumSlider): number;
39
- }
40
33
 
41
- interface DNumSlider {
42
34
  /**
43
35
  * Returns the minimum value of the slider
44
36
  * @realm client and menu
45
37
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetMin
46
38
  */
47
39
  GetMin(self: DNumSlider): number;
48
- }
49
40
 
50
- interface DNumSlider {
51
41
  /**
52
42
  * Returns the range of the slider, basically maximum value - minimum value.
53
43
  * @realm client and menu
54
44
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetRange
55
45
  */
56
46
  GetRange(self: DNumSlider): number;
57
- }
58
47
 
59
- interface DNumSlider {
60
48
  /**
61
49
  * Returns the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) component of the slider.
62
50
  * @realm client and menu
63
51
  * @source https://wiki.facepunch.com/gmod/DNumSlider:GetTextArea
64
52
  */
65
53
  GetTextArea(self: DNumSlider): Panel;
66
- }
67
54
 
68
- interface DNumSlider {
69
55
  /**
70
56
  * Returns true if either the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry), the [DSlider](https://wiki.facepunch.com/gmod/DSlider) or the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) are being edited.
71
57
  * @realm client and menu
72
58
  * @source https://wiki.facepunch.com/gmod/DNumSlider:IsEditing
73
59
  */
74
60
  IsEditing(self: DNumSlider): boolean;
75
- }
76
61
 
77
- interface DNumSlider {
78
62
  /**
79
63
  * Resets the slider to the default value, if one was set by [DNumSlider:SetDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue).
80
64
  *
@@ -84,9 +68,7 @@ interface DNumSlider {
84
68
  * @source https://wiki.facepunch.com/gmod/DNumSlider:ResetToDefaultValue
85
69
  */
86
70
  ResetToDefaultValue(self: DNumSlider): void;
87
- }
88
71
 
89
- interface DNumSlider {
90
72
  /**
91
73
  * Calls [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark) on the [DLabel](https://wiki.facepunch.com/gmod/DLabel) part of the [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
92
74
  *
@@ -94,9 +76,7 @@ interface DNumSlider {
94
76
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetDark
95
77
  */
96
78
  SetDark(self: DNumSlider, dark: boolean): void;
97
- }
98
79
 
99
- interface DNumSlider {
100
80
  /**
101
81
  * Sets the desired amount of numbers after the decimal point.
102
82
  * **NOTE**: This doesn't affect values passed to [DNumSlider:OnValueChanged](https://wiki.facepunch.com/gmod/DNumSlider:OnValueChanged).
@@ -109,45 +89,35 @@ interface DNumSlider {
109
89
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetDecimals
110
90
  */
111
91
  SetDecimals(self: DNumSlider, decimals: number): void;
112
- }
113
92
 
114
- interface DNumSlider {
115
93
  /**
116
94
  * Sets the default value of the slider, to be used by [DNumSlider:ResetToDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:ResetToDefaultValue) or by middle mouse clicking the draggable knob of the slider.
117
95
  * @realm client and menu
118
96
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue
119
97
  */
120
98
  SetDefaultValue(self: DNumSlider, _default: number): void;
121
- }
122
99
 
123
- interface DNumSlider {
124
100
  /**
125
101
  * Sets the maximum value for the slider.
126
102
  * @realm client and menu
127
103
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetMax
128
104
  */
129
105
  SetMax(self: DNumSlider, max: number): void;
130
- }
131
106
 
132
- interface DNumSlider {
133
107
  /**
134
108
  * Sets the minimum value for the slider
135
109
  * @realm client and menu
136
110
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetMin
137
111
  */
138
112
  SetMin(self: DNumSlider, min: number): void;
139
- }
140
113
 
141
- interface DNumSlider {
142
114
  /**
143
115
  * Sets the minimum and the maximum value of the slider.
144
116
  * @realm client and menu
145
117
  * @source https://wiki.facepunch.com/gmod/DNumSlider:SetMinMax
146
118
  */
147
119
  SetMinMax(self: DNumSlider, min: number, max: number): void;
148
- }
149
120
 
150
- interface DNumSlider {
151
121
  /**
152
122
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
153
123
  *
@@ -155,9 +125,7 @@ interface DNumSlider {
155
125
  * @source https://wiki.facepunch.com/gmod/DNumSlider:TranslateSliderValues
156
126
  */
157
127
  TranslateSliderValues(self: DNumSlider, x: number, y: number): (number, number);
158
- }
159
128
 
160
- interface DNumSlider {
161
129
  /**
162
130
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
163
131
  * Updates visual notches on the slider.
@@ -165,9 +133,7 @@ interface DNumSlider {
165
133
  * @source https://wiki.facepunch.com/gmod/DNumSlider:UpdateNotches
166
134
  */
167
135
  UpdateNotches(self: DNumSlider): void;
168
- }
169
136
 
170
- interface DNumSlider {
171
137
  /**
172
138
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
173
139
  * Called when the value has been changed. This will also be called when the user manually changes the value through the text panel.
@@ -179,4 +145,3 @@ interface DNumSlider {
179
145
  */
180
146
  ValueChanged(self: DNumSlider, value: number): void;
181
147
  }
182
-
@@ -5,9 +5,7 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DPanel
7
7
  */
8
- interface DPanel extends Panel {}
9
-
10
- interface DPanel {
8
+ interface DPanel extends Panel {
11
9
  /**
12
10
  * Returns the panel's background color.
13
11
  *
@@ -18,9 +16,7 @@ interface DPanel {
18
16
  * @source https://wiki.facepunch.com/gmod/DPanel:GetBackgroundColor
19
17
  */
20
18
  GetBackgroundColor(self: DPanel): Color;
21
- }
22
19
 
23
- interface DPanel {
24
20
  /**
25
21
  * Returns whether or not the panel is disabled.
26
22
  *
@@ -31,9 +27,7 @@ interface DPanel {
31
27
  * @deprecated Use Panel:IsEnabled.
32
28
  */
33
29
  GetDisabled(self: DPanel): boolean;
34
- }
35
30
 
36
- interface DPanel {
37
31
  /**
38
32
  * Returns whether or not the panel background is being drawn. Alias of [DPanel:GetPaintBackground](https://wiki.facepunch.com/gmod/DPanel:GetPaintBackground).
39
33
  * @realm client and menu
@@ -41,9 +35,7 @@ interface DPanel {
41
35
  * @deprecated You should use DPanel:GetPaintBackground instead.
42
36
  */
43
37
  GetDrawBackground(self: DPanel): boolean;
44
- }
45
38
 
46
- interface DPanel {
47
39
  /**
48
40
  * Used internally by [DMenu](https://wiki.facepunch.com/gmod/DMenu).
49
41
  *
@@ -55,36 +47,28 @@ interface DPanel {
55
47
  * @source https://wiki.facepunch.com/gmod/DPanel:GetIsMenu
56
48
  */
57
49
  GetIsMenu(self: DPanel): boolean;
58
- }
59
50
 
60
- interface DPanel {
61
51
  /**
62
52
  * Returns whether or not the panel background is being drawn.
63
53
  * @realm client and menu
64
54
  * @source https://wiki.facepunch.com/gmod/DPanel:GetPaintBackground
65
55
  */
66
56
  GetPaintBackground(self: DPanel): boolean;
67
- }
68
57
 
69
- interface DPanel {
70
58
  /**
71
59
  * Does nothing. Returns value set by [DPanel:SetTabbingDisabled](https://wiki.facepunch.com/gmod/DPanel:SetTabbingDisabled).
72
60
  * @realm client and menu
73
61
  * @source https://wiki.facepunch.com/gmod/DPanel:GetTabbingDisabled
74
62
  */
75
63
  GetTabbingDisabled(self: DPanel): boolean;
76
- }
77
64
 
78
- interface DPanel {
79
65
  /**
80
66
  * Sets the background color of the panel.
81
67
  * @realm client and menu
82
68
  * @source https://wiki.facepunch.com/gmod/DPanel:SetBackgroundColor
83
69
  */
84
70
  SetBackgroundColor(self: DPanel, color: Color): void;
85
- }
86
71
 
87
- interface DPanel {
88
72
  /**
89
73
  * Sets whether or not to disable the panel.
90
74
  *
@@ -95,9 +79,7 @@ interface DPanel {
95
79
  * @deprecated Use Panel:SetEnabled instead.
96
80
  */
97
81
  SetDisabled(self: DPanel, disabled: boolean): void;
98
- }
99
82
 
100
- interface DPanel {
101
83
  /**
102
84
  * Sets whether or not to draw the panel background. Alias of [DPanel:SetPaintBackground](https://wiki.facepunch.com/gmod/DPanel:SetPaintBackground).
103
85
  * @realm client and menu
@@ -105,9 +87,7 @@ interface DPanel {
105
87
  * @deprecated You should use DPanel:SetPaintBackground instead.
106
88
  */
107
89
  SetDrawBackground(self: DPanel, draw: boolean): void;
108
- }
109
90
 
110
- interface DPanel {
111
91
  /**
112
92
  * Used internally by [DMenu](https://wiki.facepunch.com/gmod/DMenu).
113
93
  *
@@ -120,27 +100,21 @@ interface DPanel {
120
100
  * @source https://wiki.facepunch.com/gmod/DPanel:SetIsMenu
121
101
  */
122
102
  SetIsMenu(self: DPanel, isMenu: boolean): void;
123
- }
124
103
 
125
- interface DPanel {
126
104
  /**
127
105
  * Sets whether or not to paint/draw the panel background.
128
106
  * @realm client and menu
129
107
  * @source https://wiki.facepunch.com/gmod/DPanel:SetPaintBackground
130
108
  */
131
109
  SetPaintBackground(self: DPanel, paint: boolean): void;
132
- }
133
110
 
134
- interface DPanel {
135
111
  /**
136
112
  * Does nothing.
137
113
  * @realm client and menu
138
114
  * @source https://wiki.facepunch.com/gmod/DPanel:SetTabbingDisabled
139
115
  */
140
116
  SetTabbingDisabled(self: DPanel, draw: boolean): void;
141
- }
142
117
 
143
- interface DPanel {
144
118
  /**
145
119
  * Does nothing.
146
120
  *
@@ -149,4 +123,3 @@ interface DPanel {
149
123
  */
150
124
  UpdateColours(self: DPanel): void;
151
125
  }
152
-
@@ -3,72 +3,56 @@
3
3
  interface DPanelList extends DPanel {
4
4
  Items: Panel[];
5
5
  VBar: DVScrollBar;
6
- }
7
6
 
8
- interface DPanelList {
9
7
  /**
10
8
  * Adds a existing panel to the end of [DPanelList](https://wiki.facepunch.com/gmod/DPanelList).
11
9
  * @realm client and menu
12
10
  * @source https://wiki.facepunch.com/gmod/DPanelList:AddItem
13
11
  */
14
12
  AddItem(self: DPanelList, pnl: Panel, state?: string): void;
15
- }
16
13
 
17
- interface DPanelList {
18
14
  /**
19
15
  * Removes all items.
20
16
  * @realm client and menu
21
17
  * @source https://wiki.facepunch.com/gmod/DPanelList:CleanList
22
18
  */
23
19
  CleanList(self: DPanelList): void;
24
- }
25
20
 
26
- interface DPanelList {
27
21
  /**
28
22
  * Enables/creates the vertical scroll bar so that the panel list can be scrolled through.
29
23
  * @realm client and menu
30
24
  * @source https://wiki.facepunch.com/gmod/DPanelList:EnableVerticalScrollbar
31
25
  */
32
26
  EnableVerticalScrollbar(self: DPanelList): void;
33
- }
34
27
 
35
- interface DPanelList {
36
28
  /**
37
29
  * Returns all panels has added by [DPanelList:AddItem](https://wiki.facepunch.com/gmod/DPanelList:AddItem)
38
30
  * @realm client and menu
39
31
  * @source https://wiki.facepunch.com/gmod/DPanelList:GetItems
40
32
  */
41
33
  GetItems(self: DPanelList): table;
42
- }
43
34
 
44
- interface DPanelList {
45
35
  /**
46
36
  * Returns offset of list items from the panel borders set by [DPanelList:SetPadding](https://wiki.facepunch.com/gmod/DPanelList:SetPadding)
47
37
  * @realm client and menu
48
38
  * @source https://wiki.facepunch.com/gmod/DPanelList:GetPadding
49
39
  */
50
40
  GetPadding(self: DPanelList): number;
51
- }
52
41
 
53
- interface DPanelList {
54
42
  /**
55
43
  * Returns distance between list items set by [DPanelList:SetSpacing](https://wiki.facepunch.com/gmod/DPanelList:SetSpacing)
56
44
  * @realm client and menu
57
45
  * @source https://wiki.facepunch.com/gmod/DPanelList:GetSpacing
58
46
  */
59
47
  GetSpacing(self: DPanelList): number;
60
- }
61
48
 
62
- interface DPanelList {
63
49
  /**
64
50
  * Insert given panel at the top of the list.
65
51
  * @realm client and menu
66
52
  * @source https://wiki.facepunch.com/gmod/DPanelList:InsertAtTop
67
53
  */
68
54
  InsertAtTop(self: DPanelList, insert: Panel, strLineState: string): void;
69
- }
70
55
 
71
- interface DPanelList {
72
56
  /**
73
57
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
74
58
  *
@@ -78,27 +62,21 @@ interface DPanelList {
78
62
  * @source https://wiki.facepunch.com/gmod/DPanelList:Rebuild
79
63
  */
80
64
  Rebuild(self: DPanelList): void;
81
- }
82
65
 
83
- interface DPanelList {
84
66
  /**
85
67
  * Sets the [DPanelList](https://wiki.facepunch.com/gmod/DPanelList) to size its height to its contents. This is set to false by default.
86
68
  * @realm client and menu
87
69
  * @source https://wiki.facepunch.com/gmod/DPanelList:SetAutoSize
88
70
  */
89
71
  SetAutoSize(self: DPanelList, shouldSizeToContents: boolean): void;
90
- }
91
72
 
92
- interface DPanelList {
93
73
  /**
94
74
  * Sets the offset of the lists items from the panel borders
95
75
  * @realm client and menu
96
76
  * @source https://wiki.facepunch.com/gmod/DPanelList:SetPadding
97
77
  */
98
78
  SetPadding(self: DPanelList, Offset: number): void;
99
- }
100
79
 
101
- interface DPanelList {
102
80
  /**
103
81
  * Sets distance between list items
104
82
  * @realm client and menu
@@ -106,4 +84,3 @@ interface DPanelList {
106
84
  */
107
85
  SetSpacing(self: DPanelList, Distance: number): void;
108
86
  }
109
-
@@ -5,27 +5,21 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay
7
7
  */
8
- interface DPanelOverlay extends DPanel {}
9
-
10
- interface DPanelOverlay {
8
+ interface DPanelOverlay extends DPanel {
11
9
  /**
12
10
  * Returns the border color of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay) set by [DPanelOverlay:SetColor](https://wiki.facepunch.com/gmod/DPanelOverlay:SetColor).
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:GetColor
15
13
  */
16
14
  GetColor(self: DPanelOverlay): Color;
17
- }
18
15
 
19
- interface DPanelOverlay {
20
16
  /**
21
17
  * Returns the type of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay) set by [DPanelOverlay:SetType](https://wiki.facepunch.com/gmod/DPanelOverlay:SetType).
22
18
  * @realm client and menu
23
19
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:GetType
24
20
  */
25
21
  GetType(self: DPanelOverlay): number;
26
- }
27
22
 
28
- interface DPanelOverlay {
29
23
  /**
30
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
31
25
  * Used internally by the panel for type 3.
@@ -33,9 +27,7 @@ interface DPanelOverlay {
33
27
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:PaintDifferentColours
34
28
  */
35
29
  PaintDifferentColours(self: DPanelOverlay, cola: table, colb: table, colc: table, cold: table, size: number): void;
36
- }
37
30
 
38
- interface DPanelOverlay {
39
31
  /**
40
32
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
33
  * Used internally by the panel for types 1 and 2.
@@ -43,18 +35,14 @@ interface DPanelOverlay {
43
35
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:PaintInnerCorners
44
36
  */
45
37
  PaintInnerCorners(self: DPanelOverlay, size: number): void;
46
- }
47
38
 
48
- interface DPanelOverlay {
49
39
  /**
50
40
  * Sets the border color of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay).
51
41
  * @realm client and menu
52
42
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:SetColor
53
43
  */
54
44
  SetColor(self: DPanelOverlay, color: Color): void;
55
- }
56
45
 
57
- interface DPanelOverlay {
58
46
  /**
59
47
  * Sets the type of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay).
60
48
  * @realm client and menu
@@ -62,4 +50,3 @@ interface DPanelOverlay {
62
50
  */
63
51
  SetType(self: DPanelOverlay, type: number): void;
64
52
  }
65
-
@@ -10,4 +10,3 @@
10
10
  * @deprecated This is derived from the deprecated DPanelList.
11
11
  */
12
12
  interface DPanelSelect extends DPanelList {}
13
-
@@ -6,18 +6,14 @@
6
6
  * @realm client and menu
7
7
  * @source https://wiki.facepunch.com/gmod/DPanPanel
8
8
  */
9
- interface DPanPanel extends DPanel {}
10
-
11
- interface DPanPanel {
9
+ interface DPanPanel extends DPanel {
12
10
  /**
13
11
  * Parents the passed panel to the [DPanPanel:GetCanvas](https://wiki.facepunch.com/gmod/DPanPanel:GetCanvas).
14
12
  * @realm client and menu
15
13
  * @source https://wiki.facepunch.com/gmod/DPanPanel:AddItem
16
14
  */
17
15
  AddItem(self: DPanPanel, pnl: Panel): void;
18
- }
19
16
 
20
- interface DPanPanel {
21
17
  /**
22
18
  * The internal canvas panel.
23
19
  *
@@ -25,9 +21,7 @@ interface DPanPanel {
25
21
  * @source https://wiki.facepunch.com/gmod/DPanPanel:GetCanvas
26
22
  */
27
23
  GetCanvas(self: DPanPanel): Panel;
28
- }
29
24
 
30
- interface DPanPanel {
31
25
  /**
32
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
33
27
  *
@@ -37,9 +31,7 @@ interface DPanPanel {
37
31
  * @source https://wiki.facepunch.com/gmod/DPanPanel:OnScroll
38
32
  */
39
33
  OnScroll(self: DPanPanel, x: number, y: number): void;
40
- }
41
34
 
42
- interface DPanPanel {
43
35
  /**
44
36
  * Scroll to a specific child panel.
45
37
  *
@@ -47,9 +39,7 @@ interface DPanPanel {
47
39
  * @source https://wiki.facepunch.com/gmod/DPanPanel:ScrollToChild
48
40
  */
49
41
  ScrollToChild(self: DPanPanel, pnl: Panel): void;
50
- }
51
42
 
52
- interface DPanPanel {
53
43
  /**
54
44
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
55
45
  *
@@ -61,4 +51,3 @@ interface DPanPanel {
61
51
  */
62
52
  SetCanvas(self: DPanPanel, pnl: Panel): void;
63
53
  }
64
-
@@ -5,18 +5,14 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DProgress
7
7
  */
8
- interface DProgress extends Panel {}
9
-
10
- interface DProgress {
8
+ interface DProgress extends Panel {
11
9
  /**
12
10
  * Returns the progress bar's fraction. 0 is 0% and 1 is 100%.
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DProgress:GetFraction
15
13
  */
16
14
  GetFraction(self: DProgress): number;
17
- }
18
15
 
19
- interface DProgress {
20
16
  /**
21
17
  * Sets the fraction of the progress bar. 0 is 0% and 1 is 100%.
22
18
  * @realm client and menu
@@ -24,4 +20,3 @@ interface DProgress {
24
20
  */
25
21
  SetFraction(self: DProgress, fraction: number): void;
26
22
  }
27
-