@tlua/gmod 1.0.3 → 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 (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
@@ -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,12 @@ 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
-
27
- interface DListView_Line {
28
23
  /**
29
24
  * 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
25
  * @realm client and menu
31
26
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetAltLine
32
27
  */
33
28
  GetAltLine(self: DListView_Line): boolean;
34
- }
35
-
36
- interface DListView_Line {
37
29
  /**
38
30
  * Gets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
39
31
  *
@@ -43,27 +35,18 @@ interface DListView_Line {
43
35
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetColumnText
44
36
  */
45
37
  GetColumnText(self: DListView_Line, column: number): string;
46
- }
47
-
48
- interface DListView_Line {
49
38
  /**
50
39
  * Returns the ID of this line, set automatically in [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
51
40
  * @realm client and menu
52
41
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetID
53
42
  */
54
43
  GetID(self: DListView_Line): number;
55
- }
56
-
57
- interface DListView_Line {
58
44
  /**
59
45
  * Returns the parent [DListView](https://wiki.facepunch.com/gmod/DListView) of this line.
60
46
  * @realm client and menu
61
47
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetListView
62
48
  */
63
49
  GetListView(self: DListView_Line): DListView;
64
- }
65
-
66
- interface DListView_Line {
67
50
  /**
68
51
  * Returns the data stored on given cell of this line.
69
52
  *
@@ -72,18 +55,12 @@ interface DListView_Line {
72
55
  * @source https://wiki.facepunch.com/gmod/DListView_Line:GetSortValue
73
56
  */
74
57
  GetSortValue(self: DListView_Line, column: number): any;
75
- }
76
-
77
- interface DListView_Line {
78
58
  /**
79
59
  * Returns whether this line is selected.
80
60
  * @realm client and menu
81
61
  * @source https://wiki.facepunch.com/gmod/DListView_Line:IsLineSelected
82
62
  */
83
63
  IsLineSelected(self: DListView_Line): boolean;
84
- }
85
-
86
- interface DListView_Line {
87
64
  /**
88
65
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
89
66
  *
@@ -92,18 +69,12 @@ interface DListView_Line {
92
69
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetAltLine
93
70
  */
94
71
  SetAltLine(self: DListView_Line, alt: boolean): void;
95
- }
96
-
97
- interface DListView_Line {
98
72
  /**
99
73
  * Sets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
100
74
  * @realm client and menu
101
75
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetColumnText
102
76
  */
103
77
  SetColumnText(self: DListView_Line, column: number, value: string): DLabel;
104
- }
105
-
106
- interface DListView_Line {
107
78
  /**
108
79
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
109
80
  *
@@ -113,9 +84,6 @@ interface DListView_Line {
113
84
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetID
114
85
  */
115
86
  SetID(self: DListView_Line, id: number): void;
116
- }
117
-
118
- interface DListView_Line {
119
87
  /**
120
88
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
121
89
  *
@@ -125,9 +93,6 @@ interface DListView_Line {
125
93
  * @source https://wiki.facepunch.com/gmod/DListView_Line:SetListView
126
94
  */
127
95
  SetListView(self: DListView_Line, pnl: DListView): void;
128
- }
129
-
130
- interface DListView_Line {
131
96
  /**
132
97
  * Allows you to store data per column.
133
98
  *
@@ -138,3 +103,15 @@ interface DListView_Line {
138
103
  SetSortValue(self: DListView_Line, column: number, data: any): void;
139
104
  }
140
105
 
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
@@ -5,18 +5,13 @@
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
-
19
- interface DMenu {
20
15
  /**
21
16
  * Add an option to the DMenu.
22
17
  * @realm client
@@ -24,10 +19,6 @@ interface DMenu {
24
19
  * @source https://wiki.facepunch.com/gmod/DMenu:AddOption
25
20
  */
26
21
  AddOption(self: DMenu, name: string, func?: function): DMenuOption;
27
- }
28
-
29
-
30
- interface DMenu {
31
22
  /**
32
23
  * Adds a panel to the DMenu as if it were an option. This invokes
33
24
  * DScrollPanel:AddItem and will not create a new panel if a class name is
@@ -37,19 +28,12 @@ interface DMenu {
37
28
  * @source https://wiki.facepunch.com/gmod/DMenu:AddPanel
38
29
  */
39
30
  AddPanel<T extends Panel>(self: DMenu, pnl: T): void;
40
- }
41
-
42
-
43
- interface DMenu {
44
31
  /**
45
32
  * Adds a horizontal line spacer.
46
33
  * @realm client and menu
47
34
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSpacer
48
35
  */
49
36
  AddSpacer(self: DMenu): void;
50
- }
51
-
52
- interface DMenu {
53
37
  /**
54
38
  * Add a sub menu to the DMenu.
55
39
  * @realm client
@@ -57,10 +41,6 @@ interface DMenu {
57
41
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSubMenu
58
42
  */
59
43
  AddSubMenu(self: DMenu, Name: string, func?: function): (DMenu, DMenuOption);
60
- }
61
-
62
-
63
- interface DMenu {
64
44
  /**
65
45
  * Clears all highlights made by [DMenu:HighlightItem](https://wiki.facepunch.com/gmod/DMenu:HighlightItem).
66
46
  *
@@ -70,9 +50,6 @@ interface DMenu {
70
50
  * @source https://wiki.facepunch.com/gmod/DMenu:ClearHighlights
71
51
  */
72
52
  ClearHighlights(self: DMenu): void;
73
- }
74
-
75
- interface DMenu {
76
53
  /**
77
54
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
78
55
  *
@@ -83,9 +60,6 @@ interface DMenu {
83
60
  * @source https://wiki.facepunch.com/gmod/DMenu:CloseSubMenu
84
61
  */
85
62
  CloseSubMenu(self: DMenu, menu: Panel): void;
86
- }
87
-
88
- interface DMenu {
89
63
  /**
90
64
  * Set by [DMenu:SetDeleteSelf](https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf)
91
65
  *
@@ -93,9 +67,6 @@ interface DMenu {
93
67
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDeleteSelf
94
68
  */
95
69
  GetDeleteSelf(self: DMenu): boolean;
96
- }
97
-
98
- interface DMenu {
99
70
  /**
100
71
  * Returns the value set by [DMenu:SetDrawBorder](https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder).
101
72
  *
@@ -103,9 +74,6 @@ interface DMenu {
103
74
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawBorder
104
75
  */
105
76
  GetDrawBorder(self: DMenu): boolean;
106
- }
107
-
108
- interface DMenu {
109
77
  /**
110
78
  * Returns whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color or not.
111
79
  *
@@ -115,27 +83,18 @@ interface DMenu {
115
83
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawColumn
116
84
  */
117
85
  GetDrawColumn(self: DMenu): boolean;
118
- }
119
-
120
- interface DMenu {
121
86
  /**
122
87
  * Returns the maximum height of the [DMenu](https://wiki.facepunch.com/gmod/DMenu).
123
88
  * @realm client and menu
124
89
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMaxHeight
125
90
  */
126
91
  GetMaxHeight(self: DMenu): number;
127
- }
128
-
129
- interface DMenu {
130
92
  /**
131
93
  * Returns the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu) in pixels
132
94
  * @realm client and menu
133
95
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMinimumWidth
134
96
  */
135
97
  GetMinimumWidth(self: DMenu): number;
136
- }
137
-
138
- interface DMenu {
139
98
  /**
140
99
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
141
100
  *
@@ -148,9 +107,6 @@ interface DMenu {
148
107
  * @source https://wiki.facepunch.com/gmod/DMenu:GetOpenSubMenu
149
108
  */
150
109
  GetOpenSubMenu(self: DMenu): Panel;
151
- }
152
-
153
- interface DMenu {
154
110
  /**
155
111
  * Highlights selected item in the [DMenu](https://wiki.facepunch.com/gmod/DMenu) by setting the item's key "Highlight" to true.
156
112
  *
@@ -160,36 +116,24 @@ interface DMenu {
160
116
  * @source https://wiki.facepunch.com/gmod/DMenu:HighlightItem
161
117
  */
162
118
  HighlightItem(self: DMenu, item: Panel): void;
163
- }
164
-
165
- interface DMenu {
166
119
  /**
167
120
  * Opens the [DMenu](https://wiki.facepunch.com/gmod/DMenu) at given position.
168
121
  * @realm client and menu
169
122
  * @source https://wiki.facepunch.com/gmod/DMenu:Open
170
123
  */
171
124
  Open(self: DMenu, x?: number, y?: number, skipanimation?: any, ownerpanel?: Panel): void;
172
- }
173
-
174
- interface DMenu {
175
125
  /**
176
126
  * Closes any active sub menus, and opens a new one.
177
127
  * @realm client and menu
178
128
  * @source https://wiki.facepunch.com/gmod/DMenu:OpenSubMenu
179
129
  */
180
130
  OpenSubMenu(self: DMenu, item: Panel, menu?: Panel): void;
181
- }
182
-
183
- interface DMenu {
184
131
  /**
185
132
  * Called when a option has been selected
186
133
  * @realm client and menu
187
134
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelected
188
135
  */
189
136
  OptionSelected(self: DMenu, option: Panel, optionText: string): void;
190
- }
191
-
192
- interface DMenu {
193
137
  /**
194
138
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
195
139
  *
@@ -200,9 +144,6 @@ interface DMenu {
200
144
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelectedInternal
201
145
  */
202
146
  OptionSelectedInternal(self: DMenu, option: Panel): void;
203
- }
204
-
205
- interface DMenu {
206
147
  /**
207
148
  * Set to true by default. IF set to true, the menu will be deleted when it is closed, not simply hidden.
208
149
  *
@@ -212,9 +153,6 @@ interface DMenu {
212
153
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf
213
154
  */
214
155
  SetDeleteSelf(self: DMenu, newState: boolean): void;
215
- }
216
-
217
- interface DMenu {
218
156
  /**
219
157
  * Does nothing.
220
158
  *
@@ -222,36 +160,24 @@ interface DMenu {
222
160
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder
223
161
  */
224
162
  SetDrawBorder(self: DMenu, bool: boolean): void;
225
- }
226
-
227
- interface DMenu {
228
163
  /**
229
164
  * Sets whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color.
230
165
  * @realm client and menu
231
166
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawColumn
232
167
  */
233
168
  SetDrawColumn(self: DMenu, draw: boolean): void;
234
- }
235
-
236
- interface DMenu {
237
169
  /**
238
170
  * 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
171
  * @realm client and menu
240
172
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMaxHeight
241
173
  */
242
174
  SetMaxHeight(self: DMenu, maxHeight: number): void;
243
- }
244
-
245
- interface DMenu {
246
175
  /**
247
176
  * Sets the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu). The menu will be stretched to match the given value.
248
177
  * @realm client and menu
249
178
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMinimumWidth
250
179
  */
251
180
  SetMinimumWidth(self: DMenu, minWidth: number): void;
252
- }
253
-
254
- interface DMenu {
255
181
  /**
256
182
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
257
183
  *
@@ -264,3 +190,30 @@ interface DMenu {
264
190
  SetOpenSubMenu(self: DMenu, item: Panel): void;
265
191
  }
266
192
 
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
@@ -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,6 @@ interface DMenuBar {
15
13
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddMenu
16
14
  */
17
15
  AddMenu(self: DMenuBar, label: string): DMenu;
18
- }
19
-
20
-
21
- interface DMenuBar {
22
16
  /**
23
17
  * Retrieves or creates a menu panel on the menu bar.
24
18
  * @realm client
@@ -26,10 +20,6 @@ interface DMenuBar {
26
20
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddOrGetMenu
27
21
  */
28
22
  AddOrGetMenu(self: DMenuBar, label: string): DMenu;
29
- }
30
-
31
-
32
- interface DMenuBar {
33
23
  /**
34
24
  * Returns the currently opened menu, if any.
35
25
  * @realm client
@@ -40,3 +30,8 @@ interface DMenuBar {
40
30
  }
41
31
 
42
32
 
33
+
34
+
35
+
36
+
37
+
@@ -9,45 +9,31 @@
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
-
23
- interface DMenuOption {
24
19
  /**
25
20
  * Returns the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
26
21
  * @realm client and menu
27
22
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetChecked
28
23
  */
29
24
  GetChecked(self: DMenuOption): boolean;
30
- }
31
-
32
- interface DMenuOption {
33
25
  /**
34
26
  * Returns whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
35
27
  * @realm client and menu
36
28
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable
37
29
  */
38
30
  GetIsCheckable(self: DMenuOption): boolean;
39
- }
40
-
41
- interface DMenuOption {
42
31
  /**
43
32
  * Returns which [DMenu](https://wiki.facepunch.com/gmod/DMenu) this option belongs.
44
33
  * @realm client and menu
45
34
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetMenu
46
35
  */
47
36
  GetMenu(self: DMenuOption): Panel;
48
- }
49
-
50
- interface DMenuOption {
51
37
  /**
52
38
  * 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
39
  *
@@ -55,18 +41,12 @@ interface DMenuOption {
55
41
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetRadio
56
42
  */
57
43
  GetRadio(self: DMenuOption): boolean;
58
- }
59
-
60
- interface DMenuOption {
61
44
  /**
62
45
  * Called whenever the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption)'s checked state changes.
63
46
  * @realm client and menu
64
47
  * @source https://wiki.facepunch.com/gmod/DMenuOption:OnChecked
65
48
  */
66
49
  OnChecked(self: DMenuOption, checked: boolean): void;
67
- }
68
-
69
- interface DMenuOption {
70
50
  /**
71
51
  * Sets the checked state of the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
72
52
  *
@@ -76,9 +56,6 @@ interface DMenuOption {
76
56
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetChecked
77
57
  */
78
58
  SetChecked(self: DMenuOption, checked: boolean): void;
79
- }
80
-
81
- interface DMenuOption {
82
59
  /**
83
60
  * Sets whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
84
61
  *
@@ -87,9 +64,6 @@ interface DMenuOption {
87
64
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetIsCheckable
88
65
  */
89
66
  SetIsCheckable(self: DMenuOption, checkable: boolean): void;
90
- }
91
-
92
- interface DMenuOption {
93
67
  /**
94
68
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
95
69
  * Used to set the [DMenu](https://wiki.facepunch.com/gmod/DMenu) for this option.
@@ -97,9 +71,6 @@ interface DMenuOption {
97
71
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetMenu
98
72
  */
99
73
  SetMenu(self: DMenuOption, pnl: Panel): void;
100
- }
101
-
102
- interface DMenuOption {
103
74
  /**
104
75
  * Sets whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button.
105
76
  *
@@ -109,9 +80,6 @@ interface DMenuOption {
109
80
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetRadio
110
81
  */
111
82
  SetRadio(self: DMenuOption, checked: boolean): void;
112
- }
113
-
114
- interface DMenuOption {
115
83
  /**
116
84
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
117
85
  *
@@ -122,9 +90,6 @@ interface DMenuOption {
122
90
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetSubMenu
123
91
  */
124
92
  SetSubMenu(self: DMenuOption, menu: Panel): void;
125
- }
126
-
127
- interface DMenuOption {
128
93
  /**
129
94
  * 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
95
  * @realm client and menu
@@ -133,3 +98,15 @@ interface DMenuOption {
133
98
  ToggleCheck(self: DMenuOption): void;
134
99
  }
135
100
 
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
@@ -15,45 +15,31 @@
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
-
29
- interface DMenuOptionCVar {
30
25
  /**
31
26
  * 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
27
  * @realm client
33
28
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOff
34
29
  */
35
30
  GetValueOff(self: DMenuOptionCVar): string;
36
- }
37
-
38
- interface DMenuOptionCVar {
39
31
  /**
40
32
  * 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
33
  * @realm client
42
34
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOn
43
35
  */
44
36
  GetValueOn(self: DMenuOptionCVar): string;
45
- }
46
-
47
- interface DMenuOptionCVar {
48
37
  /**
49
38
  * 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
39
  * @realm client
51
40
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:SetValueOff
52
41
  */
53
42
  SetValueOff(self: DMenuOptionCVar, value: string): void;
54
- }
55
-
56
- interface DMenuOptionCVar {
57
43
  /**
58
44
  * 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
45
  * @realm client
@@ -62,3 +48,8 @@ interface DMenuOptionCVar {
62
48
  SetValueOn(self: DMenuOptionCVar, value: string): void;
63
49
  }
64
50
 
51
+
52
+
53
+
54
+
55
+