@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
@@ -8,9 +8,7 @@
8
8
  * @realm client and menu
9
9
  * @source https://wiki.facepunch.com/gmod/DLabelURL
10
10
  */
11
- interface DLabelURL extends URLLabel {}
12
-
13
- interface DLabelURL {
11
+ interface DLabelURL extends URLLabel {
14
12
  /**
15
13
  * Does absolutely nothing at all.
16
14
  *
@@ -18,36 +16,28 @@ interface DLabelURL {
18
16
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetAutoStretchVertical
19
17
  */
20
18
  GetAutoStretchVertical(self: DLabelURL): boolean;
21
- }
22
19
 
23
- interface DLabelURL {
24
20
  /**
25
21
  * Gets the current text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). Returns either [DLabelURL:GetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:GetTextColor) or if that is unset - [DLabelURL:GetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:GetTextStyleColor).
26
22
  * @realm client and menu
27
23
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetColor
28
24
  */
29
25
  GetColor(self: DLabelURL): Color;
30
- }
31
26
 
32
- interface DLabelURL {
33
27
  /**
34
28
  * Gets the current text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL) set by [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
35
29
  * @realm client and menu
36
30
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextColor
37
31
  */
38
32
  GetTextColor(self: DLabelURL): Color;
39
- }
40
33
 
41
- interface DLabelURL {
42
34
  /**
43
35
  * Returns the color set by [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
44
36
  * @realm client and menu
45
37
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextStyleColor
46
38
  */
47
39
  GetTextStyleColor(self: DLabelURL): Color;
48
- }
49
40
 
50
- interface DLabelURL {
51
41
  /**
52
42
  * Does absolutely nothing at all.
53
43
  *
@@ -55,18 +45,14 @@ interface DLabelURL {
55
45
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetAutoStretchVertical
56
46
  */
57
47
  SetAutoStretchVertical(self: DLabelURL, draw: boolean): void;
58
- }
59
48
 
60
- interface DLabelURL {
61
49
  /**
62
50
  * Alias of [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
63
51
  * @realm client and menu
64
52
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetColor
65
53
  */
66
54
  SetColor(self: DLabelURL, col: Color): void;
67
- }
68
55
 
69
- interface DLabelURL {
70
56
  /**
71
57
  * Sets the text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). Overrides [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
72
58
  *
@@ -77,18 +63,14 @@ interface DLabelURL {
77
63
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor
78
64
  */
79
65
  SetTextColor(self: DLabelURL, col: Color): void;
80
- }
81
66
 
82
- interface DLabelURL {
83
67
  /**
84
68
  * Sets the base text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). This is overridden by [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
85
69
  * @realm client and menu
86
70
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor
87
71
  */
88
72
  SetTextStyleColor(self: DLabelURL, color: Color): void;
89
- }
90
73
 
91
- interface DLabelURL {
92
74
  /**
93
75
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
94
76
  * Used internally to set correct text color via [Panel:SetFGColor](https://wiki.facepunch.com/gmod/Panel:SetFGColor) and [DLabelURL:GetColor](https://wiki.facepunch.com/gmod/DLabelURL:GetColor).
@@ -97,4 +79,3 @@ interface DLabelURL {
97
79
  */
98
80
  UpdateFGColor(self: DLabelURL): void;
99
81
  }
100
-
@@ -8,36 +8,28 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListBox
9
9
  * @deprecated Derived from the deprecated DPanelList.
10
10
  */
11
- interface DListBox extends DPanelList {}
12
-
13
- interface DListBox {
11
+ interface DListBox extends DPanelList {
14
12
  /**
15
13
  * Returns whether the list box can select multiple items.
16
14
  * @realm client and menu
17
15
  * @source https://wiki.facepunch.com/gmod/DListBox:GetMultiple
18
16
  */
19
17
  GetMultiple(self: DListBox): boolean;
20
- }
21
18
 
22
- interface DListBox {
23
19
  /**
24
20
  * Returns selected items.
25
21
  * @realm client and menu
26
22
  * @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedItems
27
23
  */
28
24
  GetSelectedItems(self: DListBox): table;
29
- }
30
25
 
31
- interface DListBox {
32
26
  /**
33
27
  * Returns selected item values.
34
28
  * @realm client and menu
35
29
  * @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedValues
36
30
  */
37
31
  GetSelectedValues(self: DListBox): table;
38
- }
39
32
 
40
- interface DListBox {
41
33
  /**
42
34
  * Select a [DListBoxItem](https://wiki.facepunch.com/gmod/DListBoxItem) based on its value.
43
35
  *
@@ -45,9 +37,7 @@ interface DListBox {
45
37
  * @source https://wiki.facepunch.com/gmod/DListBox:SelectByName
46
38
  */
47
39
  SelectByName(self: DListBox, val: string): void;
48
- }
49
40
 
50
- interface DListBox {
51
41
  /**
52
42
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
53
43
  *
@@ -58,18 +48,14 @@ interface DListBox {
58
48
  * @source https://wiki.facepunch.com/gmod/DListBox:SelectItem
59
49
  */
60
50
  SelectItem(self: DListBox, item: Panel, onlyme: boolean): void;
61
- }
62
51
 
63
- interface DListBox {
64
52
  /**
65
53
  * Sets whether the list box can select multiple items.
66
54
  * @realm client and menu
67
55
  * @source https://wiki.facepunch.com/gmod/DListBox:SetMultiple
68
56
  */
69
57
  SetMultiple(self: DListBox, multiple: boolean): void;
70
- }
71
58
 
72
- interface DListBox {
73
59
  /**
74
60
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
61
  *
@@ -79,4 +65,3 @@ interface DListBox {
79
65
  */
80
66
  SetSelectedItems(self: DListBox, items: table): void;
81
67
  }
82
-
@@ -5,9 +5,7 @@
5
5
  * @source https://wiki.facepunch.com/gmod/DListBoxItem
6
6
  * @deprecated Used Internally by DListBox.
7
7
  */
8
- interface DListBoxItem extends DLabel {}
9
-
10
- interface DListBoxItem {
8
+ interface DListBoxItem extends DLabel {
11
9
  /**
12
10
  * Returns the parent "mother" of this **DListBoxItem** set by [DListBoxItem:SetMother](https://wiki.facepunch.com/gmod/DListBoxItem:SetMother).
13
11
  *
@@ -15,9 +13,7 @@ interface DListBoxItem {
15
13
  * @source https://wiki.facepunch.com/gmod/DListBoxItem:GetMother
16
14
  */
17
15
  GetMother(self: DListBoxItem): Panel;
18
- }
19
16
 
20
- interface DListBoxItem {
21
17
  /**
22
18
  * Selects this item.
23
19
  *
@@ -25,9 +21,7 @@ interface DListBoxItem {
25
21
  * @source https://wiki.facepunch.com/gmod/DListBoxItem:Select
26
22
  */
27
23
  Select(self: DListBoxItem, onlyMe: boolean): void;
28
- }
29
24
 
30
- interface DListBoxItem {
31
25
  /**
32
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
33
27
  *
@@ -39,4 +33,3 @@ interface DListBoxItem {
39
33
  */
40
34
  SetMother(self: DListBoxItem, parent: Panel): void;
41
35
  }
42
-
@@ -11,4 +11,3 @@
11
11
  * @source https://wiki.facepunch.com/gmod/DListLayout
12
12
  */
13
13
  interface DListLayout extends DDragBase {}
14
-
@@ -5,63 +5,49 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DListView
7
7
  */
8
- interface DListView extends DPanel {}
9
-
10
- interface DListView {
8
+ interface DListView extends DPanel {
11
9
  /**
12
10
  * Adds a column to the listview.
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DListView:AddColumn
15
13
  */
16
14
  AddColumn(self: DListView, column: string, position?: number): Panel;
17
- }
18
15
 
19
- interface DListView {
20
16
  /**
21
17
  * Adds a line to the list view.
22
18
  * @realm client and menu
23
19
  * @source https://wiki.facepunch.com/gmod/DListView:AddLine
24
20
  */
25
21
  AddLine(self: DListView, ...: any): Panel;
26
- }
27
22
 
28
- interface DListView {
29
23
  /**
30
24
  * Clears the current selection in the DListView.
31
25
  * @realm client and menu
32
26
  * @source https://wiki.facepunch.com/gmod/DListView:ClearSelection
33
27
  */
34
28
  ClearSelection(self: DListView): void;
35
- }
36
29
 
37
- interface DListView {
38
30
  /**
39
31
  * Gets the width of a column.
40
32
  * @realm client and menu
41
33
  * @source https://wiki.facepunch.com/gmod/DListView:ColumnWidth
42
34
  */
43
35
  ColumnWidth(self: DListView, column: number): number;
44
- }
45
36
 
46
- interface DListView {
47
37
  /**
48
38
  * Creates the lines and gets the height of the contents, in a DListView.
49
39
  * @realm client and menu
50
40
  * @source https://wiki.facepunch.com/gmod/DListView:DataLayout
51
41
  */
52
42
  DataLayout(self: DListView): number;
53
- }
54
43
 
55
- interface DListView {
56
44
  /**
57
45
  * Removes the scrollbar.
58
46
  * @realm client and menu
59
47
  * @source https://wiki.facepunch.com/gmod/DListView:DisableScrollbar
60
48
  */
61
49
  DisableScrollbar(self: DListView): void;
62
- }
63
50
 
64
- interface DListView {
65
51
  /**
66
52
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
53
  *
@@ -72,18 +58,14 @@ interface DListView {
72
58
  * @source https://wiki.facepunch.com/gmod/DListView:FixColumnsLayout
73
59
  */
74
60
  FixColumnsLayout(self: DListView): void;
75
- }
76
61
 
77
- interface DListView {
78
62
  /**
79
63
  * Gets the canvas.
80
64
  * @realm client and menu
81
65
  * @source https://wiki.facepunch.com/gmod/DListView:GetCanvas
82
66
  */
83
67
  GetCanvas(self: DListView): Panel;
84
- }
85
68
 
86
- interface DListView {
87
69
  /**
88
70
  * Returns the height of the data of the [DListView](https://wiki.facepunch.com/gmod/DListView).
89
71
  *
@@ -93,9 +75,7 @@ interface DListView {
93
75
  * @source https://wiki.facepunch.com/gmod/DListView:GetDataHeight
94
76
  */
95
77
  GetDataHeight(self: DListView): number;
96
- }
97
78
 
98
- interface DListView {
99
79
  /**
100
80
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
101
81
  *
@@ -106,9 +86,7 @@ interface DListView {
106
86
  * @source https://wiki.facepunch.com/gmod/DListView:GetDirty
107
87
  */
108
88
  GetDirty(self: DListView): boolean;
109
- }
110
89
 
111
- interface DListView {
112
90
  /**
113
91
  * Returns the height of the header of the [DListView](https://wiki.facepunch.com/gmod/DListView).
114
92
  *
@@ -118,18 +96,14 @@ interface DListView {
118
96
  * @source https://wiki.facepunch.com/gmod/DListView:GetHeaderHeight
119
97
  */
120
98
  GetHeaderHeight(self: DListView): number;
121
- }
122
99
 
123
- interface DListView {
124
100
  /**
125
101
  * Returns whether the header line should be visible on not.
126
102
  * @realm client and menu
127
103
  * @source https://wiki.facepunch.com/gmod/DListView:GetHideHeaders
128
104
  */
129
105
  GetHideHeaders(self: DListView): boolean;
130
- }
131
106
 
132
- interface DListView {
133
107
  /**
134
108
  * Returns the height of [DListView:GetCanvas](https://wiki.facepunch.com/gmod/DListView:GetCanvas).
135
109
  *
@@ -139,27 +113,21 @@ interface DListView {
139
113
  * @source https://wiki.facepunch.com/gmod/DListView:GetInnerTall
140
114
  */
141
115
  GetInnerTall(self: DListView): number;
142
- }
143
116
 
144
- interface DListView {
145
117
  /**
146
118
  * Gets the [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) at the given index.
147
119
  * @realm client and menu
148
120
  * @source https://wiki.facepunch.com/gmod/DListView:GetLine
149
121
  */
150
122
  GetLine(self: DListView, id: number): Panel;
151
- }
152
123
 
153
- interface DListView {
154
124
  /**
155
125
  * Gets all of the lines added to the DListView.
156
126
  * @realm client and menu
157
127
  * @source https://wiki.facepunch.com/gmod/DListView:GetLines
158
128
  */
159
129
  GetLines(self: DListView): table;
160
- }
161
130
 
162
- interface DListView {
163
131
  /**
164
132
  * Returns whether multiple lines can be selected or not.
165
133
  *
@@ -169,18 +137,14 @@ interface DListView {
169
137
  * @source https://wiki.facepunch.com/gmod/DListView:GetMultiSelect
170
138
  */
171
139
  GetMultiSelect(self: DListView): boolean;
172
- }
173
140
 
174
- interface DListView {
175
141
  /**
176
142
  * Gets all of the lines that are currently selected.
177
143
  * @realm client and menu
178
144
  * @source https://wiki.facepunch.com/gmod/DListView:GetSelected
179
145
  */
180
146
  GetSelected(self: DListView): table;
181
- }
182
147
 
183
- interface DListView {
184
148
  /**
185
149
  * Gets the currently selected [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) index.
186
150
  *
@@ -190,9 +154,7 @@ interface DListView {
190
154
  * @source https://wiki.facepunch.com/gmod/DListView:GetSelectedLine
191
155
  */
192
156
  GetSelectedLine(self: DListView): (number, Panel);
193
- }
194
157
 
195
- interface DListView {
196
158
  /**
197
159
  * Returns whether sorting of columns by clicking their headers is allowed or not.
198
160
  *
@@ -202,9 +164,7 @@ interface DListView {
202
164
  * @source https://wiki.facepunch.com/gmod/DListView:GetSortable
203
165
  */
204
166
  GetSortable(self: DListView): boolean;
205
- }
206
167
 
207
- interface DListView {
208
168
  /**
209
169
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
210
170
  *
@@ -215,9 +175,7 @@ interface DListView {
215
175
  * @source https://wiki.facepunch.com/gmod/DListView:GetSortedID
216
176
  */
217
177
  GetSortedID(self: DListView, lineId: number): number;
218
- }
219
178
 
220
- interface DListView {
221
179
  /**
222
180
  * **INTERNAL**: Use [DListView:OnRowSelected](https://wiki.facepunch.com/gmod/DListView:OnRowSelected) instead!
223
181
  *
@@ -228,9 +186,7 @@ interface DListView {
228
186
  * @source https://wiki.facepunch.com/gmod/DListView:OnClickLine
229
187
  */
230
188
  OnClickLine(self: DListView, line: Panel, isSelected: boolean): void;
231
- }
232
189
 
233
- interface DListView {
234
190
  /**
235
191
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
236
192
  *
@@ -241,36 +197,28 @@ interface DListView {
241
197
  * @source https://wiki.facepunch.com/gmod/DListView:OnRequestResize
242
198
  */
243
199
  OnRequestResize(self: DListView, column: Panel, size: number): void;
244
- }
245
200
 
246
- interface DListView {
247
201
  /**
248
202
  * Removes a line from the list view.
249
203
  * @realm client and menu
250
204
  * @source https://wiki.facepunch.com/gmod/DListView:RemoveLine
251
205
  */
252
206
  RemoveLine(self: DListView, line: number): void;
253
- }
254
207
 
255
- interface DListView {
256
208
  /**
257
209
  * Selects the line at the first index of the DListView if one has been added.
258
210
  * @realm client and menu
259
211
  * @source https://wiki.facepunch.com/gmod/DListView:SelectFirstItem
260
212
  */
261
213
  SelectFirstItem(self: DListView): void;
262
- }
263
214
 
264
- interface DListView {
265
215
  /**
266
216
  * Selects a line in the listview.
267
217
  * @realm client and menu
268
218
  * @source https://wiki.facepunch.com/gmod/DListView:SelectItem
269
219
  */
270
220
  SelectItem(self: DListView, Line: Panel): void;
271
- }
272
221
 
273
- interface DListView {
274
222
  /**
275
223
  * Sets the height of all lines of the [DListView](https://wiki.facepunch.com/gmod/DListView) except for the header line.
276
224
  *
@@ -280,9 +228,7 @@ interface DListView {
280
228
  * @source https://wiki.facepunch.com/gmod/DListView:SetDataHeight
281
229
  */
282
230
  SetDataHeight(self: DListView, height: number): void;
283
- }
284
231
 
285
- interface DListView {
286
232
  /**
287
233
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
288
234
  *
@@ -293,9 +239,7 @@ interface DListView {
293
239
  * @source https://wiki.facepunch.com/gmod/DListView:SetDirty
294
240
  */
295
241
  SetDirty(self: DListView, isDirty: boolean): void;
296
- }
297
242
 
298
- interface DListView {
299
243
  /**
300
244
  * Sets the height of the header line of the [DListView](https://wiki.facepunch.com/gmod/DListView).
301
245
  *
@@ -305,27 +249,21 @@ interface DListView {
305
249
  * @source https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight
306
250
  */
307
251
  SetHeaderHeight(self: DListView, height: number): void;
308
- }
309
252
 
310
- interface DListView {
311
253
  /**
312
254
  * Sets whether the header line should be visible on not.
313
255
  * @realm client and menu
314
256
  * @source https://wiki.facepunch.com/gmod/DListView:SetHideHeaders
315
257
  */
316
258
  SetHideHeaders(self: DListView, hide: boolean): void;
317
- }
318
259
 
319
- interface DListView {
320
260
  /**
321
261
  * Sets whether multiple lines can be selected by the user by using the Ctrl or Shift keys. When set to false, only one line can be selected.
322
262
  * @realm client and menu
323
263
  * @source https://wiki.facepunch.com/gmod/DListView:SetMultiSelect
324
264
  */
325
265
  SetMultiSelect(self: DListView, allowMultiSelect: boolean): void;
326
- }
327
266
 
328
- interface DListView {
329
267
  /**
330
268
  * Enables/disables the sorting of columns by clicking.
331
269
  * **NOTE**: This will only affect columns that are created after this function is called. Existing columns will be unaffected.
@@ -335,18 +273,14 @@ interface DListView {
335
273
  * @source https://wiki.facepunch.com/gmod/DListView:SetSortable
336
274
  */
337
275
  SetSortable(self: DListView, isSortable: boolean): void;
338
- }
339
276
 
340
- interface DListView {
341
277
  /**
342
278
  * Sorts the items in the specified column.
343
279
  * @realm client and menu
344
280
  * @source https://wiki.facepunch.com/gmod/DListView:SortByColumn
345
281
  */
346
282
  SortByColumn(self: DListView, columnIndex: number, descending?: boolean): void;
347
- }
348
283
 
349
- interface DListView {
350
284
  /**
351
285
  * Sorts the list based on given columns.
352
286
  *
@@ -357,4 +291,3 @@ interface DListView {
357
291
  */
358
292
  SortByColumns(self: DListView, column1?: number, descrending1?: boolean, column2?: number, descrending2?: boolean, column3?: number, descrending3?: boolean, column4?: number, descrending4?: boolean): void;
359
293
  }
360
-
@@ -9,27 +9,21 @@
9
9
  * @realm client and menu
10
10
  * @source https://wiki.facepunch.com/gmod/DListView_Column
11
11
  */
12
- interface DListView_Column extends Panel {}
13
-
14
- interface DListView_Column {
12
+ interface DListView_Column extends Panel {
15
13
  /**
16
14
  * Gets the index used for this column.
17
15
  * @realm client and menu
18
16
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetColumnID
19
17
  */
20
18
  GetColumnID(self: DListView_Column): number;
21
- }
22
19
 
23
- interface DListView_Column {
24
20
  /**
25
21
  * Returns whether the column is sorted in descending order or not.
26
22
  * @realm client and menu
27
23
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetDescending
28
24
  */
29
25
  GetDescending(self: DListView_Column): boolean;
30
- }
31
26
 
32
- interface DListView_Column {
33
27
  /**
34
28
  * Returns the fixed width of this column.
35
29
  *
@@ -37,45 +31,35 @@ interface DListView_Column {
37
31
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetFixedWidth
38
32
  */
39
33
  GetFixedWidth(self: DListView_Column): number;
40
- }
41
34
 
42
- interface DListView_Column {
43
35
  /**
44
36
  * Returns the maximum width set with [DListView_Column:SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth).
45
37
  * @realm client and menu
46
38
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMaxWidth
47
39
  */
48
40
  GetMaxWidth(self: DListView_Column): number;
49
- }
50
41
 
51
- interface DListView_Column {
52
42
  /**
53
43
  * Returns the minimum width set with [DListView_Column:SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth).
54
44
  * @realm client and menu
55
45
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMinWidth
56
46
  */
57
47
  GetMinWidth(self: DListView_Column): number;
58
- }
59
48
 
60
- interface DListView_Column {
61
49
  /**
62
50
  * Returns the text alignment for the column
63
51
  * @realm client and menu
64
52
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetTextAlign
65
53
  */
66
54
  GetTextAlign(self: DListView_Column): number;
67
- }
68
55
 
69
- interface DListView_Column {
70
56
  /**
71
57
  * Resizes the column, additionally adjusting the size of the column to the right, if any.
72
58
  * @realm client and menu
73
59
  * @source https://wiki.facepunch.com/gmod/DListView_Column:ResizeColumn
74
60
  */
75
61
  ResizeColumn(self: DListView_Column, size: number): void;
76
- }
77
62
 
78
- interface DListView_Column {
79
63
  /**
80
64
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
81
65
  * Sets the index used for this column.
@@ -83,18 +67,14 @@ interface DListView_Column {
83
67
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetColumnID
84
68
  */
85
69
  SetColumnID(self: DListView_Column, index: number): void;
86
- }
87
70
 
88
- interface DListView_Column {
89
71
  /**
90
72
  * Sets whether the column is sorted in descending order or not.
91
73
  * @realm client and menu
92
74
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetDescending
93
75
  */
94
76
  SetDescending(self: DListView_Column, desc: boolean): void;
95
- }
96
77
 
97
- interface DListView_Column {
98
78
  /**
99
79
  * Sets the fixed width of the column.
100
80
  * **NOTE**: Internally this will set [SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth) and [SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth) to the value provided
@@ -104,27 +84,21 @@ interface DListView_Column {
104
84
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetFixedWidth
105
85
  */
106
86
  SetFixedWidth(self: DListView_Column, width: number): void;
107
- }
108
87
 
109
- interface DListView_Column {
110
88
  /**
111
89
  * Sets the maximum width of a column.
112
90
  * @realm client and menu
113
91
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth
114
92
  */
115
93
  SetMaxWidth(self: DListView_Column, width: number): void;
116
- }
117
94
 
118
- interface DListView_Column {
119
95
  /**
120
96
  * Sets the minimum width of a column.
121
97
  * @realm client and menu
122
98
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth
123
99
  */
124
100
  SetMinWidth(self: DListView_Column, width: number): void;
125
- }
126
101
 
127
- interface DListView_Column {
128
102
  /**
129
103
  * Sets the text alignment for the column
130
104
  * @realm client and menu
@@ -132,4 +106,3 @@ interface DListView_Column {
132
106
  */
133
107
  SetTextAlign(self: DListView_Column, alignment: number): void;
134
108
  }
135
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListView_ColumnPlain
9
9
  */
10
10
  interface DListView_ColumnPlain extends DListView_Column {}
11
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListView_DraggerBar
9
9
  */
10
10
  interface DListView_DraggerBar extends DButton {}
11
-