@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,12 +12,14 @@ interface DPanelOverlay extends DPanel {
12
12
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:GetColor
13
13
  */
14
14
  GetColor(self: DPanelOverlay): Color;
15
+
15
16
  /**
16
17
  * Returns the type of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay) set by [DPanelOverlay:SetType](https://wiki.facepunch.com/gmod/DPanelOverlay:SetType).
17
18
  * @realm client and menu
18
19
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:GetType
19
20
  */
20
21
  GetType(self: DPanelOverlay): number;
22
+
21
23
  /**
22
24
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
23
25
  * Used internally by the panel for type 3.
@@ -25,6 +27,7 @@ interface DPanelOverlay extends DPanel {
25
27
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:PaintDifferentColours
26
28
  */
27
29
  PaintDifferentColours(self: DPanelOverlay, cola: table, colb: table, colc: table, cold: table, size: number): void;
30
+
28
31
  /**
29
32
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
30
33
  * Used internally by the panel for types 1 and 2.
@@ -32,12 +35,14 @@ interface DPanelOverlay extends DPanel {
32
35
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:PaintInnerCorners
33
36
  */
34
37
  PaintInnerCorners(self: DPanelOverlay, size: number): void;
38
+
35
39
  /**
36
40
  * Sets the border color of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay).
37
41
  * @realm client and menu
38
42
  * @source https://wiki.facepunch.com/gmod/DPanelOverlay:SetColor
39
43
  */
40
44
  SetColor(self: DPanelOverlay, color: Color): void;
45
+
41
46
  /**
42
47
  * Sets the type of the [DPanelOverlay](https://wiki.facepunch.com/gmod/DPanelOverlay).
43
48
  * @realm client and menu
@@ -45,10 +50,3 @@ interface DPanelOverlay extends DPanel {
45
50
  */
46
51
  SetType(self: DPanelOverlay, type: number): void;
47
52
  }
48
-
49
-
50
-
51
-
52
-
53
-
54
-
@@ -10,4 +10,3 @@
10
10
  * @deprecated This is derived from the deprecated DPanelList.
11
11
  */
12
12
  interface DPanelSelect extends DPanelList {}
13
-
@@ -13,6 +13,7 @@ interface DPanPanel extends DPanel {
13
13
  * @source https://wiki.facepunch.com/gmod/DPanPanel:AddItem
14
14
  */
15
15
  AddItem(self: DPanPanel, pnl: Panel): void;
16
+
16
17
  /**
17
18
  * The internal canvas panel.
18
19
  *
@@ -20,6 +21,7 @@ interface DPanPanel extends DPanel {
20
21
  * @source https://wiki.facepunch.com/gmod/DPanPanel:GetCanvas
21
22
  */
22
23
  GetCanvas(self: DPanPanel): Panel;
24
+
23
25
  /**
24
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
25
27
  *
@@ -29,6 +31,7 @@ interface DPanPanel extends DPanel {
29
31
  * @source https://wiki.facepunch.com/gmod/DPanPanel:OnScroll
30
32
  */
31
33
  OnScroll(self: DPanPanel, x: number, y: number): void;
34
+
32
35
  /**
33
36
  * Scroll to a specific child panel.
34
37
  *
@@ -36,6 +39,7 @@ interface DPanPanel extends DPanel {
36
39
  * @source https://wiki.facepunch.com/gmod/DPanPanel:ScrollToChild
37
40
  */
38
41
  ScrollToChild(self: DPanPanel, pnl: Panel): void;
42
+
39
43
  /**
40
44
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
41
45
  *
@@ -47,9 +51,3 @@ interface DPanPanel extends DPanel {
47
51
  */
48
52
  SetCanvas(self: DPanPanel, pnl: Panel): void;
49
53
  }
50
-
51
-
52
-
53
-
54
-
55
-
@@ -12,6 +12,7 @@ interface DProgress extends Panel {
12
12
  * @source https://wiki.facepunch.com/gmod/DProgress:GetFraction
13
13
  */
14
14
  GetFraction(self: DProgress): number;
15
+
15
16
  /**
16
17
  * Sets the fraction of the progress bar. 0 is 0% and 1 is 100%.
17
18
  * @realm client and menu
@@ -19,6 +20,3 @@ interface DProgress extends Panel {
19
20
  */
20
21
  SetFraction(self: DProgress, fraction: number): void;
21
22
  }
22
-
23
-
24
-
@@ -22,12 +22,14 @@ interface DProperties extends Panel {
22
22
  * @source https://wiki.facepunch.com/gmod/DProperties:CreateRow
23
23
  */
24
24
  CreateRow(self: DProperties, category: string, name: string): Panel;
25
+
25
26
  /**
26
27
  * Returns the [DScrollPanel](https://wiki.facepunch.com/gmod/DScrollPanel) all the properties panels are attached to.
27
28
  * @realm client
28
29
  * @source https://wiki.facepunch.com/gmod/DProperties:GetCanvas
29
30
  */
30
31
  GetCanvas(self: DProperties): Panel;
32
+
31
33
  /**
32
34
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
33
35
  *
@@ -41,7 +43,3 @@ interface DProperties extends Panel {
41
43
  */
42
44
  GetCategory(self: DProperties, name: string, create?: boolean): Panel;
43
45
  }
44
-
45
-
46
-
47
-
@@ -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
-
@@ -16,6 +16,7 @@ interface DProperty_Combo extends DProperty_Generic {
16
16
  * @source https://wiki.facepunch.com/gmod/DProperty_Combo:AddChoice
17
17
  */
18
18
  AddChoice(self: DProperty_Combo, Text: string, data: any, select?: boolean): void;
19
+
19
20
  /**
20
21
  * Called after the user selects a new value.
21
22
  * @realm client
@@ -23,6 +24,3 @@ interface DProperty_Combo extends DProperty_Generic {
23
24
  */
24
25
  DataChanged(self: DProperty_Combo, data: any): void;
25
26
  }
26
-
27
-
28
-
@@ -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
-
@@ -16,6 +16,7 @@ interface DProperty_Generic extends Panel {
16
16
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:GetRow
17
17
  */
18
18
  GetRow(self: DProperty_Generic): Panel;
19
+
19
20
  /**
20
21
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
21
22
  * Called internally by [DProperties](https://wiki.facepunch.com/gmod/DProperties).
@@ -23,12 +24,14 @@ interface DProperty_Generic extends Panel {
23
24
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:SetRow
24
25
  */
25
26
  SetRow(self: DProperty_Generic, row: Panel): void;
27
+
26
28
  /**
27
29
  * Sets up a generic control for use by [DProperties](https://wiki.facepunch.com/gmod/DProperties).
28
30
  * @realm client
29
31
  * @source https://wiki.facepunch.com/gmod/DProperty_Generic:Setup
30
32
  */
31
33
  Setup(self: DProperty_Generic, data: table): void;
34
+
32
35
  /**
33
36
  * Called by this control, or a derived control, to alert the row of the change.
34
37
  * @realm client
@@ -36,8 +39,3 @@ interface DProperty_Generic extends Panel {
36
39
  */
37
40
  ValueChanged(self: DProperty_Generic, newVal: any, force: boolean): void;
38
41
  }
39
-
40
-
41
-
42
-
43
-
@@ -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,6 +7,7 @@
7
7
  interface DPropertySheet extends Panel {
8
8
  /** The internal horizontal scroller that manages tab positioning. */
9
9
  tabScroller: DHorizontalScroller;
10
+
10
11
  /**
11
12
  * Adds a new tab.
12
13
  * @realm client
@@ -14,12 +15,14 @@ interface DPropertySheet extends Panel {
14
15
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:AddSheet
15
16
  */
16
17
  AddSheet(self: DPropertySheet, name: string, pnl: Panel, icon?: string, noStretchX?: boolean, noStretchY?: boolean, tooltip?: string): DPropertySheetSheet;
18
+
17
19
  /**
18
20
  * Removes tab and/or panel from the parent DPropertySheet.
19
21
  * @realm client and menu
20
22
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:CloseTab
21
23
  */
22
24
  CloseTab(self: DPropertySheet, tab: Panel, removePanel: boolean): Panel;
25
+
23
26
  /**
24
27
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
25
28
  *
@@ -30,12 +33,14 @@ interface DPropertySheet extends Panel {
30
33
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:CrossFade
31
34
  */
32
35
  CrossFade(self: DPropertySheet, anim: table, delta: number, data: table): void;
36
+
33
37
  /**
34
38
  * Returns the active [DTab](https://wiki.facepunch.com/gmod/DTab) of this [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
35
39
  * @realm client and menu
36
40
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetActiveTab
37
41
  */
38
42
  GetActiveTab(self: DPropertySheet): Panel;
43
+
39
44
  /**
40
45
  * Returns the amount of time (in seconds) it takes to fade between tabs.
41
46
  *
@@ -45,18 +50,21 @@ interface DPropertySheet extends Panel {
45
50
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetFadeTime
46
51
  */
47
52
  GetFadeTime(self: DPropertySheet): number;
53
+
48
54
  /**
49
55
  * Returns a list of all tabs of this [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
50
56
  * @realm client and menu
51
57
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetItems
52
58
  */
53
59
  GetItems(self: DPropertySheet): table;
60
+
54
61
  /**
55
62
  * Gets the padding from the parent panel to child panels.
56
63
  * @realm client and menu
57
64
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetPadding
58
65
  */
59
66
  GetPadding(self: DPropertySheet): number;
67
+
60
68
  /**
61
69
  * Returns whatever value was set by [DPropertySheet:SetShowIcons](https://wiki.facepunch.com/gmod/DPropertySheet:SetShowIcons).
62
70
  *
@@ -64,24 +72,28 @@ interface DPropertySheet extends Panel {
64
72
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:GetShowIcons
65
73
  */
66
74
  GetShowIcons(self: DPropertySheet): boolean;
75
+
67
76
  /**
68
77
  * Sets the active tab of the [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
69
78
  * @realm client and menu
70
79
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetActiveTab
71
80
  */
72
81
  SetActiveTab(self: DPropertySheet, tab: Panel): void;
82
+
73
83
  /**
74
84
  * Sets the amount of time (in seconds) it takes to fade between tabs.
75
85
  * @realm client and menu
76
86
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetFadeTime
77
87
  */
78
88
  SetFadeTime(self: DPropertySheet, time?: number): void;
89
+
79
90
  /**
80
91
  * Sets the padding from parent panel to children panel.
81
92
  * @realm client and menu
82
93
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetPadding
83
94
  */
84
95
  SetPadding(self: DPropertySheet, padding?: number): void;
96
+
85
97
  /**
86
98
  * Does nothing.
87
99
  *
@@ -89,18 +101,21 @@ interface DPropertySheet extends Panel {
89
101
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetShowIcons
90
102
  */
91
103
  SetShowIcons(self: DPropertySheet, show: boolean): void;
104
+
92
105
  /**
93
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.
94
107
  * @realm client and menu
95
108
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SetupCloseButton
96
109
  */
97
110
  SetupCloseButton(self: DPropertySheet, func: function): void;
111
+
98
112
  /**
99
113
  * Sets the width of the [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet) to fit the contents of all of the tabs.
100
114
  * @realm client and menu
101
115
  * @source https://wiki.facepunch.com/gmod/DPropertySheet:SizeToContentWidth
102
116
  */
103
117
  SizeToContentWidth(self: DPropertySheet): void;
118
+
104
119
  /**
105
120
  * Switches the active tab to a tab with given name.
106
121
  * @realm client and menu
@@ -118,20 +133,3 @@ interface DPropertySheetSheet {
118
133
  /** The contents panel of the tab. */
119
134
  Panel: Panel;
120
135
  }
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
@@ -16,12 +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
+
19
20
  /**
20
21
  * Clears all the internal drag'n'drop variables.
21
22
  * @realm client and menu
22
23
  * @source https://wiki.facepunch.com/gmod/dragndrop.Clear
23
24
  */
24
25
  Clear(): void;
26
+
25
27
  /**
26
28
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
27
29
  * Handles the drop action of drag'n'drop library.
@@ -29,18 +31,21 @@ interface DragndropLib {
29
31
  * @source https://wiki.facepunch.com/gmod/dragndrop.Drop
30
32
  */
31
33
  Drop(): void;
34
+
32
35
  /**
33
36
  * Returns a table of currently dragged panels.
34
37
  * @realm client and menu
35
38
  * @source https://wiki.facepunch.com/gmod/dragndrop.GetDroppable
36
39
  */
37
40
  GetDroppable(name?: string): table;
41
+
38
42
  /**
39
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.
40
44
  * @realm client and menu
41
45
  * @source https://wiki.facepunch.com/gmod/dragndrop.HandleDroppedInGame
42
46
  */
43
47
  HandleDroppedInGame(): void;
48
+
44
49
  /**
45
50
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
46
51
  *
@@ -50,12 +55,14 @@ interface DragndropLib {
50
55
  * @source https://wiki.facepunch.com/gmod/dragndrop.HoverThink
51
56
  */
52
57
  HoverThink(): void;
58
+
53
59
  /**
54
60
  * Returns whether the user is dragging something with the drag'n'drop system.
55
61
  * @realm client and menu
56
62
  * @source https://wiki.facepunch.com/gmod/dragndrop.IsDragging
57
63
  */
58
64
  IsDragging(): boolean;
65
+
59
66
  /**
60
67
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
61
68
  *
@@ -65,12 +72,14 @@ interface DragndropLib {
65
72
  * @source https://wiki.facepunch.com/gmod/dragndrop.StartDragging
66
73
  */
67
74
  StartDragging(): void;
75
+
68
76
  /**
69
77
  * Stops the drag'n'drop and calls [dragndrop.Clear](https://wiki.facepunch.com/gmod/dragndrop.Clear).
70
78
  * @realm client and menu
71
79
  * @source https://wiki.facepunch.com/gmod/dragndrop.StopDragging
72
80
  */
73
81
  StopDragging(): void;
82
+
74
83
  /**
75
84
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
76
85
  *
@@ -80,6 +89,7 @@ interface DragndropLib {
80
89
  * @source https://wiki.facepunch.com/gmod/dragndrop.Think
81
90
  */
82
91
  Think(): 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,14 +100,3 @@ interface DragndropLib {
90
100
  */
91
101
  UpdateReceiver(): void;
92
102
  }
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
package/types/draw.d.tlua CHANGED
@@ -18,6 +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
+
21
22
  /**
22
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).
23
24
  *
@@ -27,6 +28,7 @@ interface DrawLib {
27
28
  * @source https://wiki.facepunch.com/gmod/draw.GetFontHeight
28
29
  */
29
30
  GetFontHeight(font: string): number;
31
+
30
32
  /**
31
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.
32
34
  *
@@ -36,6 +38,7 @@ interface DrawLib {
36
38
  * @source https://wiki.facepunch.com/gmod/draw.NoTexture
37
39
  */
38
40
  NoTexture(): void;
41
+
39
42
  /**
40
43
  * Draws a rounded rectangle.
41
44
  *
@@ -48,6 +51,7 @@ interface DrawLib {
48
51
  * @source https://wiki.facepunch.com/gmod/draw.RoundedBox
49
52
  */
50
53
  RoundedBox(cornerRadius: number, x: number, y: number, width: number, height: number, color: Color): void;
54
+
51
55
  /**
52
56
  * Draws a rounded rectangle. This function also lets you specify which corners are drawn rounded.
53
57
  *
@@ -62,6 +66,7 @@ interface DrawLib {
62
66
  * @source https://wiki.facepunch.com/gmod/draw.RoundedBoxEx
63
67
  */
64
68
  RoundedBoxEx(cornerRadius: number, x: number, y: number, width: number, height: number, color: Color, roundTopLeft?: boolean, roundTopRight?: boolean, roundBottomLeft?: boolean, roundBottomRight?: boolean): void;
69
+
65
70
  /**
66
71
  * Draws text on the screen.
67
72
  *
@@ -82,6 +87,7 @@ interface DrawLib {
82
87
  * @source https://wiki.facepunch.com/gmod/draw.SimpleTextOutlined
83
88
  */
84
89
  SimpleTextOutlined(Text: any, font?: string, x?: number, y?: number, color?: table, xAlign?: number, yAlign?: number, outlinewidth?: number, outlinecolor?: table): (number, number);
90
+
85
91
  /**
86
92
  * Creates a simple line of text that is outlined.
87
93
  *
@@ -91,6 +97,7 @@ interface DrawLib {
91
97
  * @source https://wiki.facepunch.com/gmod/draw.SimpleTextOutlined
92
98
  */
93
99
  SimpleTextOutlined(Text: string, font?: string, x?: number, y?: number, color?: Color, xAlign?: number, yAlign?: number, outlinewidth?: number, outlinecolor?: Color): (number, number);
100
+
94
101
  /**
95
102
  * Works like [draw.SimpleText](https://wiki.facepunch.com/gmod/draw.SimpleText) but uses a table structure instead.
96
103
  *
@@ -100,6 +107,7 @@ interface DrawLib {
100
107
  * @source https://wiki.facepunch.com/gmod/draw.Text
101
108
  */
102
109
  Text(textdata: TextData): (number, number);
110
+
103
111
  /**
104
112
  * Works like [draw.Text](https://wiki.facepunch.com/gmod/draw.Text), but draws the text with a shadow.
105
113
  *
@@ -109,6 +117,7 @@ interface DrawLib {
109
117
  * @source https://wiki.facepunch.com/gmod/draw.TextShadow
110
118
  */
111
119
  TextShadow(textdata: TextData, distance: number, alpha?: number): (number, number);
120
+
112
121
  /**
113
122
  * Draws a texture with a table structure.
114
123
  *
@@ -118,6 +127,7 @@ interface DrawLib {
118
127
  * @source https://wiki.facepunch.com/gmod/draw.TexturedQuad
119
128
  */
120
129
  TexturedQuad(texturedata: TextureData): void;
130
+
121
131
  /**
122
132
  * Draws a rounded box with text in it.
123
133
  *
@@ -128,15 +138,3 @@ interface DrawLib {
128
138
  */
129
139
  WordBox(bordersize: number, x: number, y: number, text: string, font: string, boxcolor: Color, textcolor: Color, xalign?: number, yalign?: number): (number, number);
130
140
  }
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
@@ -21,12 +21,14 @@ interface DRGBPicker extends DPanel {
21
21
  * @source https://wiki.facepunch.com/gmod/DRGBPicker:GetPosColor
22
22
  */
23
23
  GetPosColor(self: DRGBPicker, x: number, y: number): (Color, number, number);
24
+
24
25
  /**
25
26
  * Returns the color currently set on the color picker.
26
27
  * @realm client and menu
27
28
  * @source https://wiki.facepunch.com/gmod/DRGBPicker:GetRGB
28
29
  */
29
30
  GetRGB(self: DRGBPicker): Color;
31
+
30
32
  /**
31
33
  * Sets the color stored in the color picker.
32
34
  *
@@ -38,7 +40,3 @@ interface DRGBPicker extends DPanel {
38
40
  */
39
41
  SetRGB(self: DRGBPicker, color: Color): void;
40
42
  }
41
-
42
-
43
-
44
-
@@ -25,7 +25,6 @@ interface DRIVE {
25
25
  */
26
26
  declare drive: DriveLib;
27
27
 
28
-
29
28
  interface DriveLib {
30
29
  /**
31
30
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
@@ -37,6 +36,7 @@ interface DriveLib {
37
36
  * @source https://wiki.facepunch.com/gmod/drive.CalcView
38
37
  */
39
38
  CalcView(ply: Player, view: ViewData): boolean;
39
+
40
40
  /**
41
41
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
42
42
  *
@@ -46,6 +46,7 @@ interface DriveLib {
46
46
  * @source https://wiki.facepunch.com/gmod/drive.CreateMove
47
47
  */
48
48
  CreateMove(cmd: CUserCmd): boolean;
49
+
49
50
  /**
50
51
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
51
52
  *
@@ -55,12 +56,14 @@ interface DriveLib {
55
56
  * @source https://wiki.facepunch.com/gmod/drive.DestroyMethod
56
57
  */
57
58
  DestroyMethod(ply: Player): void;
59
+
58
60
  /**
59
61
  * Player has stopped driving the entity.
60
62
  * @realm shared
61
63
  * @source https://wiki.facepunch.com/gmod/drive.End
62
64
  */
63
65
  End(ply: Player, ent: Entity): void;
66
+
64
67
  /**
65
68
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
66
69
  *
@@ -70,6 +73,7 @@ interface DriveLib {
70
73
  * @source https://wiki.facepunch.com/gmod/drive.FinishMove
71
74
  */
72
75
  FinishMove(ply: Player, mv: CMoveData): boolean;
76
+
73
77
  /**
74
78
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
75
79
  *
@@ -79,6 +83,7 @@ interface DriveLib {
79
83
  * @source https://wiki.facepunch.com/gmod/drive.GetMethod
80
84
  */
81
85
  GetMethod(ply: Player): table;
86
+
82
87
  /**
83
88
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
84
89
  *
@@ -88,30 +93,35 @@ interface DriveLib {
88
93
  * @source https://wiki.facepunch.com/gmod/drive.Move
89
94
  */
90
95
  Move(ply: Player, mv: CMoveData): boolean;
96
+
91
97
  /**
92
98
  * Starts driving for the player.
93
99
  * @realm shared
94
100
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStartDriving
95
101
  */
96
102
  PlayerStartDriving(ply: Player, ent: Entity, mode: string): void;
103
+
97
104
  /**
98
105
  * Stops the player from driving anything. ( For example a prop in sandbox )
99
106
  * @realm shared
100
107
  * @source https://wiki.facepunch.com/gmod/drive.PlayerStopDriving
101
108
  */
102
109
  PlayerStopDriving(ply: Player): void;
110
+
103
111
  /**
104
112
  * Registers a new entity drive mode/method.
105
113
  * @realm shared
106
114
  * @source https://wiki.facepunch.com/gmod/drive.Register
107
115
  */
108
116
  Register(name: string, data: table, base?: string): void;
117
+
109
118
  /**
110
119
  * Called when the player first starts driving this entity.
111
120
  * @realm shared
112
121
  * @source https://wiki.facepunch.com/gmod/drive.Start
113
122
  */
114
123
  Start(ply: Player, ent: Entity): void;
124
+
115
125
  /**
116
126
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
117
127
  *
@@ -122,15 +132,3 @@ interface DriveLib {
122
132
  */
123
133
  StartMove(ply: Player, mv: CMoveData, cmd: CUserCmd): boolean;
124
134
  }
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
@@ -10,4 +10,3 @@
10
10
  * @source https://wiki.facepunch.com/gmod/DScrollBarGrip
11
11
  */
12
12
  interface DScrollBarGrip extends DPanel {}
13
-