@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
@@ -9,9 +9,7 @@
9
9
  * @realm client and menu
10
10
  * @source https://wiki.facepunch.com/gmod/DListView_Line
11
11
  */
12
- interface DListView_Line extends Panel {}
13
-
14
- interface DListView_Line {
12
+ interface DListView_Line extends Panel {
15
13
  /**
16
14
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
17
15
  *
@@ -22,18 +20,14 @@ interface DListView_Line {
22
20
  * @source https://wiki.facepunch.com/gmod/DListView_Line:DataLayout
23
21
  */
24
22
  DataLayout(self: DListView_Line, pnl: DListView): void;
25
- }
26
23
 
27
- interface DListView_Line {
28
24
  /**
29
25
  * Returns whether this line is odd or even in the list. This is internally used (and set) to change the looks of every other line.
30
26
  * @realm client and menu
31
27
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetAltLine
32
28
  */
33
29
  GetAltLine(self: DListView_Line): boolean;
34
- }
35
30
 
36
- interface DListView_Line {
37
31
  /**
38
32
  * Gets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
39
33
  *
@@ -43,27 +37,21 @@ interface DListView_Line {
43
37
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetColumnText
44
38
  */
45
39
  GetColumnText(self: DListView_Line, column: number): string;
46
- }
47
40
 
48
- interface DListView_Line {
49
41
  /**
50
42
  * Returns the ID of this line, set automatically in [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
51
43
  * @realm client and menu
52
44
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetID
53
45
  */
54
46
  GetID(self: DListView_Line): number;
55
- }
56
47
 
57
- interface DListView_Line {
58
48
  /**
59
49
  * Returns the parent [DListView](https://wiki.facepunch.com/gmod/DListView) of this line.
60
50
  * @realm client and menu
61
51
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetListView
62
52
  */
63
53
  GetListView(self: DListView_Line): DListView;
64
- }
65
54
 
66
- interface DListView_Line {
67
55
  /**
68
56
  * Returns the data stored on given cell of this line.
69
57
  *
@@ -72,18 +60,14 @@ interface DListView_Line {
72
60
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetSortValue
73
61
  */
74
62
  GetSortValue(self: DListView_Line, column: number): any;
75
- }
76
63
 
77
- interface DListView_Line {
78
64
  /**
79
65
  * Returns whether this line is selected.
80
66
  * @realm client and menu
81
67
  * @source https://wiki.facepunch.com/gmod/DListView_Line:IsLineSelected
82
68
  */
83
69
  IsLineSelected(self: DListView_Line): boolean;
84
- }
85
70
 
86
- interface DListView_Line {
87
71
  /**
88
72
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
89
73
  *
@@ -92,18 +76,14 @@ interface DListView_Line {
92
76
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetAltLine
93
77
  */
94
78
  SetAltLine(self: DListView_Line, alt: boolean): void;
95
- }
96
79
 
97
- interface DListView_Line {
98
80
  /**
99
81
  * Sets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
100
82
  * @realm client and menu
101
83
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetColumnText
102
84
  */
103
85
  SetColumnText(self: DListView_Line, column: number, value: string): DLabel;
104
- }
105
86
 
106
- interface DListView_Line {
107
87
  /**
108
88
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
109
89
  *
@@ -113,9 +93,7 @@ interface DListView_Line {
113
93
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetID
114
94
  */
115
95
  SetID(self: DListView_Line, id: number): void;
116
- }
117
96
 
118
- interface DListView_Line {
119
97
  /**
120
98
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
121
99
  *
@@ -125,9 +103,7 @@ interface DListView_Line {
125
103
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetListView
126
104
  */
127
105
  SetListView(self: DListView_Line, pnl: DListView): void;
128
- }
129
106
 
130
- interface DListView_Line {
131
107
  /**
132
108
  * Allows you to store data per column.
133
109
  *
@@ -137,4 +113,3 @@ interface DListView_Line {
137
113
  */
138
114
  SetSortValue(self: DListView_Line, column: number, data: any): void;
139
115
  }
140
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListViewHeaderLabel
9
9
  */
10
10
  interface DListViewHeaderLabel extends DLabel {}
11
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListViewLabel
9
9
  */
10
10
  interface DListViewLabel extends DLabel {}
11
-
@@ -8,4 +8,3 @@
8
8
  * @source https://wiki.facepunch.com/gmod/DListViewLine
9
9
  */
10
10
  interface DListViewLine extends Panel {}
11
-
@@ -5,18 +5,14 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DMenu
7
7
  */
8
- interface DMenu extends DScrollPanel {}
9
-
10
- interface DMenu {
8
+ interface DMenu extends DScrollPanel {
11
9
  /**
12
10
  * Creates a [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) and adds it as an option into the menu. Checking and unchecking the option will alter the given console variable's value.
13
11
  * @realm client and menu
14
12
  * @source https://wiki.facepunch.com/gmod/DMenu:AddCVar
15
13
  */
16
14
  AddCVar(self: DMenu, strText: string, convar: string, on: string, off: string, funcFunction?: (pnl: Panel) => void): Panel;
17
- }
18
15
 
19
- interface DMenu {
20
16
  /**
21
17
  * Add an option to the DMenu.
22
18
  * @realm client
@@ -24,10 +20,7 @@ interface DMenu {
24
20
  * @source https://wiki.facepunch.com/gmod/DMenu:AddOption
25
21
  */
26
22
  AddOption(self: DMenu, name: string, func?: function): DMenuOption;
27
- }
28
-
29
23
 
30
- interface DMenu {
31
24
  /**
32
25
  * Adds a panel to the DMenu as if it were an option. This invokes
33
26
  * DScrollPanel:AddItem and will not create a new panel if a class name is
@@ -37,19 +30,14 @@ interface DMenu {
37
30
  * @source https://wiki.facepunch.com/gmod/DMenu:AddPanel
38
31
  */
39
32
  AddPanel<T extends Panel>(self: DMenu, pnl: T): void;
40
- }
41
-
42
33
 
43
- interface DMenu {
44
34
  /**
45
35
  * Adds a horizontal line spacer.
46
36
  * @realm client and menu
47
37
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSpacer
48
38
  */
49
39
  AddSpacer(self: DMenu): void;
50
- }
51
40
 
52
- interface DMenu {
53
41
  /**
54
42
  * Add a sub menu to the DMenu.
55
43
  * @realm client
@@ -57,10 +45,7 @@ interface DMenu {
57
45
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSubMenu
58
46
  */
59
47
  AddSubMenu(self: DMenu, Name: string, func?: function): (DMenu, DMenuOption);
60
- }
61
-
62
48
 
63
- interface DMenu {
64
49
  /**
65
50
  * Clears all highlights made by [DMenu:HighlightItem](https://wiki.facepunch.com/gmod/DMenu:HighlightItem).
66
51
  *
@@ -70,9 +55,7 @@ interface DMenu {
70
55
  * @source https://wiki.facepunch.com/gmod/DMenu:ClearHighlights
71
56
  */
72
57
  ClearHighlights(self: DMenu): void;
73
- }
74
58
 
75
- interface DMenu {
76
59
  /**
77
60
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
78
61
  *
@@ -83,9 +66,7 @@ interface DMenu {
83
66
  * @source https://wiki.facepunch.com/gmod/DMenu:CloseSubMenu
84
67
  */
85
68
  CloseSubMenu(self: DMenu, menu: Panel): void;
86
- }
87
69
 
88
- interface DMenu {
89
70
  /**
90
71
  * Set by [DMenu:SetDeleteSelf](https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf)
91
72
  *
@@ -93,9 +74,7 @@ interface DMenu {
93
74
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDeleteSelf
94
75
  */
95
76
  GetDeleteSelf(self: DMenu): boolean;
96
- }
97
77
 
98
- interface DMenu {
99
78
  /**
100
79
  * Returns the value set by [DMenu:SetDrawBorder](https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder).
101
80
  *
@@ -103,9 +82,7 @@ interface DMenu {
103
82
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawBorder
104
83
  */
105
84
  GetDrawBorder(self: DMenu): boolean;
106
- }
107
85
 
108
- interface DMenu {
109
86
  /**
110
87
  * Returns whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color or not.
111
88
  *
@@ -115,27 +92,21 @@ interface DMenu {
115
92
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawColumn
116
93
  */
117
94
  GetDrawColumn(self: DMenu): boolean;
118
- }
119
95
 
120
- interface DMenu {
121
96
  /**
122
97
  * Returns the maximum height of the [DMenu](https://wiki.facepunch.com/gmod/DMenu).
123
98
  * @realm client and menu
124
99
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMaxHeight
125
100
  */
126
101
  GetMaxHeight(self: DMenu): number;
127
- }
128
102
 
129
- interface DMenu {
130
103
  /**
131
104
  * Returns the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu) in pixels
132
105
  * @realm client and menu
133
106
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMinimumWidth
134
107
  */
135
108
  GetMinimumWidth(self: DMenu): number;
136
- }
137
109
 
138
- interface DMenu {
139
110
  /**
140
111
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
141
112
  *
@@ -148,9 +119,7 @@ interface DMenu {
148
119
  * @source https://wiki.facepunch.com/gmod/DMenu:GetOpenSubMenu
149
120
  */
150
121
  GetOpenSubMenu(self: DMenu): Panel;
151
- }
152
122
 
153
- interface DMenu {
154
123
  /**
155
124
  * Highlights selected item in the [DMenu](https://wiki.facepunch.com/gmod/DMenu) by setting the item's key "Highlight" to true.
156
125
  *
@@ -160,36 +129,28 @@ interface DMenu {
160
129
  * @source https://wiki.facepunch.com/gmod/DMenu:HighlightItem
161
130
  */
162
131
  HighlightItem(self: DMenu, item: Panel): void;
163
- }
164
132
 
165
- interface DMenu {
166
133
  /**
167
134
  * Opens the [DMenu](https://wiki.facepunch.com/gmod/DMenu) at given position.
168
135
  * @realm client and menu
169
136
  * @source https://wiki.facepunch.com/gmod/DMenu:Open
170
137
  */
171
138
  Open(self: DMenu, x?: number, y?: number, skipanimation?: any, ownerpanel?: Panel): void;
172
- }
173
139
 
174
- interface DMenu {
175
140
  /**
176
141
  * Closes any active sub menus, and opens a new one.
177
142
  * @realm client and menu
178
143
  * @source https://wiki.facepunch.com/gmod/DMenu:OpenSubMenu
179
144
  */
180
145
  OpenSubMenu(self: DMenu, item: Panel, menu?: Panel): void;
181
- }
182
146
 
183
- interface DMenu {
184
147
  /**
185
148
  * Called when a option has been selected
186
149
  * @realm client and menu
187
150
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelected
188
151
  */
189
152
  OptionSelected(self: DMenu, option: Panel, optionText: string): void;
190
- }
191
153
 
192
- interface DMenu {
193
154
  /**
194
155
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
195
156
  *
@@ -200,9 +161,7 @@ interface DMenu {
200
161
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelectedInternal
201
162
  */
202
163
  OptionSelectedInternal(self: DMenu, option: Panel): void;
203
- }
204
164
 
205
- interface DMenu {
206
165
  /**
207
166
  * Set to true by default. IF set to true, the menu will be deleted when it is closed, not simply hidden.
208
167
  *
@@ -212,9 +171,7 @@ interface DMenu {
212
171
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf
213
172
  */
214
173
  SetDeleteSelf(self: DMenu, newState: boolean): void;
215
- }
216
174
 
217
- interface DMenu {
218
175
  /**
219
176
  * Does nothing.
220
177
  *
@@ -222,36 +179,28 @@ interface DMenu {
222
179
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder
223
180
  */
224
181
  SetDrawBorder(self: DMenu, bool: boolean): void;
225
- }
226
182
 
227
- interface DMenu {
228
183
  /**
229
184
  * Sets whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color.
230
185
  * @realm client and menu
231
186
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawColumn
232
187
  */
233
188
  SetDrawColumn(self: DMenu, draw: boolean): void;
234
- }
235
189
 
236
- interface DMenu {
237
190
  /**
238
191
  * Sets the maximum height the [DMenu](https://wiki.facepunch.com/gmod/DMenu) can have. If the height of all menu items exceed this value, a scroll bar will be automatically added.
239
192
  * @realm client and menu
240
193
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMaxHeight
241
194
  */
242
195
  SetMaxHeight(self: DMenu, maxHeight: number): void;
243
- }
244
196
 
245
- interface DMenu {
246
197
  /**
247
198
  * Sets the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu). The menu will be stretched to match the given value.
248
199
  * @realm client and menu
249
200
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMinimumWidth
250
201
  */
251
202
  SetMinimumWidth(self: DMenu, minWidth: number): void;
252
- }
253
203
 
254
- interface DMenu {
255
204
  /**
256
205
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
257
206
  *
@@ -263,4 +212,3 @@ interface DMenu {
263
212
  */
264
213
  SetOpenSubMenu(self: DMenu, item: Panel): void;
265
214
  }
266
-
@@ -5,9 +5,7 @@
5
5
  * @realm client and menu
6
6
  * @source https://wiki.facepunch.com/gmod/DMenuBar
7
7
  */
8
- interface DMenuBar extends DPanel {}
9
-
10
- interface DMenuBar {
8
+ interface DMenuBar extends DPanel {
11
9
  /**
12
10
  * Creates a new menu panel on the menu bar.
13
11
  * @realm client
@@ -15,10 +13,7 @@ interface DMenuBar {
15
13
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddMenu
16
14
  */
17
15
  AddMenu(self: DMenuBar, label: string): DMenu;
18
- }
19
16
 
20
-
21
- interface DMenuBar {
22
17
  /**
23
18
  * Retrieves or creates a menu panel on the menu bar.
24
19
  * @realm client
@@ -26,10 +21,7 @@ interface DMenuBar {
26
21
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddOrGetMenu
27
22
  */
28
23
  AddOrGetMenu(self: DMenuBar, label: string): DMenu;
29
- }
30
24
 
31
-
32
- interface DMenuBar {
33
25
  /**
34
26
  * Returns the currently opened menu, if any.
35
27
  * @realm client
@@ -38,5 +30,3 @@ interface DMenuBar {
38
30
  */
39
31
  GetOpenMenu(self: DMenuBar): DMenu | nil;
40
32
  }
41
-
42
-
@@ -9,45 +9,35 @@
9
9
  * @realm client and menu
10
10
  * @source https://wiki.facepunch.com/gmod/DMenuOption
11
11
  */
12
- interface DMenuOption extends DButton {}
13
-
14
- interface DMenuOption {
12
+ interface DMenuOption extends DButton {
15
13
  /**
16
14
  * Creates a sub [DMenu](https://wiki.facepunch.com/gmod/DMenu) and returns it. Has no duplicate call protection.
17
15
  * @realm client and menu
18
16
  * @source https://wiki.facepunch.com/gmod/DMenuOption:AddSubMenu
19
17
  */
20
18
  AddSubMenu(self: DMenuOption): Panel;
21
- }
22
19
 
23
- interface DMenuOption {
24
20
  /**
25
21
  * Returns the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
26
22
  * @realm client and menu
27
23
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetChecked
28
24
  */
29
25
  GetChecked(self: DMenuOption): boolean;
30
- }
31
26
 
32
- interface DMenuOption {
33
27
  /**
34
28
  * Returns whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
35
29
  * @realm client and menu
36
30
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable
37
31
  */
38
32
  GetIsCheckable(self: DMenuOption): boolean;
39
- }
40
33
 
41
- interface DMenuOption {
42
34
  /**
43
35
  * Returns which [DMenu](https://wiki.facepunch.com/gmod/DMenu) this option belongs.
44
36
  * @realm client and menu
45
37
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetMenu
46
38
  */
47
39
  GetMenu(self: DMenuOption): Panel;
48
- }
49
40
 
50
- interface DMenuOption {
51
41
  /**
52
42
  * Returns whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button, set by [DMenuOption:SetRadio](https://wiki.facepunch.com/gmod/DMenuOption:SetRadio).
53
43
  *
@@ -55,18 +45,14 @@ interface DMenuOption {
55
45
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetRadio
56
46
  */
57
47
  GetRadio(self: DMenuOption): boolean;
58
- }
59
48
 
60
- interface DMenuOption {
61
49
  /**
62
50
  * Called whenever the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption)'s checked state changes.
63
51
  * @realm client and menu
64
52
  * @source https://wiki.facepunch.com/gmod/DMenuOption:OnChecked
65
53
  */
66
54
  OnChecked(self: DMenuOption, checked: boolean): void;
67
- }
68
55
 
69
- interface DMenuOption {
70
56
  /**
71
57
  * Sets the checked state of the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
72
58
  *
@@ -76,9 +62,7 @@ interface DMenuOption {
76
62
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetChecked
77
63
  */
78
64
  SetChecked(self: DMenuOption, checked: boolean): void;
79
- }
80
65
 
81
- interface DMenuOption {
82
66
  /**
83
67
  * Sets whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
84
68
  *
@@ -87,9 +71,7 @@ interface DMenuOption {
87
71
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetIsCheckable
88
72
  */
89
73
  SetIsCheckable(self: DMenuOption, checkable: boolean): void;
90
- }
91
74
 
92
- interface DMenuOption {
93
75
  /**
94
76
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
95
77
  * Used to set the [DMenu](https://wiki.facepunch.com/gmod/DMenu) for this option.
@@ -97,9 +79,7 @@ interface DMenuOption {
97
79
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetMenu
98
80
  */
99
81
  SetMenu(self: DMenuOption, pnl: Panel): void;
100
- }
101
82
 
102
- interface DMenuOption {
103
83
  /**
104
84
  * Sets whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button.
105
85
  *
@@ -109,9 +89,7 @@ interface DMenuOption {
109
89
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetRadio
110
90
  */
111
91
  SetRadio(self: DMenuOption, checked: boolean): void;
112
- }
113
92
 
114
- interface DMenuOption {
115
93
  /**
116
94
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
117
95
  *
@@ -122,9 +100,7 @@ interface DMenuOption {
122
100
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetSubMenu
123
101
  */
124
102
  SetSubMenu(self: DMenuOption, menu: Panel): void;
125
- }
126
103
 
127
- interface DMenuOption {
128
104
  /**
129
105
  * Toggles the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption). Does not respect [DMenuOption:GetIsCheckable](https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable).
130
106
  * @realm client and menu
@@ -132,4 +108,3 @@ interface DMenuOption {
132
108
  */
133
109
  ToggleCheck(self: DMenuOption): void;
134
110
  }
135
-
@@ -15,45 +15,35 @@
15
15
  * @realm client
16
16
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar
17
17
  */
18
- interface DMenuOptionCVar extends DMenuOption {}
19
-
20
- interface DMenuOptionCVar {
18
+ interface DMenuOptionCVar extends DMenuOption {
21
19
  /**
22
20
  * Returns the [console variable](https://wiki.facepunch.com/gmod/ConVars) used by the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar).
23
21
  * @realm client
24
22
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetConVar
25
23
  */
26
24
  GetConVar(self: DMenuOptionCVar): string;
27
- }
28
25
 
29
- interface DMenuOptionCVar {
30
26
  /**
31
27
  * Returns the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is not checked.
32
28
  * @realm client
33
29
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOff
34
30
  */
35
31
  GetValueOff(self: DMenuOptionCVar): string;
36
- }
37
32
 
38
- interface DMenuOptionCVar {
39
33
  /**
40
34
  * Return the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is checked.
41
35
  * @realm client
42
36
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOn
43
37
  */
44
38
  GetValueOn(self: DMenuOptionCVar): string;
45
- }
46
39
 
47
- interface DMenuOptionCVar {
48
40
  /**
49
41
  * Sets the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is not checked.
50
42
  * @realm client
51
43
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:SetValueOff
52
44
  */
53
45
  SetValueOff(self: DMenuOptionCVar, value: string): void;
54
- }
55
46
 
56
- interface DMenuOptionCVar {
57
47
  /**
58
48
  * Sets the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is checked.
59
49
  * @realm client
@@ -61,4 +51,3 @@ interface DMenuOptionCVar {
61
51
  */
62
52
  SetValueOn(self: DMenuOptionCVar, value: string): void;
63
53
  }
64
-