@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.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/contenticon.d.tlua
CHANGED
|
@@ -10,72 +10,56 @@
|
|
|
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
20
|
|
|
24
|
-
interface ContentIcon {
|
|
25
21
|
/**
|
|
26
22
|
* 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
23
|
* @realm client
|
|
28
24
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:GetNPCWeapon
|
|
29
25
|
*/
|
|
30
26
|
GetNPCWeapon(self: ContentIcon): table;
|
|
31
|
-
}
|
|
32
27
|
|
|
33
|
-
interface ContentIcon {
|
|
34
28
|
/**
|
|
35
29
|
* 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
30
|
* @realm client
|
|
37
31
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:GetSpawnName
|
|
38
32
|
*/
|
|
39
33
|
GetSpawnName(self: ContentIcon): string;
|
|
40
|
-
}
|
|
41
34
|
|
|
42
|
-
interface ContentIcon {
|
|
43
35
|
/**
|
|
44
36
|
* 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
37
|
* @realm client
|
|
46
38
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:OpenMenu
|
|
47
39
|
*/
|
|
48
40
|
OpenMenu(self: ContentIcon): void;
|
|
49
|
-
}
|
|
50
41
|
|
|
51
|
-
interface ContentIcon {
|
|
52
42
|
/**
|
|
53
43
|
* 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
44
|
* @realm client
|
|
55
45
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:SetAdminOnly
|
|
56
46
|
*/
|
|
57
47
|
SetAdminOnly(self: ContentIcon, adminOnly: boolean): void;
|
|
58
|
-
}
|
|
59
48
|
|
|
60
|
-
interface ContentIcon {
|
|
61
49
|
/**
|
|
62
50
|
* 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
51
|
* @realm client
|
|
64
52
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:SetContentType
|
|
65
53
|
*/
|
|
66
54
|
SetContentType(self: ContentIcon, type: string): void;
|
|
67
|
-
}
|
|
68
55
|
|
|
69
|
-
interface ContentIcon {
|
|
70
56
|
/**
|
|
71
57
|
* 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
58
|
* @realm client
|
|
73
59
|
* @source https://wiki.facepunch.com/gmod/ContentIcon:SetNPCWeapon
|
|
74
60
|
*/
|
|
75
61
|
SetNPCWeapon(self: ContentIcon, weapons: table): void;
|
|
76
|
-
}
|
|
77
62
|
|
|
78
|
-
interface ContentIcon {
|
|
79
63
|
/**
|
|
80
64
|
* 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
65
|
* @realm client
|
|
@@ -83,4 +67,3 @@ interface ContentIcon {
|
|
|
83
67
|
*/
|
|
84
68
|
SetSpawnName(self: ContentIcon, name: string): void;
|
|
85
69
|
}
|
|
86
|
-
|
|
@@ -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,7 @@ 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
22
|
|
|
26
|
-
interface ContentSidebar {
|
|
27
23
|
/**
|
|
28
24
|
* 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
25
|
*
|
|
@@ -31,9 +27,7 @@ interface ContentSidebar {
|
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/ContentSidebar:EnableModify
|
|
32
28
|
*/
|
|
33
29
|
EnableModify(self: ContentSidebar): void;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface ContentSidebar {
|
|
37
31
|
/**
|
|
38
32
|
* Creates a search bar which will be displayed over the Nodes.
|
|
39
33
|
*
|
|
@@ -42,4 +36,3 @@ interface ContentSidebar {
|
|
|
42
36
|
*/
|
|
43
37
|
EnableSearch(self: ContentSidebar, style: string, hookname?: string): void;
|
|
44
38
|
}
|
|
45
|
-
|
package/types/contextbase.d.tlua
CHANGED
|
@@ -6,27 +6,21 @@
|
|
|
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
16
|
|
|
20
|
-
interface ContextBase {
|
|
21
17
|
/**
|
|
22
18
|
* Called by spawnmenu functions (when creating a context menu) to fill this control with data.
|
|
23
19
|
* @realm client
|
|
24
20
|
* @source https://wiki.facepunch.com/gmod/ContextBase:ControlValues
|
|
25
21
|
*/
|
|
26
22
|
ControlValues(self: ContextBase, contextData: table): void;
|
|
27
|
-
}
|
|
28
23
|
|
|
29
|
-
interface ContextBase {
|
|
30
24
|
/**
|
|
31
25
|
* You should override this function and use it to check whether your convar value changed.
|
|
32
26
|
* @realm client
|
|
@@ -34,4 +28,3 @@ interface ContextBase {
|
|
|
34
28
|
*/
|
|
35
29
|
TestForChanges(self: ContextBase): void;
|
|
36
30
|
}
|
|
37
|
-
|
|
@@ -8,15 +8,7 @@ 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
11
|
|
|
19
|
-
interface ControlPanel {
|
|
20
12
|
/**
|
|
21
13
|
* Adds a control to the control panel.
|
|
22
14
|
* @realm client
|
|
@@ -31,46 +23,35 @@ interface ControlPanel {
|
|
|
31
23
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:AddControl
|
|
32
24
|
*/
|
|
33
25
|
AddControl(self: ControlPanel, type: string, controlinfo: table): Panel;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
26
|
|
|
37
|
-
interface ControlPanel {
|
|
38
27
|
/**
|
|
39
28
|
* Adds an item by calling [DForm:AddItem](https://wiki.facepunch.com/gmod/DForm:AddItem).
|
|
40
29
|
* @realm client
|
|
41
30
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:AddPanel
|
|
42
31
|
*/
|
|
43
32
|
AddPanel(self: ControlPanel, panel: Panel): void;
|
|
44
|
-
}
|
|
45
33
|
|
|
46
|
-
interface ControlPanel {
|
|
47
34
|
/**
|
|
48
35
|
* Alias of [Panel:Clear](https://wiki.facepunch.com/gmod/Panel:Clear).
|
|
49
36
|
* @realm client
|
|
50
37
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:ClearControls
|
|
51
38
|
*/
|
|
52
39
|
ClearControls(self: ControlPanel): void;
|
|
53
|
-
}
|
|
54
40
|
|
|
55
|
-
interface ControlPanel {
|
|
56
41
|
/**
|
|
57
42
|
* 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
43
|
* @realm client
|
|
59
44
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:ColorPicker
|
|
60
45
|
*/
|
|
61
46
|
ColorPicker(self: ControlPanel, label: string, convarR: string, convarG: string, convarB: string, convarA?: string): Panel;
|
|
62
|
-
}
|
|
63
47
|
|
|
64
|
-
interface ControlPanel {
|
|
65
48
|
/**
|
|
66
49
|
* Sets control values of the control panel.
|
|
67
50
|
* @realm client
|
|
68
51
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:ControlValues
|
|
69
52
|
*/
|
|
70
53
|
ControlValues(self: ControlPanel, data: table): void;
|
|
71
|
-
}
|
|
72
54
|
|
|
73
|
-
interface ControlPanel {
|
|
74
55
|
/**
|
|
75
56
|
* Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.
|
|
76
57
|
*
|
|
@@ -81,36 +62,28 @@ interface ControlPanel {
|
|
|
81
62
|
* @deprecated This is dumb. Just call the builder function directly.
|
|
82
63
|
*/
|
|
83
64
|
FillViaFunction(self: ControlPanel, func: (panelToPopulate: ControlPanel) => void): void;
|
|
84
|
-
}
|
|
85
65
|
|
|
86
|
-
interface ControlPanel {
|
|
87
66
|
/**
|
|
88
67
|
* Returns this control panel.
|
|
89
68
|
* @realm client
|
|
90
69
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:GetEmbeddedPanel
|
|
91
70
|
*/
|
|
92
71
|
GetEmbeddedPanel(self: ControlPanel): ControlPanel;
|
|
93
|
-
}
|
|
94
72
|
|
|
95
|
-
interface ControlPanel {
|
|
96
73
|
/**
|
|
97
74
|
* Creates a CtrlNumPad (a Sandbox key binder) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
|
|
98
75
|
* @realm client
|
|
99
76
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:KeyBinder
|
|
100
77
|
*/
|
|
101
78
|
KeyBinder(self: ControlPanel, label1: string, convar1: string, label2?: string, convar2?: string): Panel;
|
|
102
|
-
}
|
|
103
79
|
|
|
104
|
-
interface ControlPanel {
|
|
105
80
|
/**
|
|
106
81
|
* Creates a [MatSelect](https://wiki.facepunch.com/gmod/MatSelect) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
|
|
107
82
|
* @realm client
|
|
108
83
|
* @source https://wiki.facepunch.com/gmod/ControlPanel:MatSelect
|
|
109
84
|
*/
|
|
110
85
|
MatSelect(self: ControlPanel, convar: string, options?: table, autostretch?: boolean, width?: number, height?: number): MatSelect;
|
|
111
|
-
}
|
|
112
86
|
|
|
113
|
-
interface ControlPanel {
|
|
114
87
|
/**
|
|
115
88
|
* Creates a [ControlPresets](https://wiki.facepunch.com/gmod/ControlPresets) panel and adds it as an [item](https://wiki.facepunch.com/gmod/ControlPanel:AddPanel).
|
|
116
89
|
* @realm client
|
|
@@ -119,6 +92,12 @@ interface ControlPanel {
|
|
|
119
92
|
ToolPresets(self: ControlPanel, group: string, cvarList: table): Panel;
|
|
120
93
|
}
|
|
121
94
|
|
|
95
|
+
/**
|
|
96
|
+
* The controlpanel library.
|
|
97
|
+
* @source https://wiki.facepunch.com/gmod/controlpanel(library)
|
|
98
|
+
*/
|
|
99
|
+
declare controlpanel: ControlpanelLib;
|
|
100
|
+
|
|
122
101
|
interface ControlpanelLib {
|
|
123
102
|
/**
|
|
124
103
|
* Clears ALL the control panels ( for tools ).
|
|
@@ -126,9 +105,7 @@ interface ControlpanelLib {
|
|
|
126
105
|
* @source https://wiki.facepunch.com/gmod/controlpanel.Clear
|
|
127
106
|
*/
|
|
128
107
|
Clear(): void;
|
|
129
|
-
}
|
|
130
108
|
|
|
131
|
-
interface ControlpanelLib {
|
|
132
109
|
/**
|
|
133
110
|
* Returns (or creates if not exists) a control panel.
|
|
134
111
|
* @realm client
|
|
@@ -136,5 +113,3 @@ interface ControlpanelLib {
|
|
|
136
113
|
*/
|
|
137
114
|
Get(name: string): ControlPanel;
|
|
138
115
|
}
|
|
139
|
-
|
|
140
|
-
|
|
@@ -8,36 +8,28 @@
|
|
|
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
18
|
|
|
22
|
-
interface ControlPresets {
|
|
23
19
|
/**
|
|
24
20
|
* 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
21
|
* @realm client
|
|
26
22
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:AddOption
|
|
27
23
|
*/
|
|
28
24
|
AddOption(self: ControlPresets, strName: string, data: any): void;
|
|
29
|
-
}
|
|
30
25
|
|
|
31
|
-
interface ControlPresets {
|
|
32
26
|
/**
|
|
33
27
|
* Get a list of all Console Variables being managed by this panel.
|
|
34
28
|
* @realm client
|
|
35
29
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:GetConVars
|
|
36
30
|
*/
|
|
37
31
|
GetConVars(self: ControlPresets): table;
|
|
38
|
-
}
|
|
39
32
|
|
|
40
|
-
interface ControlPresets {
|
|
41
33
|
/**
|
|
42
34
|
* 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
35
|
* Index and Value parameters appear to not be used. Further testing should be done to confirm
|
|
@@ -46,68 +38,52 @@ interface ControlPresets {
|
|
|
46
38
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:OnSelect
|
|
47
39
|
*/
|
|
48
40
|
OnSelect(self: ControlPresets, index: number, value: any, data: table): void;
|
|
49
|
-
}
|
|
50
41
|
|
|
51
|
-
interface ControlPresets {
|
|
52
42
|
/**
|
|
53
43
|
* Creates and opens [PresetEditor](https://wiki.facepunch.com/gmod/PresetEditor)
|
|
54
44
|
* @realm client
|
|
55
45
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:OpenPresetEditor
|
|
56
46
|
*/
|
|
57
47
|
OpenPresetEditor(self: ControlPresets): void;
|
|
58
|
-
}
|
|
59
48
|
|
|
60
|
-
interface ControlPresets {
|
|
61
49
|
/**
|
|
62
50
|
* @realm client
|
|
63
51
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSaveInternal
|
|
64
52
|
*/
|
|
65
53
|
QuickSaveInternal(self: ControlPresets, text: string): void;
|
|
66
|
-
}
|
|
67
54
|
|
|
68
|
-
interface ControlPresets {
|
|
69
55
|
/**
|
|
70
56
|
* @realm client
|
|
71
57
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:QuickSavePreset
|
|
72
58
|
*/
|
|
73
59
|
QuickSavePreset(self: ControlPresets): void;
|
|
74
|
-
}
|
|
75
60
|
|
|
76
|
-
interface ControlPresets {
|
|
77
61
|
/**
|
|
78
62
|
* @realm client
|
|
79
63
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets
|
|
80
64
|
*/
|
|
81
65
|
ReloadPresets(self: ControlPresets): void;
|
|
82
|
-
}
|
|
83
66
|
|
|
84
|
-
interface ControlPresets {
|
|
85
67
|
/**
|
|
86
68
|
* Set the name label text.
|
|
87
69
|
* @realm client
|
|
88
70
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:SetLabel
|
|
89
71
|
*/
|
|
90
72
|
SetLabel(self: ControlPresets, name: string): void;
|
|
91
|
-
}
|
|
92
73
|
|
|
93
|
-
interface ControlPresets {
|
|
94
74
|
/**
|
|
95
75
|
* Uses [table.Merge](https://wiki.facepunch.com/gmod/table.Merge) to combine the provided table into the `Options` subtable
|
|
96
76
|
* @realm client
|
|
97
77
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:SetOptions
|
|
98
78
|
*/
|
|
99
79
|
SetOptions(self: ControlPresets, Options: table): void;
|
|
100
|
-
}
|
|
101
80
|
|
|
102
|
-
interface ControlPresets {
|
|
103
81
|
/**
|
|
104
82
|
* @realm client
|
|
105
83
|
* @source https://wiki.facepunch.com/gmod/ControlPresets:SetPreset
|
|
106
84
|
*/
|
|
107
85
|
SetPreset(self: ControlPresets, strName: string): void;
|
|
108
|
-
}
|
|
109
86
|
|
|
110
|
-
interface ControlPresets {
|
|
111
87
|
/**
|
|
112
88
|
* Alias of [ControlPresets:ReloadPresets](https://wiki.facepunch.com/gmod/ControlPresets:ReloadPresets)
|
|
113
89
|
* @realm client
|
|
@@ -115,4 +91,3 @@ interface ControlPresets {
|
|
|
115
91
|
*/
|
|
116
92
|
Update(self: ControlPresets): void;
|
|
117
93
|
}
|
|
118
|
-
|
package/types/convar.d.tlua
CHANGED
|
@@ -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,77 @@ interface ConVar {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetBool
|
|
16
14
|
*/
|
|
17
15
|
GetBool(self: ConVar): boolean;
|
|
18
|
-
}
|
|
19
16
|
|
|
20
|
-
interface ConVar {
|
|
21
17
|
/**
|
|
22
18
|
* Returns the default value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
23
19
|
* @realm shared and menu
|
|
24
20
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetDefault
|
|
25
21
|
*/
|
|
26
22
|
GetDefault(self: ConVar): string;
|
|
27
|
-
}
|
|
28
23
|
|
|
29
|
-
interface ConVar {
|
|
30
24
|
/**
|
|
31
25
|
* Returns the [Enums/FCVAR](https://wiki.facepunch.com/gmod/Enums/FCVAR) flags of the ConVar
|
|
32
26
|
* @realm shared and menu
|
|
33
27
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetFlags
|
|
34
28
|
*/
|
|
35
29
|
GetFlags(self: ConVar): number;
|
|
36
|
-
}
|
|
37
30
|
|
|
38
|
-
interface ConVar {
|
|
39
31
|
/**
|
|
40
32
|
* Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a float
|
|
41
33
|
* @realm shared and menu
|
|
42
34
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetFloat
|
|
43
35
|
*/
|
|
44
36
|
GetFloat(self: ConVar): number;
|
|
45
|
-
}
|
|
46
37
|
|
|
47
|
-
interface ConVar {
|
|
48
38
|
/**
|
|
49
39
|
* Returns the help text assigned to that convar.
|
|
50
40
|
* @realm shared and menu
|
|
51
41
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetHelpText
|
|
52
42
|
*/
|
|
53
43
|
GetHelpText(self: ConVar): string;
|
|
54
|
-
}
|
|
55
44
|
|
|
56
|
-
interface ConVar {
|
|
57
45
|
/**
|
|
58
46
|
* Attempts to convert the [ConVar](https://wiki.facepunch.com/gmod/ConVar) value to a integer.
|
|
59
47
|
* @realm shared and menu
|
|
60
48
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetInt
|
|
61
49
|
*/
|
|
62
50
|
GetInt(self: ConVar): number;
|
|
63
|
-
}
|
|
64
51
|
|
|
65
|
-
interface ConVar {
|
|
66
52
|
/**
|
|
67
53
|
* Returns the maximum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
68
54
|
* @realm shared and menu
|
|
69
55
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetMax
|
|
70
56
|
*/
|
|
71
57
|
GetMax(self: ConVar): number;
|
|
72
|
-
}
|
|
73
58
|
|
|
74
|
-
interface ConVar {
|
|
75
59
|
/**
|
|
76
60
|
* Returns the minimum value of the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
77
61
|
* @realm shared and menu
|
|
78
62
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetMin
|
|
79
63
|
*/
|
|
80
64
|
GetMin(self: ConVar): number;
|
|
81
|
-
}
|
|
82
65
|
|
|
83
|
-
interface ConVar {
|
|
84
66
|
/**
|
|
85
67
|
* Returns the name of the [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
86
68
|
* @realm shared and menu
|
|
87
69
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetName
|
|
88
70
|
*/
|
|
89
71
|
GetName(self: ConVar): string;
|
|
90
|
-
}
|
|
91
72
|
|
|
92
|
-
interface ConVar {
|
|
93
73
|
/**
|
|
94
74
|
* Returns the current [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a string.
|
|
95
75
|
* @realm shared and menu
|
|
96
76
|
* @source https://wiki.facepunch.com/gmod/ConVar:GetString
|
|
97
77
|
*/
|
|
98
78
|
GetString(self: ConVar): string;
|
|
99
|
-
}
|
|
100
79
|
|
|
101
|
-
interface ConVar {
|
|
102
80
|
/**
|
|
103
81
|
* Returns whether the specified flag is set on the [ConVar](https://wiki.facepunch.com/gmod/ConVar)
|
|
104
82
|
* @realm shared and menu
|
|
105
83
|
* @source https://wiki.facepunch.com/gmod/ConVar:IsFlagSet
|
|
106
84
|
*/
|
|
107
85
|
IsFlagSet(self: ConVar, flag: number): boolean;
|
|
108
|
-
}
|
|
109
86
|
|
|
110
|
-
interface ConVar {
|
|
111
87
|
/**
|
|
112
88
|
* Reverts [ConVar](https://wiki.facepunch.com/gmod/ConVar) to its default value
|
|
113
89
|
*
|
|
@@ -117,18 +93,14 @@ interface ConVar {
|
|
|
117
93
|
* @source https://wiki.facepunch.com/gmod/ConVar:Revert
|
|
118
94
|
*/
|
|
119
95
|
Revert(self: ConVar): void;
|
|
120
|
-
}
|
|
121
96
|
|
|
122
|
-
interface ConVar {
|
|
123
97
|
/**
|
|
124
98
|
* 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
99
|
* @realm shared and menu
|
|
126
100
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetBool
|
|
127
101
|
*/
|
|
128
102
|
SetBool(self: ConVar, value: boolean): void;
|
|
129
|
-
}
|
|
130
103
|
|
|
131
|
-
interface ConVar {
|
|
132
104
|
/**
|
|
133
105
|
* Sets a ConVar's value to the input number.
|
|
134
106
|
* **NOTE**: This can only be ran on ConVars created from within Lua.
|
|
@@ -137,9 +109,7 @@ interface ConVar {
|
|
|
137
109
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetFloat
|
|
138
110
|
*/
|
|
139
111
|
SetFloat(self: ConVar, value: number): void;
|
|
140
|
-
}
|
|
141
112
|
|
|
142
|
-
interface ConVar {
|
|
143
113
|
/**
|
|
144
114
|
* Sets a ConVar's value to the input number after converting it to an integer.
|
|
145
115
|
*
|
|
@@ -149,9 +119,7 @@ interface ConVar {
|
|
|
149
119
|
* @source https://wiki.facepunch.com/gmod/ConVar:SetInt
|
|
150
120
|
*/
|
|
151
121
|
SetInt(self: ConVar, value: number): void;
|
|
152
|
-
}
|
|
153
122
|
|
|
154
|
-
interface ConVar {
|
|
155
123
|
/**
|
|
156
124
|
* Sets a ConVar's value to the input string. This can only be ran on ConVars created from within Lua.
|
|
157
125
|
* @realm shared and menu
|
|
@@ -159,4 +127,3 @@ interface ConVar {
|
|
|
159
127
|
*/
|
|
160
128
|
SetString(self: ConVar, value: string): void;
|
|
161
129
|
}
|
|
162
|
-
|
package/types/cookie.d.tlua
CHANGED
|
@@ -27,27 +27,21 @@ interface CookieLib {
|
|
|
27
27
|
* @source https://wiki.facepunch.com/gmod/cookie.Delete
|
|
28
28
|
*/
|
|
29
29
|
Delete(key: string): void;
|
|
30
|
-
}
|
|
31
30
|
|
|
32
|
-
interface CookieLib {
|
|
33
31
|
/**
|
|
34
32
|
* Gets the value of a cookie on the client as a number.
|
|
35
33
|
* @realm shared and menu
|
|
36
34
|
* @source https://wiki.facepunch.com/gmod/cookie.GetNumber
|
|
37
35
|
*/
|
|
38
36
|
GetNumber(name: string, _default?: any): number;
|
|
39
|
-
}
|
|
40
37
|
|
|
41
|
-
interface CookieLib {
|
|
42
38
|
/**
|
|
43
39
|
* Gets the value of a cookie on the client as a string.
|
|
44
40
|
* @realm shared and menu
|
|
45
41
|
* @source https://wiki.facepunch.com/gmod/cookie.GetString
|
|
46
42
|
*/
|
|
47
43
|
GetString(name: string, _default?: any): string;
|
|
48
|
-
}
|
|
49
44
|
|
|
50
|
-
interface CookieLib {
|
|
51
45
|
/**
|
|
52
46
|
* Creates / updates a cookie in the [Database](https://wiki.facepunch.com/gmod/cookie).
|
|
53
47
|
*
|
|
@@ -57,4 +51,3 @@ interface CookieLib {
|
|
|
57
51
|
*/
|
|
58
52
|
Set(key: string, value: string): void;
|
|
59
53
|
}
|
|
60
|
-
|
package/types/coroutine.d.tlua
CHANGED
|
@@ -11,9 +11,7 @@ interface CoroutineLib {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/coroutine.create
|
|
12
12
|
*/
|
|
13
13
|
create(func: function): thread;
|
|
14
|
-
}
|
|
15
14
|
|
|
16
|
-
interface CoroutineLib {
|
|
17
15
|
/**
|
|
18
16
|
* Returns whether the running coroutine can yield.
|
|
19
17
|
* 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 +22,28 @@ interface CoroutineLib {
|
|
|
24
22
|
* @source https://wiki.facepunch.com/gmod/coroutine.isyieldable
|
|
25
23
|
*/
|
|
26
24
|
isyieldable(): boolean;
|
|
27
|
-
}
|
|
28
25
|
|
|
29
|
-
interface CoroutineLib {
|
|
30
26
|
/**
|
|
31
27
|
* 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
28
|
* @realm shared and menu
|
|
33
29
|
* @source https://wiki.facepunch.com/gmod/coroutine.resume
|
|
34
30
|
*/
|
|
35
31
|
resume(coroutine: thread, ...: any): (boolean, ...any);
|
|
36
|
-
}
|
|
37
32
|
|
|
38
|
-
interface CoroutineLib {
|
|
39
33
|
/**
|
|
40
34
|
* Returns the active coroutine or nil if we are not within a coroutine.
|
|
41
35
|
* @realm shared and menu
|
|
42
36
|
* @source https://wiki.facepunch.com/gmod/coroutine.running
|
|
43
37
|
*/
|
|
44
38
|
running(): thread;
|
|
45
|
-
}
|
|
46
39
|
|
|
47
|
-
interface CoroutineLib {
|
|
48
40
|
/**
|
|
49
41
|
* Returns the status of the coroutine passed to it, the possible statuses are "suspended", "running", and "dead".
|
|
50
42
|
* @realm shared and menu
|
|
51
43
|
* @source https://wiki.facepunch.com/gmod/coroutine.status
|
|
52
44
|
*/
|
|
53
45
|
status(coroutine: thread): string;
|
|
54
|
-
}
|
|
55
46
|
|
|
56
|
-
interface CoroutineLib {
|
|
57
47
|
/**
|
|
58
48
|
* Repeatedly yields the coroutine for the given duration before continuing.
|
|
59
49
|
*
|
|
@@ -65,9 +55,7 @@ interface CoroutineLib {
|
|
|
65
55
|
* @source https://wiki.facepunch.com/gmod/coroutine.wait
|
|
66
56
|
*/
|
|
67
57
|
wait(duration: number): void;
|
|
68
|
-
}
|
|
69
58
|
|
|
70
|
-
interface CoroutineLib {
|
|
71
59
|
/**
|
|
72
60
|
* 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
61
|
*
|
|
@@ -77,9 +65,7 @@ interface CoroutineLib {
|
|
|
77
65
|
* @source https://wiki.facepunch.com/gmod/coroutine.wrap
|
|
78
66
|
*/
|
|
79
67
|
wrap(coroutine: function): function;
|
|
80
|
-
}
|
|
81
68
|
|
|
82
|
-
interface CoroutineLib {
|
|
83
69
|
/**
|
|
84
70
|
* 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
71
|
* @realm shared and menu
|
|
@@ -87,4 +73,3 @@ interface CoroutineLib {
|
|
|
87
73
|
*/
|
|
88
74
|
yield(...: any): (...any);
|
|
89
75
|
}
|
|
90
|
-
|