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