@tlua/gmod 1.0.5 → 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 +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  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 +11 -13
  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 +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  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 +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  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 +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -12,6 +12,7 @@ interface DMenu extends DScrollPanel {
12
12
  * @source https://wiki.facepunch.com/gmod/DMenu:AddCVar
13
13
  */
14
14
  AddCVar(self: DMenu, strText: string, convar: string, on: string, off: string, funcFunction?: (pnl: Panel) => void): Panel;
15
+
15
16
  /**
16
17
  * Add an option to the DMenu.
17
18
  * @realm client
@@ -19,6 +20,7 @@ interface DMenu extends DScrollPanel {
19
20
  * @source https://wiki.facepunch.com/gmod/DMenu:AddOption
20
21
  */
21
22
  AddOption(self: DMenu, name: string, func?: function): DMenuOption;
23
+
22
24
  /**
23
25
  * Adds a panel to the DMenu as if it were an option. This invokes
24
26
  * DScrollPanel:AddItem and will not create a new panel if a class name is
@@ -28,12 +30,14 @@ interface DMenu extends DScrollPanel {
28
30
  * @source https://wiki.facepunch.com/gmod/DMenu:AddPanel
29
31
  */
30
32
  AddPanel<T extends Panel>(self: DMenu, pnl: T): void;
33
+
31
34
  /**
32
35
  * Adds a horizontal line spacer.
33
36
  * @realm client and menu
34
37
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSpacer
35
38
  */
36
39
  AddSpacer(self: DMenu): void;
40
+
37
41
  /**
38
42
  * Add a sub menu to the DMenu.
39
43
  * @realm client
@@ -41,6 +45,7 @@ interface DMenu extends DScrollPanel {
41
45
  * @source https://wiki.facepunch.com/gmod/DMenu:AddSubMenu
42
46
  */
43
47
  AddSubMenu(self: DMenu, Name: string, func?: function): (DMenu, DMenuOption);
48
+
44
49
  /**
45
50
  * Clears all highlights made by [DMenu:HighlightItem](https://wiki.facepunch.com/gmod/DMenu:HighlightItem).
46
51
  *
@@ -50,6 +55,7 @@ interface DMenu extends DScrollPanel {
50
55
  * @source https://wiki.facepunch.com/gmod/DMenu:ClearHighlights
51
56
  */
52
57
  ClearHighlights(self: DMenu): void;
58
+
53
59
  /**
54
60
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
55
61
  *
@@ -60,6 +66,7 @@ interface DMenu extends DScrollPanel {
60
66
  * @source https://wiki.facepunch.com/gmod/DMenu:CloseSubMenu
61
67
  */
62
68
  CloseSubMenu(self: DMenu, menu: Panel): void;
69
+
63
70
  /**
64
71
  * Set by [DMenu:SetDeleteSelf](https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf)
65
72
  *
@@ -67,6 +74,7 @@ interface DMenu extends DScrollPanel {
67
74
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDeleteSelf
68
75
  */
69
76
  GetDeleteSelf(self: DMenu): boolean;
77
+
70
78
  /**
71
79
  * Returns the value set by [DMenu:SetDrawBorder](https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder).
72
80
  *
@@ -74,6 +82,7 @@ interface DMenu extends DScrollPanel {
74
82
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawBorder
75
83
  */
76
84
  GetDrawBorder(self: DMenu): boolean;
85
+
77
86
  /**
78
87
  * Returns whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color or not.
79
88
  *
@@ -83,18 +92,21 @@ interface DMenu extends DScrollPanel {
83
92
  * @source https://wiki.facepunch.com/gmod/DMenu:GetDrawColumn
84
93
  */
85
94
  GetDrawColumn(self: DMenu): boolean;
95
+
86
96
  /**
87
97
  * Returns the maximum height of the [DMenu](https://wiki.facepunch.com/gmod/DMenu).
88
98
  * @realm client and menu
89
99
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMaxHeight
90
100
  */
91
101
  GetMaxHeight(self: DMenu): number;
102
+
92
103
  /**
93
104
  * Returns the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu) in pixels
94
105
  * @realm client and menu
95
106
  * @source https://wiki.facepunch.com/gmod/DMenu:GetMinimumWidth
96
107
  */
97
108
  GetMinimumWidth(self: DMenu): number;
109
+
98
110
  /**
99
111
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
100
112
  *
@@ -107,6 +119,7 @@ interface DMenu extends DScrollPanel {
107
119
  * @source https://wiki.facepunch.com/gmod/DMenu:GetOpenSubMenu
108
120
  */
109
121
  GetOpenSubMenu(self: DMenu): Panel;
122
+
110
123
  /**
111
124
  * Highlights selected item in the [DMenu](https://wiki.facepunch.com/gmod/DMenu) by setting the item's key "Highlight" to true.
112
125
  *
@@ -116,24 +129,28 @@ interface DMenu extends DScrollPanel {
116
129
  * @source https://wiki.facepunch.com/gmod/DMenu:HighlightItem
117
130
  */
118
131
  HighlightItem(self: DMenu, item: Panel): void;
132
+
119
133
  /**
120
134
  * Opens the [DMenu](https://wiki.facepunch.com/gmod/DMenu) at given position.
121
135
  * @realm client and menu
122
136
  * @source https://wiki.facepunch.com/gmod/DMenu:Open
123
137
  */
124
138
  Open(self: DMenu, x?: number, y?: number, skipanimation?: any, ownerpanel?: Panel): void;
139
+
125
140
  /**
126
141
  * Closes any active sub menus, and opens a new one.
127
142
  * @realm client and menu
128
143
  * @source https://wiki.facepunch.com/gmod/DMenu:OpenSubMenu
129
144
  */
130
145
  OpenSubMenu(self: DMenu, item: Panel, menu?: Panel): void;
146
+
131
147
  /**
132
148
  * Called when a option has been selected
133
149
  * @realm client and menu
134
150
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelected
135
151
  */
136
152
  OptionSelected(self: DMenu, option: Panel, optionText: string): void;
153
+
137
154
  /**
138
155
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
139
156
  *
@@ -144,6 +161,7 @@ interface DMenu extends DScrollPanel {
144
161
  * @source https://wiki.facepunch.com/gmod/DMenu:OptionSelectedInternal
145
162
  */
146
163
  OptionSelectedInternal(self: DMenu, option: Panel): void;
164
+
147
165
  /**
148
166
  * Set to true by default. IF set to true, the menu will be deleted when it is closed, not simply hidden.
149
167
  *
@@ -153,6 +171,7 @@ interface DMenu extends DScrollPanel {
153
171
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf
154
172
  */
155
173
  SetDeleteSelf(self: DMenu, newState: boolean): void;
174
+
156
175
  /**
157
176
  * Does nothing.
158
177
  *
@@ -160,24 +179,28 @@ interface DMenu extends DScrollPanel {
160
179
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder
161
180
  */
162
181
  SetDrawBorder(self: DMenu, bool: boolean): void;
182
+
163
183
  /**
164
184
  * Sets whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color.
165
185
  * @realm client and menu
166
186
  * @source https://wiki.facepunch.com/gmod/DMenu:SetDrawColumn
167
187
  */
168
188
  SetDrawColumn(self: DMenu, draw: boolean): void;
189
+
169
190
  /**
170
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.
171
192
  * @realm client and menu
172
193
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMaxHeight
173
194
  */
174
195
  SetMaxHeight(self: DMenu, maxHeight: number): void;
196
+
175
197
  /**
176
198
  * Sets the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu). The menu will be stretched to match the given value.
177
199
  * @realm client and menu
178
200
  * @source https://wiki.facepunch.com/gmod/DMenu:SetMinimumWidth
179
201
  */
180
202
  SetMinimumWidth(self: DMenu, minWidth: number): void;
203
+
181
204
  /**
182
205
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
183
206
  *
@@ -189,31 +212,3 @@ interface DMenu extends DScrollPanel {
189
212
  */
190
213
  SetOpenSubMenu(self: DMenu, item: Panel): void;
191
214
  }
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
-
@@ -13,6 +13,7 @@ interface DMenuBar extends DPanel {
13
13
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddMenu
14
14
  */
15
15
  AddMenu(self: DMenuBar, label: string): DMenu;
16
+
16
17
  /**
17
18
  * Retrieves or creates a menu panel on the menu bar.
18
19
  * @realm client
@@ -20,6 +21,7 @@ interface DMenuBar extends DPanel {
20
21
  * @source https://wiki.facepunch.com/gmod/DMenuBar:AddOrGetMenu
21
22
  */
22
23
  AddOrGetMenu(self: DMenuBar, label: string): DMenu;
24
+
23
25
  /**
24
26
  * Returns the currently opened menu, if any.
25
27
  * @realm client
@@ -28,10 +30,3 @@ interface DMenuBar extends DPanel {
28
30
  */
29
31
  GetOpenMenu(self: DMenuBar): DMenu | nil;
30
32
  }
31
-
32
-
33
-
34
-
35
-
36
-
37
-
@@ -16,24 +16,28 @@ interface DMenuOption extends DButton {
16
16
  * @source https://wiki.facepunch.com/gmod/DMenuOption:AddSubMenu
17
17
  */
18
18
  AddSubMenu(self: DMenuOption): Panel;
19
+
19
20
  /**
20
21
  * Returns the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
21
22
  * @realm client and menu
22
23
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetChecked
23
24
  */
24
25
  GetChecked(self: DMenuOption): boolean;
26
+
25
27
  /**
26
28
  * Returns whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
27
29
  * @realm client and menu
28
30
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable
29
31
  */
30
32
  GetIsCheckable(self: DMenuOption): boolean;
33
+
31
34
  /**
32
35
  * Returns which [DMenu](https://wiki.facepunch.com/gmod/DMenu) this option belongs.
33
36
  * @realm client and menu
34
37
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetMenu
35
38
  */
36
39
  GetMenu(self: DMenuOption): Panel;
40
+
37
41
  /**
38
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).
39
43
  *
@@ -41,12 +45,14 @@ interface DMenuOption extends DButton {
41
45
  * @source https://wiki.facepunch.com/gmod/DMenuOption:GetRadio
42
46
  */
43
47
  GetRadio(self: DMenuOption): boolean;
48
+
44
49
  /**
45
50
  * Called whenever the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption)'s checked state changes.
46
51
  * @realm client and menu
47
52
  * @source https://wiki.facepunch.com/gmod/DMenuOption:OnChecked
48
53
  */
49
54
  OnChecked(self: DMenuOption, checked: boolean): void;
55
+
50
56
  /**
51
57
  * Sets the checked state of the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
52
58
  *
@@ -56,6 +62,7 @@ interface DMenuOption extends DButton {
56
62
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetChecked
57
63
  */
58
64
  SetChecked(self: DMenuOption, checked: boolean): void;
65
+
59
66
  /**
60
67
  * Sets whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
61
68
  *
@@ -64,6 +71,7 @@ interface DMenuOption extends DButton {
64
71
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetIsCheckable
65
72
  */
66
73
  SetIsCheckable(self: DMenuOption, checkable: boolean): void;
74
+
67
75
  /**
68
76
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
69
77
  * Used to set the [DMenu](https://wiki.facepunch.com/gmod/DMenu) for this option.
@@ -71,6 +79,7 @@ interface DMenuOption extends DButton {
71
79
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetMenu
72
80
  */
73
81
  SetMenu(self: DMenuOption, pnl: Panel): void;
82
+
74
83
  /**
75
84
  * Sets whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button.
76
85
  *
@@ -80,6 +89,7 @@ interface DMenuOption extends DButton {
80
89
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetRadio
81
90
  */
82
91
  SetRadio(self: DMenuOption, checked: boolean): void;
92
+
83
93
  /**
84
94
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
85
95
  *
@@ -90,6 +100,7 @@ interface DMenuOption extends DButton {
90
100
  * @source https://wiki.facepunch.com/gmod/DMenuOption:SetSubMenu
91
101
  */
92
102
  SetSubMenu(self: DMenuOption, menu: Panel): void;
103
+
93
104
  /**
94
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).
95
106
  * @realm client and menu
@@ -97,16 +108,3 @@ interface DMenuOption extends DButton {
97
108
  */
98
109
  ToggleCheck(self: DMenuOption): void;
99
110
  }
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
@@ -22,24 +22,28 @@ interface DMenuOptionCVar extends DMenuOption {
22
22
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetConVar
23
23
  */
24
24
  GetConVar(self: DMenuOptionCVar): string;
25
+
25
26
  /**
26
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.
27
28
  * @realm client
28
29
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOff
29
30
  */
30
31
  GetValueOff(self: DMenuOptionCVar): string;
32
+
31
33
  /**
32
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.
33
35
  * @realm client
34
36
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOn
35
37
  */
36
38
  GetValueOn(self: DMenuOptionCVar): string;
39
+
37
40
  /**
38
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.
39
42
  * @realm client
40
43
  * @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:SetValueOff
41
44
  */
42
45
  SetValueOff(self: DMenuOptionCVar, value: string): void;
46
+
43
47
  /**
44
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.
45
49
  * @realm client
@@ -47,9 +51,3 @@ interface DMenuOptionCVar extends DMenuOption {
47
51
  */
48
52
  SetValueOn(self: DMenuOptionCVar, value: string): void;
49
53
  }
50
-
51
-
52
-
53
-
54
-
55
-
@@ -13,72 +13,84 @@ interface DModelPanel extends DButton {
13
13
  * @source https://wiki.facepunch.com/gmod/DModelPanel:DrawModel
14
14
  */
15
15
  DrawModel(self: DModelPanel): void;
16
+
16
17
  /**
17
18
  * Returns the ambient lighting used on the rendered entity.
18
19
  * @realm client
19
20
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetAmbientLight
20
21
  */
21
22
  GetAmbientLight(self: DModelPanel): Color;
23
+
22
24
  /**
23
25
  * Returns the animation speed of the panel entity, see [DModelPanel:SetAnimSpeed](https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed).
24
26
  * @realm client
25
27
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimSpeed
26
28
  */
27
29
  GetAnimSpeed(self: DModelPanel): number;
30
+
28
31
  /**
29
32
  * Returns whether or not the panel entity should be animated when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) function is called.
30
33
  * @realm client
31
34
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimated
32
35
  */
33
36
  GetAnimated(self: DModelPanel): boolean;
37
+
34
38
  /**
35
39
  * Returns the position of the model viewing camera.
36
40
  * @realm client
37
41
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetCamPos
38
42
  */
39
43
  GetCamPos(self: DModelPanel): Vector;
44
+
40
45
  /**
41
46
  * Returns the entity being rendered by the model panel.
42
47
  * @realm client
43
48
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetEntity
44
49
  */
45
50
  GetEntity(self: DModelPanel): CSEnt;
51
+
46
52
  /**
47
53
  * Returns the FOV (field of view) the camera is using.
48
54
  * @realm client
49
55
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetFOV
50
56
  */
51
57
  GetFOV(self: DModelPanel): number;
58
+
52
59
  /**
53
60
  * Returns the angles of the model viewing camera. Is **nil** until changed with [DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng).
54
61
  * @realm client
55
62
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAng
56
63
  */
57
64
  GetLookAng(self: DModelPanel): Angle;
65
+
58
66
  /**
59
67
  * Returns the position the viewing camera is pointing toward.
60
68
  * @realm client
61
69
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAt
62
70
  */
63
71
  GetLookAt(self: DModelPanel): Vector;
72
+
64
73
  /**
65
74
  * Gets the model of the rendered entity.
66
75
  * @realm client
67
76
  * @source https://wiki.facepunch.com/gmod/DModelPanel:GetModel
68
77
  */
69
78
  GetModel(self: DModelPanel): string;
79
+
70
80
  /**
71
81
  * This function is used in [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity). It will progress the animation, set using [Entity:SetSequence](https://wiki.facepunch.com/gmod/Entity:SetSequence). By default, it is the walking animation.
72
82
  * @realm client
73
83
  * @source https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation
74
84
  */
75
85
  RunAnimation(self: DModelPanel): void;
86
+
76
87
  /**
77
88
  * Sets the ambient lighting used on the rendered entity.
78
89
  * @realm client
79
90
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetAmbientLight
80
91
  */
81
92
  SetAmbientLight(self: DModelPanel, color: Color): void;
93
+
82
94
  /**
83
95
  * Sets the speed used by [DModelPanel:RunAnimation](https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation) to advance frame on an entity sequence.
84
96
  *
@@ -89,24 +101,28 @@ interface DModelPanel extends DButton {
89
101
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed
90
102
  */
91
103
  SetAnimSpeed(self: DModelPanel, animSpeed: number): void;
104
+
92
105
  /**
93
106
  * Sets whether or not to animate the entity when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) is called.
94
107
  * @realm client
95
108
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimated
96
109
  */
97
110
  SetAnimated(self: DModelPanel, animated: boolean): void;
111
+
98
112
  /**
99
113
  * Sets the position of the camera.
100
114
  * @realm client
101
115
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetCamPos
102
116
  */
103
117
  SetCamPos(self: DModelPanel, pos: Vector): void;
118
+
104
119
  /**
105
120
  * Sets the directional lighting used on the rendered entity.
106
121
  * @realm client
107
122
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetDirectionalLight
108
123
  */
109
124
  SetDirectionalLight(self: DModelPanel, direction: number, color: Color): void;
125
+
110
126
  /**
111
127
  * Sets the entity to be rendered by the model panel.
112
128
  *
@@ -117,24 +133,28 @@ interface DModelPanel extends DButton {
117
133
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetEntity
118
134
  */
119
135
  SetEntity(self: DModelPanel, ent: Entity): void;
136
+
120
137
  /**
121
138
  * Sets the panel camera's FOV (field of view).
122
139
  * @realm client
123
140
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetFOV
124
141
  */
125
142
  SetFOV(self: DModelPanel, fov: number): void;
143
+
126
144
  /**
127
145
  * Sets the angles of the camera.
128
146
  * @realm client
129
147
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng
130
148
  */
131
149
  SetLookAng(self: DModelPanel, ang: Angle): void;
150
+
132
151
  /**
133
152
  * Makes the panel's camera face the given position. Basically sets the camera's angles ([DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng)) after doing some math.
134
153
  * @realm client
135
154
  * @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAt
136
155
  */
137
156
  SetLookAt(self: DModelPanel, pos: Vector): void;
157
+
138
158
  /**
139
159
  * Runs a [Global.ClientsideScene](https://wiki.facepunch.com/gmod/Global.ClientsideScene) on the panel's entity.
140
160
  * @realm client
@@ -142,25 +162,3 @@ interface DModelPanel extends DButton {
142
162
  */
143
163
  StartScene(self: DModelPanel, path: string): void;
144
164
  }
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
@@ -15,5 +15,3 @@ interface DModelSelect extends DPanelSelect {
15
15
  */
16
16
  SetModelList(self: DModelSelect, models: table, convar: string, dontSort: boolean, dontCallListConVars: boolean): void;
17
17
  }
18
-
19
-
@@ -14,5 +14,3 @@ interface DModelSelectMulti extends DPropertySheet {
14
14
  */
15
15
  AddModelList(self: DModelSelectMulti, name: string, models: table, convar: string, dontSort: boolean, dontCallListConVars: boolean): void;
16
16
  }
17
-
18
-
@@ -12,18 +12,21 @@ interface DNotify extends Panel {
12
12
  * @source https://wiki.facepunch.com/gmod/DNotify:AddItem
13
13
  */
14
14
  AddItem(self: DNotify, pnl: Panel, lifeLength?: number): void;
15
+
15
16
  /**
16
17
  * Returns the current alignment of this notification panel. Set by [DNotify:SetAlignment](https://wiki.facepunch.com/gmod/DNotify:SetAlignment).
17
18
  * @realm client
18
19
  * @source https://wiki.facepunch.com/gmod/DNotify:GetAlignment
19
20
  */
20
21
  GetAlignment(self: DNotify): number;
22
+
21
23
  /**
22
24
  * Returns all the items added with [DNotify:AddItem](https://wiki.facepunch.com/gmod/DNotify:AddItem).
23
25
  * @realm client
24
26
  * @source https://wiki.facepunch.com/gmod/DNotify:GetItems
25
27
  */
26
28
  GetItems(self: DNotify): table;
29
+
27
30
  /**
28
31
  * Returns the display time in seconds of the DNotify. This is set with
29
32
  * [DNotify:SetLife](https://wiki.facepunch.com/gmod/DNotify:SetLife).
@@ -32,30 +35,35 @@ interface DNotify extends Panel {
32
35
  * @source https://wiki.facepunch.com/gmod/DNotify:GetLife
33
36
  */
34
37
  GetLife(self: DNotify): number;
38
+
35
39
  /**
36
40
  * Returns the spacing between items set by [DNotify:SetSpacing](https://wiki.facepunch.com/gmod/DNotify:SetSpacing).
37
41
  * @realm client
38
42
  * @source https://wiki.facepunch.com/gmod/DNotify:GetSpacing
39
43
  */
40
44
  GetSpacing(self: DNotify): number;
45
+
41
46
  /**
42
47
  * Sets the alignment of the child panels in the notification
43
48
  * @realm client
44
49
  * @source https://wiki.facepunch.com/gmod/DNotify:SetAlignment
45
50
  */
46
51
  SetAlignment(self: DNotify, alignment: number): void;
52
+
47
53
  /**
48
54
  * Sets the display time in seconds for the DNotify.
49
55
  * @realm client
50
56
  * @source https://wiki.facepunch.com/gmod/DNotify:SetLife
51
57
  */
52
58
  SetLife(self: DNotify, time: number): void;
59
+
53
60
  /**
54
61
  * Sets the spacing between child elements of the notification panel.
55
62
  * @realm client
56
63
  * @source https://wiki.facepunch.com/gmod/DNotify:SetSpacing
57
64
  */
58
65
  SetSpacing(self: DNotify, spacing: number): void;
66
+
59
67
  /**
60
68
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
61
69
  * Used internally to position and fade in/out its [DNotify:GetItems](https://wiki.facepunch.com/gmod/DNotify:GetItems).
@@ -64,13 +72,3 @@ interface DNotify extends Panel {
64
72
  */
65
73
  Shuffle(self: DNotify): void;
66
74
  }
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-