@tlua/gmod 1.0.4 → 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.
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +4 -12
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/dcombobox.d.tlua
CHANGED
|
@@ -6,27 +6,19 @@
|
|
|
6
6
|
* @realm client and menu
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DComboBox
|
|
8
8
|
*/
|
|
9
|
-
interface DComboBox extends DButton {
|
|
10
|
-
|
|
11
|
-
interface DComboBox {
|
|
9
|
+
interface DComboBox extends DButton {
|
|
12
10
|
/**
|
|
13
11
|
* Adds a choice to the combo box.
|
|
14
12
|
* @realm client and menu
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/DComboBox:AddChoice
|
|
16
14
|
*/
|
|
17
15
|
AddChoice(self: DComboBox, value: string, data?: any, select?: boolean, icon?: string): number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface DComboBox {
|
|
21
16
|
/**
|
|
22
17
|
* Adds a spacer below the currently last item in the drop down. Recommended to use with [DComboBox:SetSortItems](https://wiki.facepunch.com/gmod/DComboBox:SetSortItems) set to `false`.
|
|
23
18
|
* @realm client and menu
|
|
24
19
|
* @source https://wiki.facepunch.com/gmod/DComboBox:AddSpacer
|
|
25
20
|
*/
|
|
26
21
|
AddSpacer(self: DComboBox): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface DComboBox {
|
|
30
22
|
/**
|
|
31
23
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
32
24
|
* Ran every frame to update the value of this panel to the value of the associated convar. See [Panel:SetConvar](https://wiki.facepunch.com/gmod/Panel:SetConvar).
|
|
@@ -34,81 +26,54 @@ interface DComboBox {
|
|
|
34
26
|
* @source https://wiki.facepunch.com/gmod/DComboBox:CheckConVarChanges
|
|
35
27
|
*/
|
|
36
28
|
CheckConVarChanges(self: DComboBox): void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface DComboBox {
|
|
40
29
|
/**
|
|
41
30
|
* Selects a combo box option by its index and changes the text displayed at the top of the combo box.
|
|
42
31
|
* @realm client and menu
|
|
43
32
|
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOption
|
|
44
33
|
*/
|
|
45
34
|
ChooseOption(self: DComboBox, value: string, index: number): void;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface DComboBox {
|
|
49
35
|
/**
|
|
50
36
|
* Selects an option within a combo box based on its table index.
|
|
51
37
|
* @realm client and menu
|
|
52
38
|
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOptionID
|
|
53
39
|
*/
|
|
54
40
|
ChooseOptionID(self: DComboBox, index: number): void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface DComboBox {
|
|
58
41
|
/**
|
|
59
42
|
* Closes the combo box menu. Called when the combo box is clicked while open.
|
|
60
43
|
* @realm client and menu
|
|
61
44
|
* @source https://wiki.facepunch.com/gmod/DComboBox:CloseMenu
|
|
62
45
|
*/
|
|
63
46
|
CloseMenu(self: DComboBox): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface DComboBox {
|
|
67
47
|
/**
|
|
68
48
|
* Returns an option's data based on the given index.
|
|
69
49
|
* @realm client and menu
|
|
70
50
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionData
|
|
71
51
|
*/
|
|
72
52
|
GetOptionData(self: DComboBox, index: number): any;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface DComboBox {
|
|
76
53
|
/**
|
|
77
54
|
* Returns an option's text based on the given index.
|
|
78
55
|
* @realm client and menu
|
|
79
56
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionText
|
|
80
57
|
*/
|
|
81
58
|
GetOptionText(self: DComboBox, index: number): string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface DComboBox {
|
|
85
59
|
/**
|
|
86
60
|
* Returns an option's text based on the given data.
|
|
87
61
|
* @realm client and menu
|
|
88
62
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionTextByData
|
|
89
63
|
*/
|
|
90
64
|
GetOptionTextByData(self: DComboBox, data: string): string;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface DComboBox {
|
|
94
65
|
/**
|
|
95
66
|
* Returns the currently selected option's text and data
|
|
96
67
|
* @realm client and menu
|
|
97
68
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelected
|
|
98
69
|
*/
|
|
99
70
|
GetSelected(self: DComboBox): (string, any);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface DComboBox {
|
|
103
71
|
/**
|
|
104
72
|
* Returns the index (ID) of the currently selected option.
|
|
105
73
|
* @realm client and menu
|
|
106
74
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelectedID
|
|
107
75
|
*/
|
|
108
76
|
GetSelectedID(self: DComboBox): number;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
interface DComboBox {
|
|
112
77
|
/**
|
|
113
78
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns an whether the items in the dropdown will be alphabetically sorted or not.
|
|
114
79
|
*
|
|
@@ -118,36 +83,24 @@ interface DComboBox {
|
|
|
118
83
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSortItems
|
|
119
84
|
*/
|
|
120
85
|
GetSortItems(self: DComboBox): boolean;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface DComboBox {
|
|
124
86
|
/**
|
|
125
87
|
* Returns whether or not the combo box's menu is opened.
|
|
126
88
|
* @realm client and menu
|
|
127
89
|
* @source https://wiki.facepunch.com/gmod/DComboBox:IsMenuOpen
|
|
128
90
|
*/
|
|
129
91
|
IsMenuOpen(self: DComboBox): boolean;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface DComboBox {
|
|
133
92
|
/**
|
|
134
93
|
* Opens the combo box drop down menu. Called when the combo box is clicked.
|
|
135
94
|
* @realm client and menu
|
|
136
95
|
* @source https://wiki.facepunch.com/gmod/DComboBox:OpenMenu
|
|
137
96
|
*/
|
|
138
97
|
OpenMenu(self: DComboBox): void;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface DComboBox {
|
|
142
98
|
/**
|
|
143
99
|
* Removes a choice added with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice)
|
|
144
100
|
* @realm client and menu
|
|
145
101
|
* @source https://wiki.facepunch.com/gmod/DComboBox:RemoveChoice
|
|
146
102
|
*/
|
|
147
103
|
RemoveChoice(self: DComboBox, index: number): (string, any);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface DComboBox {
|
|
151
104
|
/**
|
|
152
105
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether or not the items should be sorted alphabetically in the dropdown menu of the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox). If set to false, items will appear in the order they were added by [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) calls.
|
|
153
106
|
*
|
|
@@ -159,3 +112,19 @@ interface DComboBox {
|
|
|
159
112
|
SetSortItems(self: DComboBox, sort: boolean): void;
|
|
160
113
|
}
|
|
161
114
|
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
package/types/ddragbase.d.tlua
CHANGED
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
* @realm client and menu
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/DDragBase
|
|
11
11
|
*/
|
|
12
|
-
interface DDragBase extends DPanel {
|
|
13
|
-
|
|
14
|
-
interface DDragBase {
|
|
12
|
+
interface DDragBase extends DPanel {
|
|
15
13
|
/**
|
|
16
14
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
17
15
|
*
|
|
@@ -22,9 +20,6 @@ interface DDragBase {
|
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Copy
|
|
23
21
|
*/
|
|
24
22
|
DropAction_Copy(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface DDragBase {
|
|
28
23
|
/**
|
|
29
24
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
30
25
|
*
|
|
@@ -35,9 +30,6 @@ interface DDragBase {
|
|
|
35
30
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal
|
|
36
31
|
*/
|
|
37
32
|
DropAction_Normal(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface DDragBase {
|
|
41
33
|
/**
|
|
42
34
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
43
35
|
*
|
|
@@ -48,36 +40,24 @@ interface DDragBase {
|
|
|
48
40
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Simple
|
|
49
41
|
*/
|
|
50
42
|
DropAction_Simple(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface DDragBase {
|
|
54
43
|
/**
|
|
55
44
|
* Returns the drag'n'drop group this panel belongs to. See [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
56
45
|
* @realm client and menu
|
|
57
46
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetDnD
|
|
58
47
|
*/
|
|
59
48
|
GetDnD(self: DDragBase): string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface DDragBase {
|
|
63
49
|
/**
|
|
64
50
|
* Returns whether this panel is read only or not for drag'n'drop purposes. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
65
51
|
* @realm client and menu
|
|
66
52
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetReadOnly
|
|
67
53
|
*/
|
|
68
54
|
GetReadOnly(self: DDragBase): boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface DDragBase {
|
|
72
55
|
/**
|
|
73
56
|
* Whether this panel uses live drag'n'drop previews. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
74
57
|
* @realm client and menu
|
|
75
58
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetUseLiveDrag
|
|
76
59
|
*/
|
|
77
60
|
GetUseLiveDrag(self: DDragBase): boolean;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface DDragBase {
|
|
81
61
|
/**
|
|
82
62
|
* Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls [Panel:Receiver](https://wiki.facepunch.com/gmod/Panel:Receiver).
|
|
83
63
|
*
|
|
@@ -87,9 +67,6 @@ interface DDragBase {
|
|
|
87
67
|
* @source https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable
|
|
88
68
|
*/
|
|
89
69
|
MakeDroppable(self: DDragBase, name: string, allowCopy: boolean): void;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface DDragBase {
|
|
93
70
|
/**
|
|
94
71
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
95
72
|
* Used internally by [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable).
|
|
@@ -101,9 +78,6 @@ interface DDragBase {
|
|
|
101
78
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDnD
|
|
102
79
|
*/
|
|
103
80
|
SetDnD(self: DDragBase, name: string): void;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface DDragBase {
|
|
107
81
|
/**
|
|
108
82
|
* Determines where you can drop stuff.
|
|
109
83
|
* "4" for left
|
|
@@ -116,27 +90,18 @@ interface DDragBase {
|
|
|
116
90
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDropPos
|
|
117
91
|
*/
|
|
118
92
|
SetDropPos(self: DDragBase, pos?: string): void;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface DDragBase {
|
|
122
93
|
/**
|
|
123
94
|
* Sets whether this panel is read only or not for drag'n'drop purposes. If set to `true`, you can only copy from this panel, and cannot modify its contents. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
124
95
|
* @realm client and menu
|
|
125
96
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetReadOnly
|
|
126
97
|
*/
|
|
127
98
|
SetReadOnly(self: DDragBase, name: boolean): void;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
interface DDragBase {
|
|
131
99
|
/**
|
|
132
100
|
* Whether to use live drag'n'drop previews. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
133
101
|
* @realm client and menu
|
|
134
102
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetUseLiveDrag
|
|
135
103
|
*/
|
|
136
104
|
SetUseLiveDrag(self: DDragBase, newState: boolean): void;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
interface DDragBase {
|
|
140
105
|
/**
|
|
141
106
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
142
107
|
*
|
|
@@ -149,3 +114,15 @@ interface DDragBase {
|
|
|
149
114
|
UpdateDropTarget(self: DDragBase, drop: number, pnl: Panel): void;
|
|
150
115
|
}
|
|
151
116
|
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
package/types/ddrawer.d.tlua
CHANGED
|
@@ -5,63 +5,43 @@
|
|
|
5
5
|
* @realm client and menu
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DDrawer
|
|
7
7
|
*/
|
|
8
|
-
interface DDrawer extends Panel {
|
|
9
|
-
|
|
10
|
-
interface DDrawer {
|
|
8
|
+
interface DDrawer extends Panel {
|
|
11
9
|
/**
|
|
12
10
|
* Closes the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
|
|
13
11
|
* @realm client and menu
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/DDrawer:Close
|
|
15
13
|
*/
|
|
16
14
|
Close(self: DDrawer): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface DDrawer {
|
|
20
15
|
/**
|
|
21
16
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the Open Size of DDrawer.
|
|
22
17
|
* @realm client and menu
|
|
23
18
|
* @source https://wiki.facepunch.com/gmod/DDrawer:GetOpenSize
|
|
24
19
|
*/
|
|
25
20
|
GetOpenSize(self: DDrawer): number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface DDrawer {
|
|
29
21
|
/**
|
|
30
22
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the Open Time of DDrawer.
|
|
31
23
|
* @realm client and menu
|
|
32
24
|
* @source https://wiki.facepunch.com/gmod/DDrawer:GetOpenTime
|
|
33
25
|
*/
|
|
34
26
|
GetOpenTime(self: DDrawer): number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface DDrawer {
|
|
38
27
|
/**
|
|
39
28
|
* Opens the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
|
|
40
29
|
* @realm client and menu
|
|
41
30
|
* @source https://wiki.facepunch.com/gmod/DDrawer:Open
|
|
42
31
|
*/
|
|
43
32
|
Open(self: DDrawer): void;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface DDrawer {
|
|
47
33
|
/**
|
|
48
34
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the height of DDrawer
|
|
49
35
|
* @realm client and menu
|
|
50
36
|
* @source https://wiki.facepunch.com/gmod/DDrawer:SetOpenSize
|
|
51
37
|
*/
|
|
52
38
|
SetOpenSize(self: DDrawer, Value: number): void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface DDrawer {
|
|
56
39
|
/**
|
|
57
40
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the time (in seconds) for DDrawer to open.
|
|
58
41
|
* @realm client and menu
|
|
59
42
|
* @source https://wiki.facepunch.com/gmod/DDrawer:SetOpenTime
|
|
60
43
|
*/
|
|
61
44
|
SetOpenTime(self: DDrawer, value: number): void;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface DDrawer {
|
|
65
45
|
/**
|
|
66
46
|
* Toggles the [DDrawer](https://wiki.facepunch.com/gmod/DDrawer).
|
|
67
47
|
* @realm client and menu
|
|
@@ -70,3 +50,10 @@ interface DDrawer {
|
|
|
70
50
|
Toggle(self: DDrawer): void;
|
|
71
51
|
}
|
|
72
52
|
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
package/types/debug.d.tlua
CHANGED
|
@@ -11,9 +11,6 @@ interface DebugLib {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/debug.Trace
|
|
12
12
|
*/
|
|
13
13
|
Trace(): void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface DebugLib {
|
|
17
14
|
/**
|
|
18
15
|
* **NOTE**: This only works on the source dedicated server.
|
|
19
16
|
*
|
|
@@ -27,53 +24,18 @@ interface DebugLib {
|
|
|
27
24
|
* @source https://wiki.facepunch.com/gmod/debug.debug
|
|
28
25
|
*/
|
|
29
26
|
debug(): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface DebugLib {
|
|
33
27
|
/**
|
|
34
28
|
* Returns the environment of the passed object. This can be set with [debug.setfenv](https://wiki.facepunch.com/gmod/debug.setfenv).
|
|
35
29
|
* @realm shared and menu
|
|
36
30
|
* @source https://wiki.facepunch.com/gmod/debug.getfenv
|
|
37
31
|
*/
|
|
38
32
|
getfenv(object: table): table;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface DebugLib {
|
|
42
33
|
/**
|
|
43
34
|
* Returns the current hook settings of the passed thread. The thread argument can be omitted. This is completely different to gamemode hooks. More information on hooks can be found at http://www.lua.org/pil/23.2.html. This function will simply return the function, mask, and count of the last called [debug.sethook](https://wiki.facepunch.com/gmod/debug.sethook).
|
|
44
35
|
* @realm shared and menu
|
|
45
36
|
* @source https://wiki.facepunch.com/gmod/debug.gethook
|
|
46
37
|
*/
|
|
47
38
|
gethook(thread?: thread): (function, string, number);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** Information returned by `debug.getinfo` about a function. */
|
|
51
|
-
interface DebugInfo {
|
|
52
|
-
name: string;
|
|
53
|
-
namewhat: string;
|
|
54
|
-
source: string;
|
|
55
|
-
short_src: string;
|
|
56
|
-
linedefined: number;
|
|
57
|
-
lastlinedefined: number;
|
|
58
|
-
what: string;
|
|
59
|
-
currentline: number;
|
|
60
|
-
istailcall: boolean;
|
|
61
|
-
nups: number;
|
|
62
|
-
nparams: number;
|
|
63
|
-
isvararg: boolean;
|
|
64
|
-
func: function;
|
|
65
|
-
ftransfer: number;
|
|
66
|
-
ntransfer: number;
|
|
67
|
-
activelines: table;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Selector for which fields `debug.getinfo` populates. Combines any of
|
|
72
|
-
* `"n"`, `"S"`, `"l"`, `"t"`, `"u"`, `"f"`, `"r"`, `"L"`; degrades to `string`.
|
|
73
|
-
*/
|
|
74
|
-
type DebugInfoWhat = string;
|
|
75
|
-
|
|
76
|
-
interface DebugLib {
|
|
77
39
|
/**
|
|
78
40
|
* Returns debug information about a function.
|
|
79
41
|
*
|
|
@@ -91,10 +53,6 @@ interface DebugLib {
|
|
|
91
53
|
getinfo(thread: thread, f: function, what?: DebugInfoWhat): DebugInfo;
|
|
92
54
|
/** @source https://wiki.facepunch.com/gmod/debug.getinfo */
|
|
93
55
|
getinfo(thread: thread, f: 0, what?: DebugInfoWhat): DebugInfo;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
interface DebugLib {
|
|
98
56
|
/**
|
|
99
57
|
* Gets the name and value of a local variable indexed from the level.
|
|
100
58
|
* **WARNING**: When a function has a tailcall return, you cannot access the locals of this function.
|
|
@@ -104,9 +62,6 @@ interface DebugLib {
|
|
|
104
62
|
* @source https://wiki.facepunch.com/gmod/debug.getlocal
|
|
105
63
|
*/
|
|
106
64
|
getlocal(thread?: thread, level?: number, index?: number): (string, any);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
interface DebugLib {
|
|
110
65
|
/**
|
|
111
66
|
* Returns the metatable of the specified value. Can return any value.
|
|
112
67
|
* @realm shared
|
|
@@ -114,10 +69,6 @@ interface DebugLib {
|
|
|
114
69
|
* @source https://wiki.facepunch.com/gmod/debug.getmetatable
|
|
115
70
|
*/
|
|
116
71
|
getmetatable<T extends table>(object: T): T;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
interface DebugLib {
|
|
121
72
|
/**
|
|
122
73
|
* Returns the internal Lua registry table.
|
|
123
74
|
*
|
|
@@ -131,18 +82,12 @@ interface DebugLib {
|
|
|
131
82
|
* @deprecated This function now returns a table that serves as a proxy to Global.FindMetaTable and Global.RegisterMetaTable. If you previously used the registry to get/add metatables, you should use those functions directly instead.
|
|
132
83
|
*/
|
|
133
84
|
getregistry(): table;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
interface DebugLib {
|
|
137
85
|
/**
|
|
138
86
|
* Used for getting variable values in an index from the passed function. This does nothing for C functions.
|
|
139
87
|
* @realm shared and menu
|
|
140
88
|
* @source https://wiki.facepunch.com/gmod/debug.getupvalue
|
|
141
89
|
*/
|
|
142
90
|
getupvalue(func: function, index: number): (string, any);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
interface DebugLib {
|
|
146
91
|
/**
|
|
147
92
|
* Sets the environment of the passed object.
|
|
148
93
|
*
|
|
@@ -154,9 +99,6 @@ interface DebugLib {
|
|
|
154
99
|
* @source https://wiki.facepunch.com/gmod/debug.setfenv
|
|
155
100
|
*/
|
|
156
101
|
setfenv(object: any, env: table): table;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface DebugLib {
|
|
160
102
|
/**
|
|
161
103
|
* Sets the given function as a Lua hook. This is completely different to gamemode hooks. The thread argument can be completely omitted and calling this function with no arguments will remove the current hook. This is used by default for infinite loop detection. More information on hooks can be found at http://www.lua.org/pil/23.2.html and https://www.gammon.com.au/scripts/doc.php?lua=debug.sethook
|
|
162
104
|
*
|
|
@@ -166,9 +108,6 @@ interface DebugLib {
|
|
|
166
108
|
* @source https://wiki.facepunch.com/gmod/debug.sethook
|
|
167
109
|
*/
|
|
168
110
|
sethook(thread: thread, hook: function, mask: string, count: number): void;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface DebugLib {
|
|
172
111
|
/**
|
|
173
112
|
* This function was removed due to security concerns.
|
|
174
113
|
*
|
|
@@ -178,18 +117,12 @@ interface DebugLib {
|
|
|
178
117
|
* @source https://wiki.facepunch.com/gmod/debug.setlocal
|
|
179
118
|
*/
|
|
180
119
|
setlocal(thread?: thread, level?: number, index?: number, value?: any): string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
interface DebugLib {
|
|
184
120
|
/**
|
|
185
121
|
* Sets the object's metatable. Unlike [Global.setmetatable](https://wiki.facepunch.com/gmod/Global.setmetatable), this function works regardless of whether the first object passed is a valid table or not; this function even works on primitive datatypes such as numbers, functions, and even nil.
|
|
186
122
|
* @realm shared and menu
|
|
187
123
|
* @source https://wiki.facepunch.com/gmod/debug.setmetatable
|
|
188
124
|
*/
|
|
189
125
|
setmetatable(object: any, metatable: table): boolean;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
interface DebugLib {
|
|
193
126
|
/**
|
|
194
127
|
* This function was removed due to security concerns.
|
|
195
128
|
*
|
|
@@ -199,18 +132,12 @@ interface DebugLib {
|
|
|
199
132
|
* @source https://wiki.facepunch.com/gmod/debug.setupvalue
|
|
200
133
|
*/
|
|
201
134
|
setupvalue(func: function, index: number, val?: any): string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
interface DebugLib {
|
|
205
135
|
/**
|
|
206
136
|
* Returns a full execution stack trace.
|
|
207
137
|
* @realm shared and menu
|
|
208
138
|
* @source https://wiki.facepunch.com/gmod/debug.traceback
|
|
209
139
|
*/
|
|
210
140
|
traceback(thread?: thread, message?: string, level?: number): string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
interface DebugLib {
|
|
214
141
|
/**
|
|
215
142
|
* This function was removed due to security concerns.
|
|
216
143
|
*
|
|
@@ -220,9 +147,6 @@ interface DebugLib {
|
|
|
220
147
|
* @source https://wiki.facepunch.com/gmod/debug.upvalueid
|
|
221
148
|
*/
|
|
222
149
|
upvalueid(func: function, index: number): number;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
interface DebugLib {
|
|
226
150
|
/**
|
|
227
151
|
* This function was removed due to security concerns.
|
|
228
152
|
*
|
|
@@ -234,3 +158,47 @@ interface DebugLib {
|
|
|
234
158
|
upvaluejoin(func1: function, upvalueIndex1: number, func2: function, upvalueIndex2: number): void;
|
|
235
159
|
}
|
|
236
160
|
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/** Information returned by `debug.getinfo` about a function. */
|
|
165
|
+
interface DebugInfo {
|
|
166
|
+
name: string;
|
|
167
|
+
namewhat: string;
|
|
168
|
+
source: string;
|
|
169
|
+
short_src: string;
|
|
170
|
+
linedefined: number;
|
|
171
|
+
lastlinedefined: number;
|
|
172
|
+
what: string;
|
|
173
|
+
currentline: number;
|
|
174
|
+
istailcall: boolean;
|
|
175
|
+
nups: number;
|
|
176
|
+
nparams: number;
|
|
177
|
+
isvararg: boolean;
|
|
178
|
+
func: function;
|
|
179
|
+
ftransfer: number;
|
|
180
|
+
ntransfer: number;
|
|
181
|
+
activelines: table;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Selector for which fields `debug.getinfo` populates. Combines any of
|
|
186
|
+
* `"n"`, `"S"`, `"l"`, `"t"`, `"u"`, `"f"`, `"r"`, `"L"`; degrades to `string`.
|
|
187
|
+
*/
|
|
188
|
+
type DebugInfoWhat = string;
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|