@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
@@ -15,27 +15,21 @@
15
15
  * @realm client
16
16
  * @source https://wiki.facepunch.com/gmod/DProperties
17
17
  */
18
- interface DProperties extends Panel {}
19
-
20
- interface DProperties {
18
+ interface DProperties extends Panel {
21
19
  /**
22
20
  * Creates a row in the properties panel.
23
21
  * @realm client
24
22
  * @source https://wiki.facepunch.com/gmod/DProperties:CreateRow
25
23
  */
26
24
  CreateRow(self: DProperties, category: string, name: string): Panel;
27
- }
28
25
 
29
- interface DProperties {
30
26
  /**
31
27
  * Returns the [DScrollPanel](https://wiki.facepunch.com/gmod/DScrollPanel) all the properties panels are attached to.
32
28
  * @realm client
33
29
  * @source https://wiki.facepunch.com/gmod/DProperties:GetCanvas
34
30
  */
35
31
  GetCanvas(self: DProperties): Panel;
36
- }
37
32
 
38
- interface DProperties {
39
33
  /**
40
34
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
35
  *
@@ -49,4 +43,3 @@ interface DProperties {
49
43
  */
50
44
  GetCategory(self: DProperties, name: string, create?: boolean): Panel;
51
45
  }
52
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/DProperty_Boolean
10
10
  */
11
11
  interface DProperty_Boolean extends DProperty_Generic {}
12
-
@@ -9,18 +9,14 @@
9
9
  * @realm client
10
10
  * @source https://wiki.facepunch.com/gmod/DProperty_Combo
11
11
  */
12
- interface DProperty_Combo extends DProperty_Generic {}
13
-
14
- interface DProperty_Combo {
12
+ interface DProperty_Combo extends DProperty_Generic {
15
13
  /**
16
14
  * Add a choice to your combo control.
17
15
  * @realm client
18
16
  * @source https://wiki.facepunch.com/gmod/DProperty_Combo:AddChoice
19
17
  */
20
18
  AddChoice(self: DProperty_Combo, Text: string, data: any, select?: boolean): void;
21
- }
22
19
 
23
- interface DProperty_Combo {
24
20
  /**
25
21
  * Called after the user selects a new value.
26
22
  * @realm client
@@ -28,4 +24,3 @@ interface DProperty_Combo {
28
24
  */
29
25
  DataChanged(self: DProperty_Combo, data: any): void;
30
26
  }
31
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/DProperty_Entity
10
10
  */
11
11
  interface DProperty_Entity extends DProperty_Generic {}
12
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/DProperty_Float
10
10
  */
11
11
  interface DProperty_Float extends DProperty_Generic {}
12
-
@@ -9,18 +9,14 @@
9
9
  * @realm client
10
10
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic
11
11
  */
12
- interface DProperty_Generic extends Panel {}
13
-
14
- interface DProperty_Generic {
12
+ interface DProperty_Generic extends Panel {
15
13
  /**
16
14
  * Returns the internal row panel of a [DProperties](https://wiki.facepunch.com/gmod/DProperties) that this panel belongs to.
17
15
  * @realm client
18
16
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:GetRow
19
17
  */
20
18
  GetRow(self: DProperty_Generic): Panel;
21
- }
22
19
 
23
- interface DProperty_Generic {
24
20
  /**
25
21
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
26
22
  * Called internally by [DProperties](https://wiki.facepunch.com/gmod/DProperties).
@@ -28,18 +24,14 @@ interface DProperty_Generic {
28
24
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:SetRow
29
25
  */
30
26
  SetRow(self: DProperty_Generic, row: Panel): void;
31
- }
32
27
 
33
- interface DProperty_Generic {
34
28
  /**
35
29
  * Sets up a generic control for use by [DProperties](https://wiki.facepunch.com/gmod/DProperties).
36
30
  * @realm client
37
31
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:Setup
38
32
  */
39
33
  Setup(self: DProperty_Generic, data: table): void;
40
- }
41
34
 
42
- interface DProperty_Generic {
43
35
  /**
44
36
  * Called by this control, or a derived control, to alert the row of the change.
45
37
  * @realm client
@@ -47,4 +39,3 @@ interface DProperty_Generic {
47
39
  */
48
40
  ValueChanged(self: DProperty_Generic, newVal: any, force: boolean): void;
49
41
  }
50
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/DProperty_Int
10
10
  */
11
11
  interface DProperty_Int extends DProperty_Float {}
12
-
@@ -11,4 +11,3 @@
11
11
  * @source https://wiki.facepunch.com/gmod/DProperty_VectorColor
12
12
  */
13
13
  interface DProperty_VectorColor extends DProperty_Generic {}
14
-
@@ -7,19 +7,7 @@
7
7
  interface DPropertySheet extends Panel {
8
8
  /** The internal horizontal scroller that manages tab positioning. */
9
9
  tabScroller: DHorizontalScroller;
10
- }
11
-
12
- /** A tab record created by DPropertySheet:AddSheet. */
13
- interface DPropertySheetSheet {
14
- /** The created tab. */
15
- Tab: DTab;
16
- /** Name of the created tab. */
17
- Name: string;
18
- /** The contents panel of the tab. */
19
- Panel: Panel;
20
- }
21
10
 
22
- interface DPropertySheet {
23
11
  /**
24
12
  * Adds a new tab.
25
13
  * @realm client
@@ -27,19 +15,14 @@ interface DPropertySheet {
27
15
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:AddSheet
28
16
  */
29
17
  AddSheet(self: DPropertySheet, name: string, pnl: Panel, icon?: string, noStretchX?: boolean, noStretchY?: boolean, tooltip?: string): DPropertySheetSheet;
30
- }
31
18
 
32
-
33
- interface DPropertySheet {
34
19
  /**
35
20
  * Removes tab and/or panel from the parent DPropertySheet.
36
21
  * @realm client and menu
37
22
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:CloseTab
38
23
  */
39
24
  CloseTab(self: DPropertySheet, tab: Panel, removePanel: boolean): Panel;
40
- }
41
25
 
42
- interface DPropertySheet {
43
26
  /**
44
27
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
45
28
  *
@@ -50,18 +33,14 @@ interface DPropertySheet {
50
33
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:CrossFade
51
34
  */
52
35
  CrossFade(self: DPropertySheet, anim: table, delta: number, data: table): void;
53
- }
54
36
 
55
- interface DPropertySheet {
56
37
  /**
57
38
  * Returns the active [DTab](https://wiki.facepunch.com/gmod/DTab) of this [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
58
39
  * @realm client and menu
59
40
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetActiveTab
60
41
  */
61
42
  GetActiveTab(self: DPropertySheet): Panel;
62
- }
63
43
 
64
- interface DPropertySheet {
65
44
  /**
66
45
  * Returns the amount of time (in seconds) it takes to fade between tabs.
67
46
  *
@@ -71,27 +50,21 @@ interface DPropertySheet {
71
50
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetFadeTime
72
51
  */
73
52
  GetFadeTime(self: DPropertySheet): number;
74
- }
75
53
 
76
- interface DPropertySheet {
77
54
  /**
78
55
  * Returns a list of all tabs of this [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
79
56
  * @realm client and menu
80
57
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetItems
81
58
  */
82
59
  GetItems(self: DPropertySheet): table;
83
- }
84
60
 
85
- interface DPropertySheet {
86
61
  /**
87
62
  * Gets the padding from the parent panel to child panels.
88
63
  * @realm client and menu
89
64
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetPadding
90
65
  */
91
66
  GetPadding(self: DPropertySheet): number;
92
- }
93
67
 
94
- interface DPropertySheet {
95
68
  /**
96
69
  * Returns whatever value was set by [DPropertySheet:SetShowIcons](https://wiki.facepunch.com/gmod/DPropertySheet:SetShowIcons).
97
70
  *
@@ -99,36 +72,28 @@ interface DPropertySheet {
99
72
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetShowIcons
100
73
  */
101
74
  GetShowIcons(self: DPropertySheet): boolean;
102
- }
103
75
 
104
- interface DPropertySheet {
105
76
  /**
106
77
  * Sets the active tab of the [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
107
78
  * @realm client and menu
108
79
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetActiveTab
109
80
  */
110
81
  SetActiveTab(self: DPropertySheet, tab: Panel): void;
111
- }
112
82
 
113
- interface DPropertySheet {
114
83
  /**
115
84
  * Sets the amount of time (in seconds) it takes to fade between tabs.
116
85
  * @realm client and menu
117
86
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetFadeTime
118
87
  */
119
88
  SetFadeTime(self: DPropertySheet, time?: number): void;
120
- }
121
89
 
122
- interface DPropertySheet {
123
90
  /**
124
91
  * Sets the padding from parent panel to children panel.
125
92
  * @realm client and menu
126
93
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetPadding
127
94
  */
128
95
  SetPadding(self: DPropertySheet, padding?: number): void;
129
- }
130
96
 
131
- interface DPropertySheet {
132
97
  /**
133
98
  * Does nothing.
134
99
  *
@@ -136,27 +101,21 @@ interface DPropertySheet {
136
101
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetShowIcons
137
102
  */
138
103
  SetShowIcons(self: DPropertySheet, show: boolean): void;
139
- }
140
104
 
141
- interface DPropertySheet {
142
105
  /**
143
106
  * Creates a close button on the right side of the [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet) that will run the given callback function when pressed.
144
107
  * @realm client and menu
145
108
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetupCloseButton
146
109
  */
147
110
  SetupCloseButton(self: DPropertySheet, func: function): void;
148
- }
149
111
 
150
- interface DPropertySheet {
151
112
  /**
152
113
  * Sets the width of the [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet) to fit the contents of all of the tabs.
153
114
  * @realm client and menu
154
115
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SizeToContentWidth
155
116
  */
156
117
  SizeToContentWidth(self: DPropertySheet): void;
157
- }
158
118
 
159
- interface DPropertySheet {
160
119
  /**
161
120
  * Switches the active tab to a tab with given name.
162
121
  * @realm client and menu
@@ -165,3 +124,12 @@ interface DPropertySheet {
165
124
  SwitchToName(self: DPropertySheet, name: string): void;
166
125
  }
167
126
 
127
+ /** A tab record created by DPropertySheet:AddSheet. */
128
+ interface DPropertySheetSheet {
129
+ /** The created tab. */
130
+ Tab: DTab;
131
+ /** Name of the created tab. */
132
+ Name: string;
133
+ /** The contents panel of the tab. */
134
+ Panel: Panel;
135
+ }
@@ -16,18 +16,14 @@ interface DragndropLib {
16
16
  * @source https://wiki.facepunch.com/gmod/dragndrop.CallReceiverFunction
17
17
  */
18
18
  CallReceiverFunction(bDoDrop: boolean, command: number, mx: number, my: number): void;
19
- }
20
19
 
21
- interface DragndropLib {
22
20
  /**
23
21
  * Clears all the internal drag'n'drop variables.
24
22
  * @realm client and menu
25
23
  * @source https://wiki.facepunch.com/gmod/dragndrop.Clear
26
24
  */
27
25
  Clear(): void;
28
- }
29
26
 
30
- interface DragndropLib {
31
27
  /**
32
28
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
33
29
  * Handles the drop action of drag'n'drop library.
@@ -35,27 +31,21 @@ interface DragndropLib {
35
31
  * @source https://wiki.facepunch.com/gmod/dragndrop.Drop
36
32
  */
37
33
  Drop(): void;
38
- }
39
34
 
40
- interface DragndropLib {
41
35
  /**
42
36
  * Returns a table of currently dragged panels.
43
37
  * @realm client and menu
44
38
  * @source https://wiki.facepunch.com/gmod/dragndrop.GetDroppable
45
39
  */
46
40
  GetDroppable(name?: string): table;
47
- }
48
41
 
49
- interface DragndropLib {
50
42
  /**
51
43
  * Allows you to capture the panel that was dropped into the game (dropped onto the root panel). This function is meant to be overridden.
52
44
  * @realm client and menu
53
45
  * @source https://wiki.facepunch.com/gmod/dragndrop.HandleDroppedInGame
54
46
  */
55
47
  HandleDroppedInGame(): void;
56
- }
57
48
 
58
- interface DragndropLib {
59
49
  /**
60
50
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
61
51
  *
@@ -65,18 +55,14 @@ interface DragndropLib {
65
55
  * @source https://wiki.facepunch.com/gmod/dragndrop.HoverThink
66
56
  */
67
57
  HoverThink(): void;
68
- }
69
58
 
70
- interface DragndropLib {
71
59
  /**
72
60
  * Returns whether the user is dragging something with the drag'n'drop system.
73
61
  * @realm client and menu
74
62
  * @source https://wiki.facepunch.com/gmod/dragndrop.IsDragging
75
63
  */
76
64
  IsDragging(): boolean;
77
- }
78
65
 
79
- interface DragndropLib {
80
66
  /**
81
67
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
82
68
  *
@@ -86,18 +72,14 @@ interface DragndropLib {
86
72
  * @source https://wiki.facepunch.com/gmod/dragndrop.StartDragging
87
73
  */
88
74
  StartDragging(): void;
89
- }
90
75
 
91
- interface DragndropLib {
92
76
  /**
93
77
  * Stops the drag'n'drop and calls [dragndrop.Clear](https://wiki.facepunch.com/gmod/dragndrop.Clear).
94
78
  * @realm client and menu
95
79
  * @source https://wiki.facepunch.com/gmod/dragndrop.StopDragging
96
80
  */
97
81
  StopDragging(): void;
98
- }
99
82
 
100
- interface DragndropLib {
101
83
  /**
102
84
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
103
85
  *
@@ -107,9 +89,7 @@ interface DragndropLib {
107
89
  * @source https://wiki.facepunch.com/gmod/dragndrop.Think
108
90
  */
109
91
  Think(): void;
110
- }
111
92
 
112
- interface DragndropLib {
113
93
  /**
114
94
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
115
95
  *
@@ -120,4 +100,3 @@ interface DragndropLib {
120
100
  */
121
101
  UpdateReceiver(): void;
122
102
  }
123
-
package/types/draw.d.tlua CHANGED
@@ -18,9 +18,7 @@ interface DrawLib {
18
18
  * @source https://wiki.facepunch.com/gmod/draw.DrawText
19
19
  */
20
20
  DrawText(text: string, font?: string, x?: number, y?: number, color?: Color, xAlign?: number): void;
21
- }
22
21
 
23
- interface DrawLib {
24
22
  /**
25
23
  * Returns the height of the specified font in pixels. This is equivalent to the height of the character `W`. See [surface.GetTextSize](https://wiki.facepunch.com/gmod/surface.GetTextSize).
26
24
  *
@@ -30,9 +28,7 @@ interface DrawLib {
30
28
  * @source https://wiki.facepunch.com/gmod/draw.GetFontHeight
31
29
  */
32
30
  GetFontHeight(font: string): number;
33
- }
34
31
 
35
- interface DrawLib {
36
32
  /**
37
33
  * Sets drawing texture to a default white texture (vgui/white) via [surface.SetMaterial](https://wiki.facepunch.com/gmod/surface.SetMaterial). Useful for resetting the drawing texture.
38
34
  *
@@ -42,9 +38,7 @@ interface DrawLib {
42
38
  * @source https://wiki.facepunch.com/gmod/draw.NoTexture
43
39
  */
44
40
  NoTexture(): void;
45
- }
46
41
 
47
- interface DrawLib {
48
42
  /**
49
43
  * Draws a rounded rectangle.
50
44
  *
@@ -57,9 +51,7 @@ interface DrawLib {
57
51
  * @source https://wiki.facepunch.com/gmod/draw.RoundedBox
58
52
  */
59
53
  RoundedBox(cornerRadius: number, x: number, y: number, width: number, height: number, color: Color): void;
60
- }
61
54
 
62
- interface DrawLib {
63
55
  /**
64
56
  * Draws a rounded rectangle. This function also lets you specify which corners are drawn rounded.
65
57
  *
@@ -74,9 +66,7 @@ interface DrawLib {
74
66
  * @source https://wiki.facepunch.com/gmod/draw.RoundedBoxEx
75
67
  */
76
68
  RoundedBoxEx(cornerRadius: number, x: number, y: number, width: number, height: number, color: Color, roundTopLeft?: boolean, roundTopRight?: boolean, roundBottomLeft?: boolean, roundBottomRight?: boolean): void;
77
- }
78
69
 
79
- interface DrawLib {
80
70
  /**
81
71
  * Draws text on the screen.
82
72
  *
@@ -97,10 +87,7 @@ interface DrawLib {
97
87
  * @source https://wiki.facepunch.com/gmod/draw.SimpleTextOutlined
98
88
  */
99
89
  SimpleTextOutlined(Text: any, font?: string, x?: number, y?: number, color?: table, xAlign?: number, yAlign?: number, outlinewidth?: number, outlinecolor?: table): (number, number);
100
- }
101
90
 
102
-
103
- interface DrawLib {
104
91
  /**
105
92
  * Creates a simple line of text that is outlined.
106
93
  *
@@ -110,9 +97,7 @@ interface DrawLib {
110
97
  * @source https://wiki.facepunch.com/gmod/draw.SimpleTextOutlined
111
98
  */
112
99
  SimpleTextOutlined(Text: string, font?: string, x?: number, y?: number, color?: Color, xAlign?: number, yAlign?: number, outlinewidth?: number, outlinecolor?: Color): (number, number);
113
- }
114
100
 
115
- interface DrawLib {
116
101
  /**
117
102
  * Works like [draw.SimpleText](https://wiki.facepunch.com/gmod/draw.SimpleText) but uses a table structure instead.
118
103
  *
@@ -122,9 +107,7 @@ interface DrawLib {
122
107
  * @source https://wiki.facepunch.com/gmod/draw.Text
123
108
  */
124
109
  Text(textdata: TextData): (number, number);
125
- }
126
110
 
127
- interface DrawLib {
128
111
  /**
129
112
  * Works like [draw.Text](https://wiki.facepunch.com/gmod/draw.Text), but draws the text with a shadow.
130
113
  *
@@ -134,9 +117,7 @@ interface DrawLib {
134
117
  * @source https://wiki.facepunch.com/gmod/draw.TextShadow
135
118
  */
136
119
  TextShadow(textdata: TextData, distance: number, alpha?: number): (number, number);
137
- }
138
120
 
139
- interface DrawLib {
140
121
  /**
141
122
  * Draws a texture with a table structure.
142
123
  *
@@ -146,9 +127,7 @@ interface DrawLib {
146
127
  * @source https://wiki.facepunch.com/gmod/draw.TexturedQuad
147
128
  */
148
129
  TexturedQuad(texturedata: TextureData): void;
149
- }
150
130
 
151
- interface DrawLib {
152
131
  /**
153
132
  * Draws a rounded box with text in it.
154
133
  *
@@ -159,4 +138,3 @@ interface DrawLib {
159
138
  */
160
139
  WordBox(bordersize: number, x: number, y: number, text: string, font: string, boxcolor: Color, textcolor: Color, xalign?: number, yalign?: number): (number, number);
161
140
  }
162
-
@@ -10,9 +10,7 @@
10
10
  * @realm client and menu
11
11
  * @source https://wiki.facepunch.com/gmod/DRGBPicker
12
12
  */
13
- interface DRGBPicker extends DPanel {}
14
-
15
- interface DRGBPicker {
13
+ interface DRGBPicker extends DPanel {
16
14
  /**
17
15
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
18
16
  *
@@ -23,18 +21,14 @@ interface DRGBPicker {
23
21
  * @source https://wiki.facepunch.com/gmod/DRGBPicker:GetPosColor
24
22
  */
25
23
  GetPosColor(self: DRGBPicker, x: number, y: number): (Color, number, number);
26
- }
27
24
 
28
- interface DRGBPicker {
29
25
  /**
30
26
  * Returns the color currently set on the color picker.
31
27
  * @realm client and menu
32
28
  * @source https://wiki.facepunch.com/gmod/DRGBPicker:GetRGB
33
29
  */
34
30
  GetRGB(self: DRGBPicker): Color;
35
- }
36
31
 
37
- interface DRGBPicker {
38
32
  /**
39
33
  * Sets the color stored in the color picker.
40
34
  *
@@ -46,4 +40,3 @@ interface DRGBPicker {
46
40
  */
47
41
  SetRGB(self: DRGBPicker, color: Color): void;
48
42
  }
49
-
@@ -7,14 +7,6 @@
7
7
  *
8
8
  * @source https://wiki.facepunch.com/gmod/DRIVE_Hooks
9
9
  */
10
- interface DRIVE {}
11
-
12
- /**
13
- * The drive library is for adding custom control modes to the new "remote control" entity piloting system in Garry's Mod 13. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
14
- * @source https://wiki.facepunch.com/gmod/drive
15
- */
16
- declare drive: DriveLib;
17
-
18
10
  interface DRIVE {
19
11
  /**
20
12
  * Optionally alter the player's view if they are using this [drive](https://wiki.facepunch.com/gmod/drive) mode.
@@ -27,6 +19,12 @@ interface DRIVE {
27
19
  CalcView(self: DRIVE, view_in: CamData): void;
28
20
  }
29
21
 
22
+ /**
23
+ * The drive library is for adding custom control modes to the new "remote control" entity piloting system in Garry's Mod 13. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
24
+ * @source https://wiki.facepunch.com/gmod/drive
25
+ */
26
+ declare drive: DriveLib;
27
+
30
28
  interface DriveLib {
31
29
  /**
32
30
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
@@ -38,9 +36,7 @@ interface DriveLib {
38
36
  * @source https://wiki.facepunch.com/gmod/drive.CalcView
39
37
  */
40
38
  CalcView(ply: Player, view: ViewData): boolean;
41
- }
42
39
 
43
- interface DriveLib {
44
40
  /**
45
41
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
46
42
  *
@@ -50,9 +46,7 @@ interface DriveLib {
50
46
  * @source https://wiki.facepunch.com/gmod/drive.CreateMove
51
47
  */
52
48
  CreateMove(cmd: CUserCmd): boolean;
53
- }
54
49
 
55
- interface DriveLib {
56
50
  /**
57
51
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
58
52
  *
@@ -62,18 +56,14 @@ interface DriveLib {
62
56
  * @source https://wiki.facepunch.com/gmod/drive.DestroyMethod
63
57
  */
64
58
  DestroyMethod(ply: Player): void;
65
- }
66
59
 
67
- interface DriveLib {
68
60
  /**
69
61
  * Player has stopped driving the entity.
70
62
  * @realm shared
71
63
  * @source https://wiki.facepunch.com/gmod/drive.End
72
64
  */
73
65
  End(ply: Player, ent: Entity): void;
74
- }
75
66
 
76
- interface DriveLib {
77
67
  /**
78
68
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
79
69
  *
@@ -83,9 +73,7 @@ interface DriveLib {
83
73
  * @source https://wiki.facepunch.com/gmod/drive.FinishMove
84
74
  */
85
75
  FinishMove(ply: Player, mv: CMoveData): boolean;
86
- }
87
76
 
88
- interface DriveLib {
89
77
  /**
90
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
91
79
  *
@@ -95,9 +83,7 @@ interface DriveLib {
95
83
  * @source https://wiki.facepunch.com/gmod/drive.GetMethod
96
84
  */
97
85
  GetMethod(ply: Player): table;
98
- }
99
86
 
100
- interface DriveLib {
101
87
  /**
102
88
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
103
89
  *
@@ -107,45 +93,35 @@ interface DriveLib {
107
93
  * @source https://wiki.facepunch.com/gmod/drive.Move
108
94
  */
109
95
  Move(ply: Player, mv: CMoveData): boolean;
110
- }
111
96
 
112
- interface DriveLib {
113
97
  /**
114
98
  * Starts driving for the player.
115
99
  * @realm shared
116
100
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStartDriving
117
101
  */
118
102
  PlayerStartDriving(ply: Player, ent: Entity, mode: string): void;
119
- }
120
103
 
121
- interface DriveLib {
122
104
  /**
123
105
  * Stops the player from driving anything. ( For example a prop in sandbox )
124
106
  * @realm shared
125
107
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStopDriving
126
108
  */
127
109
  PlayerStopDriving(ply: Player): void;
128
- }
129
110
 
130
- interface DriveLib {
131
111
  /**
132
112
  * Registers a new entity drive mode/method.
133
113
  * @realm shared
134
114
  * @source https://wiki.facepunch.com/gmod/drive.Register
135
115
  */
136
116
  Register(name: string, data: table, base?: string): void;
137
- }
138
117
 
139
- interface DriveLib {
140
118
  /**
141
119
  * Called when the player first starts driving this entity.
142
120
  * @realm shared
143
121
  * @source https://wiki.facepunch.com/gmod/drive.Start
144
122
  */
145
123
  Start(ply: Player, ent: Entity): void;
146
- }
147
124
 
148
- interface DriveLib {
149
125
  /**
150
126
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
151
127
  *
@@ -156,4 +132,3 @@ interface DriveLib {
156
132
  */
157
133
  StartMove(ply: Player, mv: CMoveData, cmd: CUserCmd): boolean;
158
134
  }
159
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/DScrollBarGrip
11
11
  */
12
12
  interface DScrollBarGrip extends DPanel {}
13
-