@tlua/gmod 1.0.4 → 1.0.5

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 (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -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,24 @@ interface DLabelURL {
18
16
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetAutoStretchVertical
19
17
  */
20
18
  GetAutoStretchVertical(self: DLabelURL): boolean;
21
- }
22
-
23
- interface DLabelURL {
24
19
  /**
25
20
  * 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
21
  * @realm client and menu
27
22
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetColor
28
23
  */
29
24
  GetColor(self: DLabelURL): Color;
30
- }
31
-
32
- interface DLabelURL {
33
25
  /**
34
26
  * 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
27
  * @realm client and menu
36
28
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextColor
37
29
  */
38
30
  GetTextColor(self: DLabelURL): Color;
39
- }
40
-
41
- interface DLabelURL {
42
31
  /**
43
32
  * Returns the color set by [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
44
33
  * @realm client and menu
45
34
  * @source https://wiki.facepunch.com/gmod/DLabelURL:GetTextStyleColor
46
35
  */
47
36
  GetTextStyleColor(self: DLabelURL): Color;
48
- }
49
-
50
- interface DLabelURL {
51
37
  /**
52
38
  * Does absolutely nothing at all.
53
39
  *
@@ -55,18 +41,12 @@ interface DLabelURL {
55
41
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetAutoStretchVertical
56
42
  */
57
43
  SetAutoStretchVertical(self: DLabelURL, draw: boolean): void;
58
- }
59
-
60
- interface DLabelURL {
61
44
  /**
62
45
  * Alias of [DLabelURL:SetTextColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor).
63
46
  * @realm client and menu
64
47
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetColor
65
48
  */
66
49
  SetColor(self: DLabelURL, col: Color): void;
67
- }
68
-
69
- interface DLabelURL {
70
50
  /**
71
51
  * Sets the text color of the [DLabelURL](https://wiki.facepunch.com/gmod/DLabelURL). Overrides [DLabelURL:SetTextStyleColor](https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor).
72
52
  *
@@ -77,18 +57,12 @@ interface DLabelURL {
77
57
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextColor
78
58
  */
79
59
  SetTextColor(self: DLabelURL, col: Color): void;
80
- }
81
-
82
- interface DLabelURL {
83
60
  /**
84
61
  * 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
62
  * @realm client and menu
86
63
  * @source https://wiki.facepunch.com/gmod/DLabelURL:SetTextStyleColor
87
64
  */
88
65
  SetTextStyleColor(self: DLabelURL, color: Color): void;
89
- }
90
-
91
- interface DLabelURL {
92
66
  /**
93
67
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
94
68
  * 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).
@@ -98,3 +72,12 @@ interface DLabelURL {
98
72
  UpdateFGColor(self: DLabelURL): void;
99
73
  }
100
74
 
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -8,36 +8,25 @@
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
-
22
- interface DListBox {
23
18
  /**
24
19
  * Returns selected items.
25
20
  * @realm client and menu
26
21
  * @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedItems
27
22
  */
28
23
  GetSelectedItems(self: DListBox): table;
29
- }
30
-
31
- interface DListBox {
32
24
  /**
33
25
  * Returns selected item values.
34
26
  * @realm client and menu
35
27
  * @source https://wiki.facepunch.com/gmod/DListBox:GetSelectedValues
36
28
  */
37
29
  GetSelectedValues(self: DListBox): table;
38
- }
39
-
40
- interface DListBox {
41
30
  /**
42
31
  * Select a [DListBoxItem](https://wiki.facepunch.com/gmod/DListBoxItem) based on its value.
43
32
  *
@@ -45,9 +34,6 @@ interface DListBox {
45
34
  * @source https://wiki.facepunch.com/gmod/DListBox:SelectByName
46
35
  */
47
36
  SelectByName(self: DListBox, val: string): void;
48
- }
49
-
50
- interface DListBox {
51
37
  /**
52
38
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
53
39
  *
@@ -58,18 +44,12 @@ interface DListBox {
58
44
  * @source https://wiki.facepunch.com/gmod/DListBox:SelectItem
59
45
  */
60
46
  SelectItem(self: DListBox, item: Panel, onlyme: boolean): void;
61
- }
62
-
63
- interface DListBox {
64
47
  /**
65
48
  * Sets whether the list box can select multiple items.
66
49
  * @realm client and menu
67
50
  * @source https://wiki.facepunch.com/gmod/DListBox:SetMultiple
68
51
  */
69
52
  SetMultiple(self: DListBox, multiple: boolean): void;
70
- }
71
-
72
- interface DListBox {
73
53
  /**
74
54
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
55
  *
@@ -80,3 +60,10 @@ interface DListBox {
80
60
  SetSelectedItems(self: DListBox, items: table): void;
81
61
  }
82
62
 
63
+
64
+
65
+
66
+
67
+
68
+
69
+
@@ -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,6 @@ interface DListBoxItem {
15
13
  * @source https://wiki.facepunch.com/gmod/DListBoxItem:GetMother
16
14
  */
17
15
  GetMother(self: DListBoxItem): Panel;
18
- }
19
-
20
- interface DListBoxItem {
21
16
  /**
22
17
  * Selects this item.
23
18
  *
@@ -25,9 +20,6 @@ interface DListBoxItem {
25
20
  * @source https://wiki.facepunch.com/gmod/DListBoxItem:Select
26
21
  */
27
22
  Select(self: DListBoxItem, onlyMe: boolean): void;
28
- }
29
-
30
- interface DListBoxItem {
31
23
  /**
32
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
33
25
  *
@@ -40,3 +32,6 @@ interface DListBoxItem {
40
32
  SetMother(self: DListBoxItem, parent: Panel): void;
41
33
  }
42
34
 
35
+
36
+
37
+
@@ -5,63 +5,43 @@
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
-
19
- interface DListView {
20
15
  /**
21
16
  * Adds a line to the list view.
22
17
  * @realm client and menu
23
18
  * @source https://wiki.facepunch.com/gmod/DListView:AddLine
24
19
  */
25
20
  AddLine(self: DListView, ...: any): Panel;
26
- }
27
-
28
- interface DListView {
29
21
  /**
30
22
  * Clears the current selection in the DListView.
31
23
  * @realm client and menu
32
24
  * @source https://wiki.facepunch.com/gmod/DListView:ClearSelection
33
25
  */
34
26
  ClearSelection(self: DListView): void;
35
- }
36
-
37
- interface DListView {
38
27
  /**
39
28
  * Gets the width of a column.
40
29
  * @realm client and menu
41
30
  * @source https://wiki.facepunch.com/gmod/DListView:ColumnWidth
42
31
  */
43
32
  ColumnWidth(self: DListView, column: number): number;
44
- }
45
-
46
- interface DListView {
47
33
  /**
48
34
  * Creates the lines and gets the height of the contents, in a DListView.
49
35
  * @realm client and menu
50
36
  * @source https://wiki.facepunch.com/gmod/DListView:DataLayout
51
37
  */
52
38
  DataLayout(self: DListView): number;
53
- }
54
-
55
- interface DListView {
56
39
  /**
57
40
  * Removes the scrollbar.
58
41
  * @realm client and menu
59
42
  * @source https://wiki.facepunch.com/gmod/DListView:DisableScrollbar
60
43
  */
61
44
  DisableScrollbar(self: DListView): void;
62
- }
63
-
64
- interface DListView {
65
45
  /**
66
46
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
47
  *
@@ -72,18 +52,12 @@ interface DListView {
72
52
  * @source https://wiki.facepunch.com/gmod/DListView:FixColumnsLayout
73
53
  */
74
54
  FixColumnsLayout(self: DListView): void;
75
- }
76
-
77
- interface DListView {
78
55
  /**
79
56
  * Gets the canvas.
80
57
  * @realm client and menu
81
58
  * @source https://wiki.facepunch.com/gmod/DListView:GetCanvas
82
59
  */
83
60
  GetCanvas(self: DListView): Panel;
84
- }
85
-
86
- interface DListView {
87
61
  /**
88
62
  * Returns the height of the data of the [DListView](https://wiki.facepunch.com/gmod/DListView).
89
63
  *
@@ -93,9 +67,6 @@ interface DListView {
93
67
  * @source https://wiki.facepunch.com/gmod/DListView:GetDataHeight
94
68
  */
95
69
  GetDataHeight(self: DListView): number;
96
- }
97
-
98
- interface DListView {
99
70
  /**
100
71
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
101
72
  *
@@ -106,9 +77,6 @@ interface DListView {
106
77
  * @source https://wiki.facepunch.com/gmod/DListView:GetDirty
107
78
  */
108
79
  GetDirty(self: DListView): boolean;
109
- }
110
-
111
- interface DListView {
112
80
  /**
113
81
  * Returns the height of the header of the [DListView](https://wiki.facepunch.com/gmod/DListView).
114
82
  *
@@ -118,18 +86,12 @@ interface DListView {
118
86
  * @source https://wiki.facepunch.com/gmod/DListView:GetHeaderHeight
119
87
  */
120
88
  GetHeaderHeight(self: DListView): number;
121
- }
122
-
123
- interface DListView {
124
89
  /**
125
90
  * Returns whether the header line should be visible on not.
126
91
  * @realm client and menu
127
92
  * @source https://wiki.facepunch.com/gmod/DListView:GetHideHeaders
128
93
  */
129
94
  GetHideHeaders(self: DListView): boolean;
130
- }
131
-
132
- interface DListView {
133
95
  /**
134
96
  * Returns the height of [DListView:GetCanvas](https://wiki.facepunch.com/gmod/DListView:GetCanvas).
135
97
  *
@@ -139,27 +101,18 @@ interface DListView {
139
101
  * @source https://wiki.facepunch.com/gmod/DListView:GetInnerTall
140
102
  */
141
103
  GetInnerTall(self: DListView): number;
142
- }
143
-
144
- interface DListView {
145
104
  /**
146
105
  * Gets the [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) at the given index.
147
106
  * @realm client and menu
148
107
  * @source https://wiki.facepunch.com/gmod/DListView:GetLine
149
108
  */
150
109
  GetLine(self: DListView, id: number): Panel;
151
- }
152
-
153
- interface DListView {
154
110
  /**
155
111
  * Gets all of the lines added to the DListView.
156
112
  * @realm client and menu
157
113
  * @source https://wiki.facepunch.com/gmod/DListView:GetLines
158
114
  */
159
115
  GetLines(self: DListView): table;
160
- }
161
-
162
- interface DListView {
163
116
  /**
164
117
  * Returns whether multiple lines can be selected or not.
165
118
  *
@@ -169,18 +122,12 @@ interface DListView {
169
122
  * @source https://wiki.facepunch.com/gmod/DListView:GetMultiSelect
170
123
  */
171
124
  GetMultiSelect(self: DListView): boolean;
172
- }
173
-
174
- interface DListView {
175
125
  /**
176
126
  * Gets all of the lines that are currently selected.
177
127
  * @realm client and menu
178
128
  * @source https://wiki.facepunch.com/gmod/DListView:GetSelected
179
129
  */
180
130
  GetSelected(self: DListView): table;
181
- }
182
-
183
- interface DListView {
184
131
  /**
185
132
  * Gets the currently selected [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) index.
186
133
  *
@@ -190,9 +137,6 @@ interface DListView {
190
137
  * @source https://wiki.facepunch.com/gmod/DListView:GetSelectedLine
191
138
  */
192
139
  GetSelectedLine(self: DListView): (number, Panel);
193
- }
194
-
195
- interface DListView {
196
140
  /**
197
141
  * Returns whether sorting of columns by clicking their headers is allowed or not.
198
142
  *
@@ -202,9 +146,6 @@ interface DListView {
202
146
  * @source https://wiki.facepunch.com/gmod/DListView:GetSortable
203
147
  */
204
148
  GetSortable(self: DListView): boolean;
205
- }
206
-
207
- interface DListView {
208
149
  /**
209
150
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
210
151
  *
@@ -215,9 +156,6 @@ interface DListView {
215
156
  * @source https://wiki.facepunch.com/gmod/DListView:GetSortedID
216
157
  */
217
158
  GetSortedID(self: DListView, lineId: number): number;
218
- }
219
-
220
- interface DListView {
221
159
  /**
222
160
  * **INTERNAL**: Use [DListView:OnRowSelected](https://wiki.facepunch.com/gmod/DListView:OnRowSelected) instead!
223
161
  *
@@ -228,9 +166,6 @@ interface DListView {
228
166
  * @source https://wiki.facepunch.com/gmod/DListView:OnClickLine
229
167
  */
230
168
  OnClickLine(self: DListView, line: Panel, isSelected: boolean): void;
231
- }
232
-
233
- interface DListView {
234
169
  /**
235
170
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
236
171
  *
@@ -241,36 +176,24 @@ interface DListView {
241
176
  * @source https://wiki.facepunch.com/gmod/DListView:OnRequestResize
242
177
  */
243
178
  OnRequestResize(self: DListView, column: Panel, size: number): void;
244
- }
245
-
246
- interface DListView {
247
179
  /**
248
180
  * Removes a line from the list view.
249
181
  * @realm client and menu
250
182
  * @source https://wiki.facepunch.com/gmod/DListView:RemoveLine
251
183
  */
252
184
  RemoveLine(self: DListView, line: number): void;
253
- }
254
-
255
- interface DListView {
256
185
  /**
257
186
  * Selects the line at the first index of the DListView if one has been added.
258
187
  * @realm client and menu
259
188
  * @source https://wiki.facepunch.com/gmod/DListView:SelectFirstItem
260
189
  */
261
190
  SelectFirstItem(self: DListView): void;
262
- }
263
-
264
- interface DListView {
265
191
  /**
266
192
  * Selects a line in the listview.
267
193
  * @realm client and menu
268
194
  * @source https://wiki.facepunch.com/gmod/DListView:SelectItem
269
195
  */
270
196
  SelectItem(self: DListView, Line: Panel): void;
271
- }
272
-
273
- interface DListView {
274
197
  /**
275
198
  * Sets the height of all lines of the [DListView](https://wiki.facepunch.com/gmod/DListView) except for the header line.
276
199
  *
@@ -280,9 +203,6 @@ interface DListView {
280
203
  * @source https://wiki.facepunch.com/gmod/DListView:SetDataHeight
281
204
  */
282
205
  SetDataHeight(self: DListView, height: number): void;
283
- }
284
-
285
- interface DListView {
286
206
  /**
287
207
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
288
208
  *
@@ -293,9 +213,6 @@ interface DListView {
293
213
  * @source https://wiki.facepunch.com/gmod/DListView:SetDirty
294
214
  */
295
215
  SetDirty(self: DListView, isDirty: boolean): void;
296
- }
297
-
298
- interface DListView {
299
216
  /**
300
217
  * Sets the height of the header line of the [DListView](https://wiki.facepunch.com/gmod/DListView).
301
218
  *
@@ -305,27 +222,18 @@ interface DListView {
305
222
  * @source https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight
306
223
  */
307
224
  SetHeaderHeight(self: DListView, height: number): void;
308
- }
309
-
310
- interface DListView {
311
225
  /**
312
226
  * Sets whether the header line should be visible on not.
313
227
  * @realm client and menu
314
228
  * @source https://wiki.facepunch.com/gmod/DListView:SetHideHeaders
315
229
  */
316
230
  SetHideHeaders(self: DListView, hide: boolean): void;
317
- }
318
-
319
- interface DListView {
320
231
  /**
321
232
  * 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
233
  * @realm client and menu
323
234
  * @source https://wiki.facepunch.com/gmod/DListView:SetMultiSelect
324
235
  */
325
236
  SetMultiSelect(self: DListView, allowMultiSelect: boolean): void;
326
- }
327
-
328
- interface DListView {
329
237
  /**
330
238
  * Enables/disables the sorting of columns by clicking.
331
239
  * **NOTE**: This will only affect columns that are created after this function is called. Existing columns will be unaffected.
@@ -335,18 +243,12 @@ interface DListView {
335
243
  * @source https://wiki.facepunch.com/gmod/DListView:SetSortable
336
244
  */
337
245
  SetSortable(self: DListView, isSortable: boolean): void;
338
- }
339
-
340
- interface DListView {
341
246
  /**
342
247
  * Sorts the items in the specified column.
343
248
  * @realm client and menu
344
249
  * @source https://wiki.facepunch.com/gmod/DListView:SortByColumn
345
250
  */
346
251
  SortByColumn(self: DListView, columnIndex: number, descending?: boolean): void;
347
- }
348
-
349
- interface DListView {
350
252
  /**
351
253
  * Sorts the list based on given columns.
352
254
  *
@@ -358,3 +260,36 @@ interface DListView {
358
260
  SortByColumns(self: DListView, column1?: number, descrending1?: boolean, column2?: number, descrending2?: boolean, column3?: number, descrending3?: boolean, column4?: number, descrending4?: boolean): void;
359
261
  }
360
262
 
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
@@ -9,27 +9,19 @@
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
-
23
- interface DListView_Column {
24
19
  /**
25
20
  * Returns whether the column is sorted in descending order or not.
26
21
  * @realm client and menu
27
22
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetDescending
28
23
  */
29
24
  GetDescending(self: DListView_Column): boolean;
30
- }
31
-
32
- interface DListView_Column {
33
25
  /**
34
26
  * Returns the fixed width of this column.
35
27
  *
@@ -37,45 +29,30 @@ interface DListView_Column {
37
29
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetFixedWidth
38
30
  */
39
31
  GetFixedWidth(self: DListView_Column): number;
40
- }
41
-
42
- interface DListView_Column {
43
32
  /**
44
33
  * Returns the maximum width set with [DListView_Column:SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth).
45
34
  * @realm client and menu
46
35
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMaxWidth
47
36
  */
48
37
  GetMaxWidth(self: DListView_Column): number;
49
- }
50
-
51
- interface DListView_Column {
52
38
  /**
53
39
  * Returns the minimum width set with [DListView_Column:SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth).
54
40
  * @realm client and menu
55
41
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetMinWidth
56
42
  */
57
43
  GetMinWidth(self: DListView_Column): number;
58
- }
59
-
60
- interface DListView_Column {
61
44
  /**
62
45
  * Returns the text alignment for the column
63
46
  * @realm client and menu
64
47
  * @source https://wiki.facepunch.com/gmod/DListView_Column:GetTextAlign
65
48
  */
66
49
  GetTextAlign(self: DListView_Column): number;
67
- }
68
-
69
- interface DListView_Column {
70
50
  /**
71
51
  * Resizes the column, additionally adjusting the size of the column to the right, if any.
72
52
  * @realm client and menu
73
53
  * @source https://wiki.facepunch.com/gmod/DListView_Column:ResizeColumn
74
54
  */
75
55
  ResizeColumn(self: DListView_Column, size: number): void;
76
- }
77
-
78
- interface DListView_Column {
79
56
  /**
80
57
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
81
58
  * Sets the index used for this column.
@@ -83,18 +60,12 @@ interface DListView_Column {
83
60
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetColumnID
84
61
  */
85
62
  SetColumnID(self: DListView_Column, index: number): void;
86
- }
87
-
88
- interface DListView_Column {
89
63
  /**
90
64
  * Sets whether the column is sorted in descending order or not.
91
65
  * @realm client and menu
92
66
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetDescending
93
67
  */
94
68
  SetDescending(self: DListView_Column, desc: boolean): void;
95
- }
96
-
97
- interface DListView_Column {
98
69
  /**
99
70
  * Sets the fixed width of the column.
100
71
  * **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 +75,18 @@ interface DListView_Column {
104
75
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetFixedWidth
105
76
  */
106
77
  SetFixedWidth(self: DListView_Column, width: number): void;
107
- }
108
-
109
- interface DListView_Column {
110
78
  /**
111
79
  * Sets the maximum width of a column.
112
80
  * @realm client and menu
113
81
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth
114
82
  */
115
83
  SetMaxWidth(self: DListView_Column, width: number): void;
116
- }
117
-
118
- interface DListView_Column {
119
84
  /**
120
85
  * Sets the minimum width of a column.
121
86
  * @realm client and menu
122
87
  * @source https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth
123
88
  */
124
89
  SetMinWidth(self: DListView_Column, width: number): void;
125
- }
126
-
127
- interface DListView_Column {
128
90
  /**
129
91
  * Sets the text alignment for the column
130
92
  * @realm client and menu
@@ -133,3 +95,16 @@ interface DListView_Column {
133
95
  SetTextAlign(self: DListView_Column, alignment: number): void;
134
96
  }
135
97
 
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+