@tlua/gmod 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/index.d.tlua +1 -0
  2. package/package.json +1 -1
  3. package/types/achievements.d.tlua +15 -45
  4. package/types/ai.d.tlua +5 -15
  5. package/types/angle.d.tlua +18 -54
  6. package/types/baseclass.d.tlua +2 -4
  7. package/types/bf_read.d.tlua +11 -32
  8. package/types/bit.d.tlua +11 -33
  9. package/types/cam.d.tlua +16 -48
  10. package/types/ceffectdata.d.tlua +32 -95
  11. package/types/chat.d.tlua +5 -15
  12. package/types/cleanup.d.tlua +7 -21
  13. package/types/cluaemitter.d.tlua +12 -35
  14. package/types/clualocomotion.d.tlua +40 -119
  15. package/types/cluaparticle.d.tlua +44 -131
  16. package/types/cmovedata.d.tlua +47 -140
  17. package/types/cnavarea.d.tlua +77 -230
  18. package/types/cnavladder.d.tlua +22 -65
  19. package/types/cnewparticleeffect.d.tlua +26 -77
  20. package/types/color.d.tlua +28 -84
  21. package/types/concommand.d.tlua +4 -12
  22. package/types/constraint.d.tlua +28 -84
  23. package/types/construct.d.tlua +1 -3
  24. package/types/contentheader.d.tlua +3 -6
  25. package/types/contenticon.d.tlua +9 -24
  26. package/types/contentsidebar.d.tlua +4 -9
  27. package/types/contextbase.d.tlua +4 -9
  28. package/types/controlpanel.d.tlua +18 -40
  29. package/types/controlpresets.d.tlua +13 -36
  30. package/types/convar.d.tlua +16 -47
  31. package/types/cookie.d.tlua +3 -9
  32. package/types/coroutine.d.tlua +7 -21
  33. package/types/crecipientfilter.d.tlua +16 -47
  34. package/types/csoundpatch.d.tlua +14 -41
  35. package/types/ctakedamageinfo.d.tlua +33 -98
  36. package/types/ctrlnumpad.d.tlua +6 -17
  37. package/types/cusercmd.d.tlua +27 -80
  38. package/types/cvars.d.tlua +6 -18
  39. package/types/dadjustablemodelpanel.d.tlua +7 -18
  40. package/types/dalphabar.d.tlua +3 -6
  41. package/types/dbinder.d.tlua +4 -9
  42. package/types/dbubblecontainer.d.tlua +2 -3
  43. package/types/dbutton.d.tlua +8 -21
  44. package/types/dcheckbox.d.tlua +5 -12
  45. package/types/dcheckboxlabel.d.tlua +9 -27
  46. package/types/dcollapsiblecategory.d.tlua +23 -66
  47. package/types/dcolorbutton.d.tlua +7 -18
  48. package/types/dcolorcombo.d.tlua +5 -12
  49. package/types/dcolorcube.d.tlua +13 -36
  50. package/types/dcolormixer.d.tlua +27 -78
  51. package/types/dcolorpalette.d.tlua +23 -66
  52. package/types/dcolumnsheet.d.tlua +5 -12
  53. package/types/dcombobox.d.tlua +17 -48
  54. package/types/ddragbase.d.tlua +13 -36
  55. package/types/ddrawer.d.tlua +8 -21
  56. package/types/debug.d.tlua +44 -76
  57. package/types/debugoverlay.d.tlua +11 -33
  58. package/types/dentityproperties.d.tlua +5 -12
  59. package/types/derma.d.tlua +10 -30
  60. package/types/dexpandbutton.d.tlua +3 -6
  61. package/types/dfilebrowser.d.tlua +20 -60
  62. package/types/dform.d.tlua +18 -51
  63. package/types/dframe.d.tlua +24 -72
  64. package/types/dgrid.d.tlua +11 -30
  65. package/types/dhorizontaldivider.d.tlua +20 -57
  66. package/types/dhorizontalscroller.d.tlua +11 -30
  67. package/types/dhscrollbar.d.tlua +11 -30
  68. package/types/dhtml.d.tlua +8 -21
  69. package/types/dhtmlcontrols.d.tlua +5 -15
  70. package/types/diconbrowser.d.tlua +11 -30
  71. package/types/diconlayout.d.tlua +18 -51
  72. package/types/dimage.d.tlua +20 -55
  73. package/types/dimagebutton.d.tlua +9 -27
  74. package/types/dlabel.d.tlua +33 -96
  75. package/types/dlabeleditable.d.tlua +5 -12
  76. package/types/dlabelurl.d.tlua +10 -27
  77. package/types/dlistbox.d.tlua +8 -21
  78. package/types/dlistboxitem.d.tlua +4 -9
  79. package/types/dlistview.d.tlua +34 -99
  80. package/types/dlistview_column.d.tlua +14 -39
  81. package/types/dlistview_line.d.tlua +13 -36
  82. package/types/dmenu.d.tlua +28 -75
  83. package/types/dmenubar.d.tlua +6 -11
  84. package/types/dmenuoption.d.tlua +13 -36
  85. package/types/dmenuoptioncvar.d.tlua +6 -15
  86. package/types/dmodelpanel.d.tlua +22 -63
  87. package/types/dmodelselect.d.tlua +2 -3
  88. package/types/dmodelselectmulti.d.tlua +2 -3
  89. package/types/dnotify.d.tlua +10 -27
  90. package/types/dnumberscratch.d.tlua +26 -75
  91. package/types/dnumberwang.d.tlua +16 -45
  92. package/types/dnumslider.d.tlua +17 -51
  93. package/types/dpanel.d.tlua +14 -39
  94. package/types/dpanellist.d.tlua +11 -33
  95. package/types/dpaneloverlay.d.tlua +7 -18
  96. package/types/dpanpanel.d.tlua +6 -15
  97. package/types/dprogress.d.tlua +3 -6
  98. package/types/dproperties.d.tlua +4 -9
  99. package/types/dproperty_combo.d.tlua +3 -6
  100. package/types/dproperty_generic.d.tlua +5 -12
  101. package/types/dpropertysheet.d.tlua +26 -56
  102. package/types/dragndrop.d.tlua +10 -30
  103. package/types/draw.d.tlua +11 -31
  104. package/types/drgbpicker.d.tlua +4 -9
  105. package/types/drive.d.tlua +18 -41
  106. package/types/dscrollpanel.d.tlua +10 -30
  107. package/types/dshape.d.tlua +7 -18
  108. package/types/dsizetocontents.d.tlua +5 -12
  109. package/types/dslider.d.tlua +28 -81
  110. package/types/dsprite.d.tlua +9 -24
  111. package/types/dtab.d.tlua +8 -21
  112. package/types/dtextentry.d.tlua +43 -126
  113. package/types/dtilelayout.d.tlua +21 -60
  114. package/types/dtooltip.d.tlua +6 -15
  115. package/types/dtree.d.tlua +16 -45
  116. package/types/dtree_node.d.tlua +68 -201
  117. package/types/duplicator.d.tlua +30 -88
  118. package/types/dverticaldivider.d.tlua +23 -66
  119. package/types/dvscrollbar.d.tlua +11 -30
  120. package/types/effect.d.tlua +4 -9
  121. package/types/effects.d.tlua +6 -18
  122. package/types/engine.d.tlua +21 -63
  123. package/types/entity.d.tlua +676 -1962
  124. package/types/ents.d.tlua +23 -61
  125. package/types/file.d.tlua +39 -117
  126. package/types/frame_blend.d.tlua +7 -21
  127. package/types/game.d.tlua +39 -117
  128. package/types/gameevent.d.tlua +4 -8
  129. package/types/gamemode.d.tlua +3 -7
  130. package/types/gm.d.tlua +267 -800
  131. package/types/gmsave.d.tlua +4 -12
  132. package/types/gui.d.tlua +21 -63
  133. package/types/gwen.d.tlua +3 -9
  134. package/types/halo.d.tlua +2 -6
  135. package/types/hook.d.tlua +8 -17
  136. package/types/hook_events.d.tlua +2412 -0
  137. package/types/http.d.tlua +1 -3
  138. package/types/iconeditor.d.tlua +11 -30
  139. package/types/igmodaudiochannel.d.tlua +41 -122
  140. package/types/imagecheckbox.d.tlua +4 -9
  141. package/types/imaterial.d.tlua +26 -77
  142. package/types/imesh.d.tlua +5 -14
  143. package/types/input.d.tlua +24 -68
  144. package/types/irestore.d.tlua +9 -26
  145. package/types/isave.d.tlua +9 -26
  146. package/types/itexture.d.tlua +10 -29
  147. package/types/ivideowriter.d.tlua +5 -14
  148. package/types/jit.d.tlua +21 -53
  149. package/types/killicon.d.tlua +7 -21
  150. package/types/language.d.tlua +1 -3
  151. package/types/list.d.tlua +8 -24
  152. package/types/markup.d.tlua +2 -6
  153. package/types/markupobject.d.tlua +5 -14
  154. package/types/math.d.tlua +277 -447
  155. package/types/matproxy.d.tlua +3 -9
  156. package/types/matselect.d.tlua +11 -30
  157. package/types/menubar.d.tlua +2 -6
  158. package/types/mesh.d.tlua +19 -57
  159. package/types/motionsensor.d.tlua +10 -30
  160. package/types/navmesh.d.tlua +26 -78
  161. package/types/net.d.tlua +52 -154
  162. package/types/nextbot.d.tlua +46 -116
  163. package/types/notification.d.tlua +2 -6
  164. package/types/npc.d.tlua +182 -543
  165. package/types/numpad.d.tlua +7 -21
  166. package/types/os.d.tlua +4 -10
  167. package/types/panel.d.tlua +333 -991
  168. package/types/pathfollower.d.tlua +31 -92
  169. package/types/permissions.d.tlua +6 -18
  170. package/types/physcollide.d.tlua +3 -8
  171. package/types/physenv.d.tlua +11 -33
  172. package/types/physobj.d.tlua +78 -233
  173. package/types/player.d.tlua +302 -880
  174. package/types/player_manager.d.tlua +13 -39
  175. package/types/presets.d.tlua +6 -18
  176. package/types/projectedtexture.d.tlua +48 -143
  177. package/types/properties.d.tlua +5 -15
  178. package/types/propselect.d.tlua +5 -12
  179. package/types/render.d.tlua +142 -426
  180. package/types/resource.d.tlua +2 -6
  181. package/types/sandbox.d.tlua +54 -159
  182. package/types/saverestore.d.tlua +12 -36
  183. package/types/schedule.d.tlua +6 -17
  184. package/types/scripted_ents.d.tlua +11 -29
  185. package/types/search.d.tlua +1 -3
  186. package/types/serverlist.d.tlua +7 -21
  187. package/types/sound.d.tlua +10 -30
  188. package/types/spawnicon.d.tlua +8 -21
  189. package/types/spawnmenu.d.tlua +24 -70
  190. package/types/spawnmenucontentpanel.d.tlua +5 -12
  191. package/types/sql.d.tlua +9 -27
  192. package/types/stack.d.tlua +5 -14
  193. package/types/steamworks.d.tlua +18 -54
  194. package/types/string.d.tlua +49 -141
  195. package/types/surface.d.tlua +34 -102
  196. package/types/surfaceinfo.d.tlua +5 -14
  197. package/types/system.d.tlua +10 -30
  198. package/types/table.d.tlua +47 -137
  199. package/types/task.d.tlua +9 -26
  200. package/types/team.d.tlua +19 -57
  201. package/types/timer.d.tlua +14 -42
  202. package/types/tool.d.tlua +46 -131
  203. package/types/ugcpublishwindow.d.tlua +9 -24
  204. package/types/umsg.d.tlua +12 -36
  205. package/types/undo.d.tlua +10 -30
  206. package/types/usermessage.d.tlua +2 -6
  207. package/types/utf8.d.tlua +7 -21
  208. package/types/util.d.tlua +94 -274
  209. package/types/vector.d.tlua +36 -108
  210. package/types/vehicle.d.tlua +52 -149
  211. package/types/vgui.d.tlua +18 -46
  212. package/types/vmatrix.d.tlua +35 -105
  213. package/types/weapon.d.tlua +85 -248
  214. package/types/weapons.d.tlua +6 -16
  215. package/types/widgets.d.tlua +1 -3
  216. package/types/workshopfilebase.d.tlua +5 -14
@@ -10,72 +10,49 @@
10
10
  * @realm client
11
11
  * @source https://wiki.facepunch.com/gmod/ContentIcon
12
12
  */
13
- interface ContentIcon extends DButton {}
14
-
15
- interface ContentIcon {
13
+ interface ContentIcon extends DButton {
16
14
  /**
17
15
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the content type used to save and restore the content icon in a spawnlist.
18
16
  * @realm client
19
17
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetContentType
20
18
  */
21
19
  GetContentType(self: ContentIcon): string;
22
- }
23
-
24
- interface ContentIcon {
25
20
  /**
26
21
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns a table of weapon classes for the content icon with "NPC" content type to be randomly chosen from when user tries to spawn the NPC.
27
22
  * @realm client
28
23
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetNPCWeapon
29
24
  */
30
25
  GetNPCWeapon(self: ContentIcon): table;
31
- }
32
-
33
- interface ContentIcon {
34
26
  /**
35
27
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the internal "name" for the content icon, usually a class name for an entity.
36
28
  * @realm client
37
29
  * @source https://wiki.facepunch.com/gmod/ContentIcon:GetSpawnName
38
30
  */
39
31
  GetSpawnName(self: ContentIcon): string;
40
- }
41
-
42
- interface ContentIcon {
43
32
  /**
44
33
  * A hook for override, by default does nothing. Called when user right clicks on the content icon, you are supposed to open a [Global.DermaMenu](https://wiki.facepunch.com/gmod/Global.DermaMenu) here with additional options.
45
34
  * @realm client
46
35
  * @source https://wiki.facepunch.com/gmod/ContentIcon:OpenMenu
47
36
  */
48
37
  OpenMenu(self: ContentIcon): void;
49
- }
50
-
51
- interface ContentIcon {
52
38
  /**
53
39
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether the content item is admin only. This makes the icon to display a admin icon in the top left corner of the icon.
54
40
  * @realm client
55
41
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetAdminOnly
56
42
  */
57
43
  SetAdminOnly(self: ContentIcon, adminOnly: boolean): void;
58
- }
59
-
60
- interface ContentIcon {
61
44
  /**
62
45
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the content type used to save and restore the content icon in a spawnlist.
63
46
  * @realm client
64
47
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetContentType
65
48
  */
66
49
  SetContentType(self: ContentIcon, type: string): void;
67
- }
68
-
69
- interface ContentIcon {
70
50
  /**
71
51
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets a table of weapon classes for the content icon with "NPC" content type to be randomly chosen from when user tries to spawn the NPC.
72
52
  * @realm client
73
53
  * @source https://wiki.facepunch.com/gmod/ContentIcon:SetNPCWeapon
74
54
  */
75
55
  SetNPCWeapon(self: ContentIcon, weapons: table): void;
76
- }
77
-
78
- interface ContentIcon {
79
56
  /**
80
57
  * An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the internal "name" for the content icon, usually a class name for an entity.
81
58
  * @realm client
@@ -84,3 +61,11 @@ interface ContentIcon {
84
61
  SetSpawnName(self: ContentIcon, name: string): void;
85
62
  }
86
63
 
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
@@ -11,9 +11,7 @@
11
11
  * @realm client
12
12
  * @source https://wiki.facepunch.com/gmod/ContentSidebar
13
13
  */
14
- interface ContentSidebar extends DPanel {}
15
-
16
- interface ContentSidebar {
14
+ interface ContentSidebar extends DPanel {
17
15
  /**
18
16
  * Creates a Save Notification which will be shown when [SANDBOX:SpawnlistContentChanged](https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistContentChanged) has been called.
19
17
  *
@@ -21,9 +19,6 @@ interface ContentSidebar {
21
19
  * @source https://wiki.facepunch.com/gmod/ContentSidebar:CreateSaveNotification
22
20
  */
23
21
  CreateSaveNotification(self: ContentSidebar, style: string, hookname?: string): void;
24
- }
25
-
26
- interface ContentSidebar {
27
22
  /**
28
23
  * Internally calls [ContentSidebar:EnableSearch](https://wiki.facepunch.com/gmod/ContentSidebar:EnableSearch), [ContentSidebar:CreateSaveNotification](https://wiki.facepunch.com/gmod/ContentSidebar:CreateSaveNotification) and creates a ContentSidebarToolbox which is accessible under ContentSidebar.Toolbox. Call the Hook [SANDBOX:OpenToolbox](https://wiki.facepunch.com/gmod/SANDBOX:OpenToolbox) to open the created Toolbox
29
24
  *
@@ -31,9 +26,6 @@ interface ContentSidebar {
31
26
  * @source https://wiki.facepunch.com/gmod/ContentSidebar:EnableModify
32
27
  */
33
28
  EnableModify(self: ContentSidebar): void;
34
- }
35
-
36
- interface ContentSidebar {
37
29
  /**
38
30
  * Creates a search bar which will be displayed over the Nodes.
39
31
  *
@@ -43,3 +35,6 @@ interface ContentSidebar {
43
35
  EnableSearch(self: ContentSidebar, style: string, hookname?: string): void;
44
36
  }
45
37
 
38
+
39
+
40
+
@@ -6,27 +6,19 @@
6
6
  * @realm client
7
7
  * @source https://wiki.facepunch.com/gmod/ContextBase
8
8
  */
9
- interface ContextBase extends Panel {}
10
-
11
- interface ContextBase {
9
+ interface ContextBase extends Panel {
12
10
  /**
13
11
  * Returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) for the panel to change/handle, set by [ContextBase:SetConVar](https://wiki.facepunch.com/gmod/ContextBase:SetConVar)
14
12
  * @realm client
15
13
  * @source https://wiki.facepunch.com/gmod/ContextBase:ConVar
16
14
  */
17
15
  ConVar(self: ContextBase): string;
18
- }
19
-
20
- interface ContextBase {
21
16
  /**
22
17
  * Called by spawnmenu functions (when creating a context menu) to fill this control with data.
23
18
  * @realm client
24
19
  * @source https://wiki.facepunch.com/gmod/ContextBase:ControlValues
25
20
  */
26
21
  ControlValues(self: ContextBase, contextData: table): void;
27
- }
28
-
29
- interface ContextBase {
30
22
  /**
31
23
  * You should override this function and use it to check whether your convar value changed.
32
24
  * @realm client
@@ -35,3 +27,6 @@ interface ContextBase {
35
27
  TestForChanges(self: ContextBase): void;
36
28
  }
37
29
 
30
+
31
+
32
+
@@ -8,15 +8,6 @@ interface ControlPanel extends DForm {
8
8
  * @realm client
9
9
  */
10
10
  Label(self: ControlPanel, text: string): DLabel;
11
- }
12
-
13
- /**
14
- * The controlpanel library.
15
- * @source https://wiki.facepunch.com/gmod/controlpanel(library)
16
- */
17
- declare controlpanel: ControlpanelLib;
18
-
19
- interface ControlPanel {
20
11
  /**
21
12
  * Adds a control to the control panel.
22
13
  * @realm client
@@ -31,46 +22,30 @@ interface ControlPanel {
31
22
  * @source https://wiki.facepunch.com/gmod/ControlPanel:AddControl
32
23
  */
33
24
  AddControl(self: ControlPanel, type: string, controlinfo: table): Panel;
34
- }
35
-
36
-
37
- interface ControlPanel {
38
25
  /**
39
26
  * Adds an item by calling [DForm:AddItem](https://wiki.facepunch.com/gmod/DForm:AddItem).
40
27
  * @realm client
41
28
  * @source https://wiki.facepunch.com/gmod/ControlPanel:AddPanel
42
29
  */
43
30
  AddPanel(self: ControlPanel, panel: Panel): void;
44
- }
45
-
46
- interface ControlPanel {
47
31
  /**
48
32
  * Alias of [Panel:Clear](https://wiki.facepunch.com/gmod/Panel:Clear).
49
33
  * @realm client
50
34
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ClearControls
51
35
  */
52
36
  ClearControls(self: ControlPanel): void;
53
- }
54
-
55
- interface ControlPanel {
56
37
  /**
57
38
  * Creates a [CtrlColor](https://wiki.facepunch.com/gmod/CtrlColor) (a color picker) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
58
39
  * @realm client
59
40
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ColorPicker
60
41
  */
61
42
  ColorPicker(self: ControlPanel, label: string, convarR: string, convarG: string, convarB: string, convarA?: string): Panel;
62
- }
63
-
64
- interface ControlPanel {
65
43
  /**
66
44
  * Sets control values of the control panel.
67
45
  * @realm client
68
46
  * @source https://wiki.facepunch.com/gmod/ControlPanel:ControlValues
69
47
  */
70
48
  ControlValues(self: ControlPanel, data: table): void;
71
- }
72
-
73
- interface ControlPanel {
74
49
  /**
75
50
  * Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.
76
51
  *
@@ -81,36 +56,24 @@ interface ControlPanel {
81
56
  * @deprecated This is dumb. Just call the builder function directly.
82
57
  */
83
58
  FillViaFunction(self: ControlPanel, func: (panelToPopulate: ControlPanel) => void): void;
84
- }
85
-
86
- interface ControlPanel {
87
59
  /**
88
60
  * Returns this control panel.
89
61
  * @realm client
90
62
  * @source https://wiki.facepunch.com/gmod/ControlPanel:GetEmbeddedPanel
91
63
  */
92
64
  GetEmbeddedPanel(self: ControlPanel): ControlPanel;
93
- }
94
-
95
- interface ControlPanel {
96
65
  /**
97
66
  * Creates a CtrlNumPad (a Sandbox key binder) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
98
67
  * @realm client
99
68
  * @source https://wiki.facepunch.com/gmod/ControlPanel:KeyBinder
100
69
  */
101
70
  KeyBinder(self: ControlPanel, label1: string, convar1: string, label2?: string, convar2?: string): Panel;
102
- }
103
-
104
- interface ControlPanel {
105
71
  /**
106
72
  * Creates a [MatSelect](https://wiki.facepunch.com/gmod/MatSelect) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
107
73
  * @realm client
108
74
  * @source https://wiki.facepunch.com/gmod/ControlPanel:MatSelect
109
75
  */
110
76
  MatSelect(self: ControlPanel, convar: string, options?: table, autostretch?: boolean, width?: number, height?: number): MatSelect;
111
- }
112
-
113
- interface ControlPanel {
114
77
  /**
115
78
  * Creates a [ControlPresets](https://wiki.facepunch.com/gmod/ControlPresets) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
116
79
  * @realm client
@@ -119,6 +82,23 @@ interface ControlPanel {
119
82
  ToolPresets(self: ControlPanel, group: string, cvarList: table): Panel;
120
83
  }
121
84
 
85
+ /**
86
+ * The controlpanel library.
87
+ * @source https://wiki.facepunch.com/gmod/controlpanel(library)
88
+ */
89
+ declare controlpanel: ControlpanelLib;
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
122
102
  interface ControlpanelLib {
123
103
  /**
124
104
  * Clears ALL the control panels ( for tools ).
@@ -126,9 +106,6 @@ interface ControlpanelLib {
126
106
  * @source https://wiki.facepunch.com/gmod/controlpanel.Clear
127
107
  */
128
108
  Clear(): void;
129
- }
130
-
131
- interface ControlpanelLib {
132
109
  /**
133
110
  * Returns (or creates if not exists) a control panel.
134
111
  * @realm client
@@ -138,3 +115,4 @@ interface ControlpanelLib {
138
115
  }
139
116
 
140
117
 
118
+
@@ -8,36 +8,25 @@
8
8
  * @realm client
9
9
  * @source https://wiki.facepunch.com/gmod/ControlPresets
10
10
  */
11
- interface ControlPresets extends Panel {}
12
-
13
- interface ControlPresets {
11
+ interface ControlPresets extends Panel {
14
12
  /**
15
13
  * Adds a convar to be managed by this control.
16
14
  * @realm client
17
15
  * @source https://wiki.facepunch.com/gmod/ControlPresets:AddConVar
18
16
  */
19
17
  AddConVar(self: ControlPresets, convar: string): void;
20
- }
21
-
22
- interface ControlPresets {
23
18
  /**
24
19
  * Adds option to the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox) subelement with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) then adds it to the `options` subtable
25
20
  * @realm client
26
21
  * @source https://wiki.facepunch.com/gmod/ControlPresets:AddOption
27
22
  */
28
23
  AddOption(self: ControlPresets, strName: string, data: any): void;
29
- }
30
-
31
- interface ControlPresets {
32
24
  /**
33
25
  * Get a list of all Console Variables being managed by this panel.
34
26
  * @realm client
35
27
  * @source https://wiki.facepunch.com/gmod/ControlPresets:GetConVars
36
28
  */
37
29
  GetConVars(self: ControlPresets): table;
38
- }
39
-
40
- interface ControlPresets {
41
30
  /**
42
31
  * Checks if Data is valid then uses [Global.pairs](https://wiki.facepunch.com/gmod/Global.pairs) to iterate over the data parameter and run each entry using [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand)
43
32
  * Index and Value parameters appear to not be used. Further testing should be done to confirm
@@ -46,68 +35,44 @@ interface ControlPresets {
46
35
  * @source https://wiki.facepunch.com/gmod/ControlPresets:OnSelect
47
36
  */
48
37
  OnSelect(self: ControlPresets, index: number, value: any, data: table): void;
49
- }
50
-
51
- interface ControlPresets {
52
38
  /**
53
39
  * Creates and opens [PresetEditor](https://wiki.facepunch.com/gmod/PresetEditor)
54
40
  * @realm client
55
41
  * @source https://wiki.facepunch.com/gmod/ControlPresets:OpenPresetEditor
56
42
  */
57
43
  OpenPresetEditor(self: ControlPresets): void;
58
- }
59
-
60
- interface ControlPresets {
61
44
  /**
62
45
  * @realm client
63
46
  * @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSaveInternal
64
47
  */
65
48
  QuickSaveInternal(self: ControlPresets, text: string): void;
66
- }
67
-
68
- interface ControlPresets {
69
49
  /**
70
50
  * @realm client
71
51
  * @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSavePreset
72
52
  */
73
53
  QuickSavePreset(self: ControlPresets): void;
74
- }
75
-
76
- interface ControlPresets {
77
54
  /**
78
55
  * @realm client
79
56
  * @source https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets
80
57
  */
81
58
  ReloadPresets(self: ControlPresets): void;
82
- }
83
-
84
- interface ControlPresets {
85
59
  /**
86
60
  * Set the name label text.
87
61
  * @realm client
88
62
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetLabel
89
63
  */
90
64
  SetLabel(self: ControlPresets, name: string): void;
91
- }
92
-
93
- interface ControlPresets {
94
65
  /**
95
66
  * Uses [table.Merge](https://wiki.facepunch.com/gmod/table.Merge) to combine the provided table into the `Options` subtable
96
67
  * @realm client
97
68
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetOptions
98
69
  */
99
70
  SetOptions(self: ControlPresets, Options: table): void;
100
- }
101
-
102
- interface ControlPresets {
103
71
  /**
104
72
  * @realm client
105
73
  * @source https://wiki.facepunch.com/gmod/ControlPresets:SetPreset
106
74
  */
107
75
  SetPreset(self: ControlPresets, strName: string): void;
108
- }
109
-
110
- interface ControlPresets {
111
76
  /**
112
77
  * Alias of [ControlPresets:ReloadPresets](https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets)
113
78
  * @realm client
@@ -116,3 +81,15 @@ interface ControlPresets {
116
81
  Update(self: ControlPresets): void;
117
82
  }
118
83
 
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
@@ -6,8 +6,6 @@
6
6
  * It represents a console variable. See [this](https://wiki.facepunch.com/gmod/ConVars) page for more information.
7
7
  * @source https://wiki.facepunch.com/gmod/ConVar
8
8
  */
9
- interface ConVar {}
10
-
11
9
  interface ConVar {
12
10
  /**
13
11
  * Tries to convert the current string value of a [ConVar](https://wiki.facepunch.com/gmod/ConVar) to a boolean.
@@ -15,99 +13,66 @@ interface ConVar {
15
13
  * @source https://wiki.facepunch.com/gmod/ConVar:GetBool
16
14
  */
17
15
  GetBool(self: ConVar): boolean;
18
- }
19
-
20
- interface ConVar {
21
16
  /**
22
17
  * Returns the default value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
23
18
  * @realm shared and menu
24
19
  * @source https://wiki.facepunch.com/gmod/ConVar:GetDefault
25
20
  */
26
21
  GetDefault(self: ConVar): string;
27
- }
28
-
29
- interface ConVar {
30
22
  /**
31
23
  * Returns the [Enums/FCVAR](https://wiki.facepunch.com/gmod/Enums/FCVAR) flags of the ConVar
32
24
  * @realm shared and menu
33
25
  * @source https://wiki.facepunch.com/gmod/ConVar:GetFlags
34
26
  */
35
27
  GetFlags(self: ConVar): number;
36
- }
37
-
38
- interface ConVar {
39
28
  /**
40
29
  * Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a float
41
30
  * @realm shared and menu
42
31
  * @source https://wiki.facepunch.com/gmod/ConVar:GetFloat
43
32
  */
44
33
  GetFloat(self: ConVar): number;
45
- }
46
-
47
- interface ConVar {
48
34
  /**
49
35
  * Returns the help text assigned to that convar.
50
36
  * @realm shared and menu
51
37
  * @source https://wiki.facepunch.com/gmod/ConVar:GetHelpText
52
38
  */
53
39
  GetHelpText(self: ConVar): string;
54
- }
55
-
56
- interface ConVar {
57
40
  /**
58
41
  * Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a integer.
59
42
  * @realm shared and menu
60
43
  * @source https://wiki.facepunch.com/gmod/ConVar:GetInt
61
44
  */
62
45
  GetInt(self: ConVar): number;
63
- }
64
-
65
- interface ConVar {
66
46
  /**
67
47
  * Returns the maximum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
68
48
  * @realm shared and menu
69
49
  * @source https://wiki.facepunch.com/gmod/ConVar:GetMax
70
50
  */
71
51
  GetMax(self: ConVar): number;
72
- }
73
-
74
- interface ConVar {
75
52
  /**
76
53
  * Returns the minimum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
77
54
  * @realm shared and menu
78
55
  * @source https://wiki.facepunch.com/gmod/ConVar:GetMin
79
56
  */
80
57
  GetMin(self: ConVar): number;
81
- }
82
-
83
- interface ConVar {
84
58
  /**
85
59
  * Returns the name of the [ConVar](https://wiki.facepunch.com/gmod/ConVar).
86
60
  * @realm shared and menu
87
61
  * @source https://wiki.facepunch.com/gmod/ConVar:GetName
88
62
  */
89
63
  GetName(self: ConVar): string;
90
- }
91
-
92
- interface ConVar {
93
64
  /**
94
65
  * Returns the current [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a string.
95
66
  * @realm shared and menu
96
67
  * @source https://wiki.facepunch.com/gmod/ConVar:GetString
97
68
  */
98
69
  GetString(self: ConVar): string;
99
- }
100
-
101
- interface ConVar {
102
70
  /**
103
71
  * Returns whether the specified flag is set on the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
104
72
  * @realm shared and menu
105
73
  * @source https://wiki.facepunch.com/gmod/ConVar:IsFlagSet
106
74
  */
107
75
  IsFlagSet(self: ConVar, flag: number): boolean;
108
- }
109
-
110
- interface ConVar {
111
76
  /**
112
77
  * Reverts [ConVar](https://wiki.facepunch.com/gmod/ConVar) to its default value
113
78
  *
@@ -117,18 +82,12 @@ interface ConVar {
117
82
  * @source https://wiki.facepunch.com/gmod/ConVar:Revert
118
83
  */
119
84
  Revert(self: ConVar): void;
120
- }
121
-
122
- interface ConVar {
123
85
  /**
124
86
  * Sets a ConVar's value to 1 or 0 based on the input boolean. This can only be ran on ConVars created from within Lua.
125
87
  * @realm shared and menu
126
88
  * @source https://wiki.facepunch.com/gmod/ConVar:SetBool
127
89
  */
128
90
  SetBool(self: ConVar, value: boolean): void;
129
- }
130
-
131
- interface ConVar {
132
91
  /**
133
92
  * Sets a ConVar's value to the input number.
134
93
  * **NOTE**: This can only be ran on ConVars created from within Lua.
@@ -137,9 +96,6 @@ interface ConVar {
137
96
  * @source https://wiki.facepunch.com/gmod/ConVar:SetFloat
138
97
  */
139
98
  SetFloat(self: ConVar, value: number): void;
140
- }
141
-
142
- interface ConVar {
143
99
  /**
144
100
  * Sets a ConVar's value to the input number after converting it to an integer.
145
101
  *
@@ -149,9 +105,6 @@ interface ConVar {
149
105
  * @source https://wiki.facepunch.com/gmod/ConVar:SetInt
150
106
  */
151
107
  SetInt(self: ConVar, value: number): void;
152
- }
153
-
154
- interface ConVar {
155
108
  /**
156
109
  * Sets a ConVar's value to the input string. This can only be ran on ConVars created from within Lua.
157
110
  * @realm shared and menu
@@ -160,3 +113,19 @@ interface ConVar {
160
113
  SetString(self: ConVar, value: string): void;
161
114
  }
162
115
 
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
@@ -27,27 +27,18 @@ interface CookieLib {
27
27
  * @source https://wiki.facepunch.com/gmod/cookie.Delete
28
28
  */
29
29
  Delete(key: string): void;
30
- }
31
-
32
- interface CookieLib {
33
30
  /**
34
31
  * Gets the value of a cookie on the client as a number.
35
32
  * @realm shared and menu
36
33
  * @source https://wiki.facepunch.com/gmod/cookie.GetNumber
37
34
  */
38
35
  GetNumber(name: string, _default?: any): number;
39
- }
40
-
41
- interface CookieLib {
42
36
  /**
43
37
  * Gets the value of a cookie on the client as a string.
44
38
  * @realm shared and menu
45
39
  * @source https://wiki.facepunch.com/gmod/cookie.GetString
46
40
  */
47
41
  GetString(name: string, _default?: any): string;
48
- }
49
-
50
- interface CookieLib {
51
42
  /**
52
43
  * Creates / updates a cookie in the [Database](https://wiki.facepunch.com/gmod/cookie).
53
44
  *
@@ -58,3 +49,6 @@ interface CookieLib {
58
49
  Set(key: string, value: string): void;
59
50
  }
60
51
 
52
+
53
+
54
+
@@ -11,9 +11,6 @@ interface CoroutineLib {
11
11
  * @source https://wiki.facepunch.com/gmod/coroutine.create
12
12
  */
13
13
  create(func: function): thread;
14
- }
15
-
16
- interface CoroutineLib {
17
14
  /**
18
15
  * Returns whether the running coroutine can yield.
19
16
  * A running coroutine is yieldable if it is not in the main thread, and it is not inside a non-yieldable C function.
@@ -24,36 +21,24 @@ interface CoroutineLib {
24
21
  * @source https://wiki.facepunch.com/gmod/coroutine.isyieldable
25
22
  */
26
23
  isyieldable(): boolean;
27
- }
28
-
29
- interface CoroutineLib {
30
24
  /**
31
25
  * Resumes the given coroutine and passes the given vararg to either the function arguments or the [coroutine.yield](https://wiki.facepunch.com/gmod/coroutine.yield) that is inside that function and returns whatever yield is called with the next time or by the final return in the function.
32
26
  * @realm shared and menu
33
27
  * @source https://wiki.facepunch.com/gmod/coroutine.resume
34
28
  */
35
29
  resume(coroutine: thread, ...: any): (boolean, ...any);
36
- }
37
-
38
- interface CoroutineLib {
39
30
  /**
40
31
  * Returns the active coroutine or nil if we are not within a coroutine.
41
32
  * @realm shared and menu
42
33
  * @source https://wiki.facepunch.com/gmod/coroutine.running
43
34
  */
44
35
  running(): thread;
45
- }
46
-
47
- interface CoroutineLib {
48
36
  /**
49
37
  * Returns the status of the coroutine passed to it, the possible statuses are "suspended", "running", and "dead".
50
38
  * @realm shared and menu
51
39
  * @source https://wiki.facepunch.com/gmod/coroutine.status
52
40
  */
53
41
  status(coroutine: thread): string;
54
- }
55
-
56
- interface CoroutineLib {
57
42
  /**
58
43
  * Repeatedly yields the coroutine for the given duration before continuing.
59
44
  *
@@ -65,9 +50,6 @@ interface CoroutineLib {
65
50
  * @source https://wiki.facepunch.com/gmod/coroutine.wait
66
51
  */
67
52
  wait(duration: number): void;
68
- }
69
-
70
- interface CoroutineLib {
71
53
  /**
72
54
  * Returns a function which calling is equivalent with calling [coroutine.resume](https://wiki.facepunch.com/gmod/coroutine.resume) with the coroutine and all extra parameters.
73
55
  *
@@ -77,9 +59,6 @@ interface CoroutineLib {
77
59
  * @source https://wiki.facepunch.com/gmod/coroutine.wrap
78
60
  */
79
61
  wrap(coroutine: function): function;
80
- }
81
-
82
- interface CoroutineLib {
83
62
  /**
84
63
  * Pauses the active coroutine and passes all additional variables to the call of [coroutine.resume](https://wiki.facepunch.com/gmod/coroutine.resume) that resumed the coroutine last time, and returns all additional variables that were passed to the previous call of resume.
85
64
  * @realm shared and menu
@@ -88,3 +67,10 @@ interface CoroutineLib {
88
67
  yield(...: any): (...any);
89
68
  }
90
69
 
70
+
71
+
72
+
73
+
74
+
75
+
76
+