@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
|
@@ -3,27 +3,18 @@
|
|
|
3
3
|
interface DCheckBoxLabel extends Panel {
|
|
4
4
|
Button: DCheckBox;
|
|
5
5
|
Label: DLabel;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface DCheckBoxLabel {
|
|
9
6
|
/**
|
|
10
7
|
* Gets the checked state of the checkbox. This calls the checkbox's [DCheckBox:GetChecked](https://wiki.facepunch.com/gmod/DCheckBox:GetChecked) function.
|
|
11
8
|
* @realm client and menu
|
|
12
9
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetChecked
|
|
13
10
|
*/
|
|
14
11
|
GetChecked(self: DCheckBoxLabel): boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface DCheckBoxLabel {
|
|
18
12
|
/**
|
|
19
13
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the indentation of the element on the X axis. See also [DCheckBoxLabel:SetIndent](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent)
|
|
20
14
|
* @realm client and menu
|
|
21
15
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetIndent
|
|
22
16
|
*/
|
|
23
17
|
GetIndent(self: DCheckBoxLabel): number;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface DCheckBoxLabel {
|
|
27
18
|
/**
|
|
28
19
|
* Sets the color of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel)'s text to the bright text color defined in the skin.
|
|
29
20
|
*
|
|
@@ -31,18 +22,12 @@ interface DCheckBoxLabel {
|
|
|
31
22
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetBright
|
|
32
23
|
*/
|
|
33
24
|
SetBright(self: DCheckBoxLabel, bright: boolean): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface DCheckBoxLabel {
|
|
37
25
|
/**
|
|
38
26
|
* Sets the checked state of the checkbox. Does not call [DCheckBoxLabel:OnChange](https://wiki.facepunch.com/gmod/DCheckBoxLabel:OnChange) or [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged), unlike [DCheckBoxLabel:SetValue](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetValue).
|
|
39
27
|
* @realm client and menu
|
|
40
28
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetChecked
|
|
41
29
|
*/
|
|
42
30
|
SetChecked(self: DCheckBoxLabel, checked: boolean): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface DCheckBoxLabel {
|
|
46
31
|
/**
|
|
47
32
|
* Sets the text of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel) to be dark colored in accordance with the currently active Derma skin.
|
|
48
33
|
*
|
|
@@ -50,36 +35,24 @@ interface DCheckBoxLabel {
|
|
|
50
35
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetDark
|
|
51
36
|
*/
|
|
52
37
|
SetDark(self: DCheckBoxLabel, darkify: boolean): void;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface DCheckBoxLabel {
|
|
56
38
|
/**
|
|
57
39
|
* Sets the font of the text part of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
58
40
|
* @realm client and menu
|
|
59
41
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetFont
|
|
60
42
|
*/
|
|
61
43
|
SetFont(self: DCheckBoxLabel, font: string): void;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface DCheckBoxLabel {
|
|
65
44
|
/**
|
|
66
45
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the indentation of the element on the X axis.
|
|
67
46
|
* @realm client and menu
|
|
68
47
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent
|
|
69
48
|
*/
|
|
70
49
|
SetIndent(self: DCheckBoxLabel, ident: number): void;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface DCheckBoxLabel {
|
|
74
50
|
/**
|
|
75
51
|
* Sets the text color for the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
76
52
|
* @realm client and menu
|
|
77
53
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetTextColor
|
|
78
54
|
*/
|
|
79
55
|
SetTextColor(self: DCheckBoxLabel, color: Color): void;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface DCheckBoxLabel {
|
|
83
56
|
/**
|
|
84
57
|
* Toggles the checked state of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
85
58
|
* @realm client and menu
|
|
@@ -88,3 +61,12 @@ interface DCheckBoxLabel {
|
|
|
88
61
|
Toggle(self: DCheckBoxLabel): void;
|
|
89
62
|
}
|
|
90
63
|
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
* @realm client and menu
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory
|
|
10
10
|
*/
|
|
11
|
-
interface DCollapsibleCategory extends Panel {
|
|
12
|
-
|
|
13
|
-
interface DCollapsibleCategory {
|
|
11
|
+
interface DCollapsibleCategory extends Panel {
|
|
14
12
|
/**
|
|
15
13
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
16
14
|
*
|
|
@@ -21,27 +19,18 @@ interface DCollapsibleCategory {
|
|
|
21
19
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:AnimSlide
|
|
22
20
|
*/
|
|
23
21
|
AnimSlide(self: DCollapsibleCategory, anim: table, delta: number, data: table): void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface DCollapsibleCategory {
|
|
27
22
|
/**
|
|
28
23
|
* Forces the category to open or collapse
|
|
29
24
|
* @realm client and menu
|
|
30
25
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:DoExpansion
|
|
31
26
|
*/
|
|
32
27
|
DoExpansion(self: DCollapsibleCategory, expand: boolean): void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface DCollapsibleCategory {
|
|
36
28
|
/**
|
|
37
29
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the expand/collapse animation time set by [DCollapsibleCategory:SetAnimTime](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetAnimTime).
|
|
38
30
|
* @realm client and menu
|
|
39
31
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetAnimTime
|
|
40
32
|
*/
|
|
41
33
|
GetAnimTime(self: DCollapsibleCategory): number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface DCollapsibleCategory {
|
|
45
34
|
/**
|
|
46
35
|
* Returns whether or not the panel background is being drawn. Alias of [DCollapsibleCategory:GetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground).
|
|
47
36
|
* @realm client and menu
|
|
@@ -49,18 +38,12 @@ interface DCollapsibleCategory {
|
|
|
49
38
|
* @deprecated You should use DCollapsibleCategory:GetPaintBackground instead.
|
|
50
39
|
*/
|
|
51
40
|
GetDrawBackground(self: DCollapsibleCategory): boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface DCollapsibleCategory {
|
|
55
41
|
/**
|
|
56
42
|
* Returns whether the DCollapsibleCategory is expanded or not.
|
|
57
43
|
* @realm client and menu
|
|
58
44
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetExpanded
|
|
59
45
|
*/
|
|
60
46
|
GetExpanded(self: DCollapsibleCategory): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface DCollapsibleCategory {
|
|
64
47
|
/**
|
|
65
48
|
* Returns the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
66
49
|
*
|
|
@@ -70,9 +53,6 @@ interface DCollapsibleCategory {
|
|
|
70
53
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetHeaderHeight
|
|
71
54
|
*/
|
|
72
55
|
GetHeaderHeight(self: DCollapsibleCategory): number;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface DCollapsibleCategory {
|
|
76
56
|
/**
|
|
77
57
|
* If set, the [DCategoryList](https://wiki.facepunch.com/gmod/DCategoryList) that created this panel.
|
|
78
58
|
*
|
|
@@ -82,9 +62,6 @@ interface DCollapsibleCategory {
|
|
|
82
62
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetList
|
|
83
63
|
*/
|
|
84
64
|
GetList(self: DCollapsibleCategory): Panel;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface DCollapsibleCategory {
|
|
88
65
|
/**
|
|
89
66
|
* Doesn't actually do anything.
|
|
90
67
|
*
|
|
@@ -94,18 +71,12 @@ interface DCollapsibleCategory {
|
|
|
94
71
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPadding
|
|
95
72
|
*/
|
|
96
73
|
GetPadding(self: DCollapsibleCategory): number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface DCollapsibleCategory {
|
|
100
74
|
/**
|
|
101
75
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns whether or not the background should be painted.
|
|
102
76
|
* @realm client and menu
|
|
103
77
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground
|
|
104
78
|
*/
|
|
105
79
|
GetPaintBackground(self: DCollapsibleCategory): boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
interface DCollapsibleCategory {
|
|
109
80
|
/**
|
|
110
81
|
* Returns whatever was set by [DCollapsibleCategory:SetStartHeight](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight)
|
|
111
82
|
*
|
|
@@ -113,27 +84,18 @@ interface DCollapsibleCategory {
|
|
|
113
84
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetStartHeight
|
|
114
85
|
*/
|
|
115
86
|
GetStartHeight(self: DCollapsibleCategory): number;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
interface DCollapsibleCategory {
|
|
119
87
|
/**
|
|
120
88
|
* Sets the time in seconds it takes to expand the DCollapsibleCategory
|
|
121
89
|
* @realm client and menu
|
|
122
90
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetAnimTime
|
|
123
91
|
*/
|
|
124
92
|
SetAnimTime(self: DCollapsibleCategory, time: number): void;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface DCollapsibleCategory {
|
|
128
93
|
/**
|
|
129
94
|
* Sets the contents of the DCollapsibleCategory.
|
|
130
95
|
* @realm client and menu
|
|
131
96
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetContents
|
|
132
97
|
*/
|
|
133
98
|
SetContents(self: DCollapsibleCategory, pnl: Panel): void;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
interface DCollapsibleCategory {
|
|
137
99
|
/**
|
|
138
100
|
* Sets whether or not to draw the panel background. Alias of [DCollapsibleCategory:SetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground).
|
|
139
101
|
* @realm client and menu
|
|
@@ -141,9 +103,6 @@ interface DCollapsibleCategory {
|
|
|
141
103
|
* @deprecated You should use DCollapsibleCategory:SetPaintBackground instead.
|
|
142
104
|
*/
|
|
143
105
|
SetDrawBackground(self: DCollapsibleCategory, draw: boolean): void;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface DCollapsibleCategory {
|
|
147
106
|
/**
|
|
148
107
|
* Sets whether the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory) is expanded or not upon opening the container.
|
|
149
108
|
*
|
|
@@ -153,9 +112,6 @@ interface DCollapsibleCategory {
|
|
|
153
112
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetExpanded
|
|
154
113
|
*/
|
|
155
114
|
SetExpanded(self: DCollapsibleCategory, expanded?: boolean): void;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface DCollapsibleCategory {
|
|
159
115
|
/**
|
|
160
116
|
* Sets the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
161
117
|
*
|
|
@@ -165,18 +121,12 @@ interface DCollapsibleCategory {
|
|
|
165
121
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetHeaderHeight
|
|
166
122
|
*/
|
|
167
123
|
SetHeaderHeight(self: DCollapsibleCategory, height: number): void;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
interface DCollapsibleCategory {
|
|
171
124
|
/**
|
|
172
125
|
* Sets the name of the DCollapsibleCategory.
|
|
173
126
|
* @realm client and menu
|
|
174
127
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetLabel
|
|
175
128
|
*/
|
|
176
129
|
SetLabel(self: DCollapsibleCategory, label: string): void;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface DCollapsibleCategory {
|
|
180
130
|
/**
|
|
181
131
|
* Used internally by [DCategoryList](https://wiki.facepunch.com/gmod/DCategoryList) when it creates a [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory) during [DCategoryList:Add](https://wiki.facepunch.com/gmod/DCategoryList:Add).
|
|
182
132
|
*
|
|
@@ -185,36 +135,24 @@ interface DCollapsibleCategory {
|
|
|
185
135
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetList
|
|
186
136
|
*/
|
|
187
137
|
SetList(self: DCollapsibleCategory, pnl: Panel): void;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface DCollapsibleCategory {
|
|
191
138
|
/**
|
|
192
139
|
* Doesn't actually do anything.
|
|
193
140
|
* @realm client and menu
|
|
194
141
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPadding
|
|
195
142
|
*/
|
|
196
143
|
SetPadding(self: DCollapsibleCategory, padding: number): void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface DCollapsibleCategory {
|
|
200
144
|
/**
|
|
201
145
|
* Sets whether or not the background should be painted.
|
|
202
146
|
* @realm client and menu
|
|
203
147
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground
|
|
204
148
|
*/
|
|
205
149
|
SetPaintBackground(self: DCollapsibleCategory, paint: boolean): void;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
interface DCollapsibleCategory {
|
|
209
150
|
/**
|
|
210
151
|
* Does nothing.
|
|
211
152
|
* @realm client and menu
|
|
212
153
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight
|
|
213
154
|
*/
|
|
214
155
|
SetStartHeight(self: DCollapsibleCategory, height: number): void;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
interface DCollapsibleCategory {
|
|
218
156
|
/**
|
|
219
157
|
* Toggles the expanded state of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
220
158
|
*
|
|
@@ -223,9 +161,6 @@ interface DCollapsibleCategory {
|
|
|
223
161
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:Toggle
|
|
224
162
|
*/
|
|
225
163
|
Toggle(self: DCollapsibleCategory): void;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
interface DCollapsibleCategory {
|
|
229
164
|
/**
|
|
230
165
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
231
166
|
*
|
|
@@ -238,3 +173,25 @@ interface DCollapsibleCategory {
|
|
|
238
173
|
UpdateAltLines(self: DCollapsibleCategory): void;
|
|
239
174
|
}
|
|
240
175
|
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
* @realm client and menu
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DColorButton
|
|
8
8
|
*/
|
|
9
|
-
interface DColorButton extends DLabel {
|
|
10
|
-
|
|
11
|
-
interface DColorButton {
|
|
9
|
+
interface DColorButton extends DLabel {
|
|
12
10
|
/**
|
|
13
11
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns value set by [DColorButton:SetDrawBorder](https://wiki.facepunch.com/gmod/DColorButton:SetDrawBorder). See that page for more info.
|
|
14
12
|
*
|
|
@@ -16,9 +14,6 @@ interface DColorButton {
|
|
|
16
14
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetDrawBorder
|
|
17
15
|
*/
|
|
18
16
|
GetDrawBorder(self: DColorButton): boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface DColorButton {
|
|
22
17
|
/**
|
|
23
18
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the unique ID set by [DColorButton:SetID](https://wiki.facepunch.com/gmod/DColorButton:SetID).
|
|
24
19
|
*
|
|
@@ -28,9 +23,6 @@ interface DColorButton {
|
|
|
28
23
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetID
|
|
29
24
|
*/
|
|
30
25
|
GetID(self: DColorButton): number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface DColorButton {
|
|
34
26
|
/**
|
|
35
27
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that is an alias of [Panel:IsSelected](https://wiki.facepunch.com/gmod/Panel:IsSelected).
|
|
36
28
|
*
|
|
@@ -38,18 +30,12 @@ interface DColorButton {
|
|
|
38
30
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetSelected
|
|
39
31
|
*/
|
|
40
32
|
GetSelected(self: DColorButton): boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface DColorButton {
|
|
44
33
|
/**
|
|
45
34
|
* Returns whether the [DColorButton](https://wiki.facepunch.com/gmod/DColorButton) is currently being pressed (the user is holding it down).
|
|
46
35
|
* @realm client and menu
|
|
47
36
|
* @source https://wiki.facepunch.com/gmod/DColorButton:IsDown
|
|
48
37
|
*/
|
|
49
38
|
IsDown(self: DColorButton): boolean;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface DColorButton {
|
|
53
39
|
/**
|
|
54
40
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does absolutely nothing at all. Default value is automatically set to true.
|
|
55
41
|
*
|
|
@@ -57,9 +43,6 @@ interface DColorButton {
|
|
|
57
43
|
* @source https://wiki.facepunch.com/gmod/DColorButton:SetDrawBorder
|
|
58
44
|
*/
|
|
59
45
|
SetDrawBorder(self: DColorButton, draw: boolean): void;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface DColorButton {
|
|
63
46
|
/**
|
|
64
47
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that is used internally by [DColorPalette](https://wiki.facepunch.com/gmod/DColorPalette) to detect which button is which.
|
|
65
48
|
*
|
|
@@ -71,3 +54,9 @@ interface DColorButton {
|
|
|
71
54
|
SetID(self: DColorButton, id: number): void;
|
|
72
55
|
}
|
|
73
56
|
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
package/types/dcolorcombo.d.tlua
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* @realm client
|
|
8
8
|
* @source https://wiki.facepunch.com/gmod/DColorCombo
|
|
9
9
|
*/
|
|
10
|
-
interface DColorCombo extends DPropertySheet {
|
|
11
|
-
|
|
12
|
-
interface DColorCombo {
|
|
10
|
+
interface DColorCombo extends DPropertySheet {
|
|
13
11
|
/**
|
|
14
12
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
15
13
|
*
|
|
@@ -20,18 +18,12 @@ interface DColorCombo {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:BuildControls
|
|
21
19
|
*/
|
|
22
20
|
BuildControls(self: DColorCombo): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface DColorCombo {
|
|
26
21
|
/**
|
|
27
22
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color of the [DColorCombo](https://wiki.facepunch.com/gmod/DColorCombo).
|
|
28
23
|
* @realm client
|
|
29
24
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:GetColor
|
|
30
25
|
*/
|
|
31
26
|
GetColor(self: DColorCombo): Color;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface DColorCombo {
|
|
35
27
|
/**
|
|
36
28
|
* Returns true if the panel is currently being edited
|
|
37
29
|
*
|
|
@@ -41,9 +33,6 @@ interface DColorCombo {
|
|
|
41
33
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:IsEditing
|
|
42
34
|
*/
|
|
43
35
|
IsEditing(self: DColorCombo): boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface DColorCombo {
|
|
47
36
|
/**
|
|
48
37
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color of this panel. See also [DColorCombo:GetColor](https://wiki.facepunch.com/gmod/DColorCombo:GetColor)
|
|
49
38
|
* @realm client
|
|
@@ -52,3 +41,7 @@ interface DColorCombo {
|
|
|
52
41
|
SetColor(self: DColorCombo, clr: Color): void;
|
|
53
42
|
}
|
|
54
43
|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
package/types/dcolorcube.d.tlua
CHANGED
|
@@ -6,27 +6,19 @@
|
|
|
6
6
|
* @realm client and menu
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DColorCube
|
|
8
8
|
*/
|
|
9
|
-
interface DColorCube extends DSlider {
|
|
10
|
-
|
|
11
|
-
interface DColorCube {
|
|
9
|
+
interface DColorCube extends DSlider {
|
|
12
10
|
/**
|
|
13
11
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the base Color set by [DColorCube:SetBaseRGB](https://wiki.facepunch.com/gmod/DColorCube:SetBaseRGB).
|
|
14
12
|
* @realm client and menu
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetBaseRGB
|
|
16
14
|
*/
|
|
17
15
|
GetBaseRGB(self: DColorCube): Color;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface DColorCube {
|
|
21
16
|
/**
|
|
22
17
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color cube's default color. By default, it is set to white. (255 255 255 RGB)
|
|
23
18
|
* @realm client and menu
|
|
24
19
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor
|
|
25
20
|
*/
|
|
26
21
|
GetDefaultColor(self: DColorCube): Color;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface DColorCube {
|
|
30
22
|
/**
|
|
31
23
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the value set by [DColorCube:SetHue](https://wiki.facepunch.com/gmod/DColorCube:SetHue).
|
|
32
24
|
*
|
|
@@ -34,18 +26,12 @@ interface DColorCube {
|
|
|
34
26
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetHue
|
|
35
27
|
*/
|
|
36
28
|
GetHue(self: DColorCube): number;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface DColorCube {
|
|
40
29
|
/**
|
|
41
30
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color cube's current set color.
|
|
42
31
|
* @realm client and menu
|
|
43
32
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetRGB
|
|
44
33
|
*/
|
|
45
34
|
GetRGB(self: DColorCube): Color;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface DColorCube {
|
|
49
35
|
/**
|
|
50
36
|
* Sets the color to whatever [DColorCube:GetDefaultColor](https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor) returns
|
|
51
37
|
*
|
|
@@ -53,9 +39,6 @@ interface DColorCube {
|
|
|
53
39
|
* @source https://wiki.facepunch.com/gmod/DColorCube:ResetToDefaultValue
|
|
54
40
|
*/
|
|
55
41
|
ResetToDefaultValue(self: DColorCube): void;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface DColorCube {
|
|
59
42
|
/**
|
|
60
43
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the base color and the color used to draw the color cube panel itself.
|
|
61
44
|
*
|
|
@@ -66,27 +49,18 @@ interface DColorCube {
|
|
|
66
49
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetBaseRGB
|
|
67
50
|
*/
|
|
68
51
|
SetBaseRGB(self: DColorCube, color: Color): void;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface DColorCube {
|
|
72
52
|
/**
|
|
73
53
|
* Sets the base color of the color cube and updates the slider position.
|
|
74
54
|
* @realm client and menu
|
|
75
55
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetColor
|
|
76
56
|
*/
|
|
77
57
|
SetColor(self: DColorCube, color: Color): void;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface DColorCube {
|
|
81
58
|
/**
|
|
82
59
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the color cube's default color. This value will be used to reset to on middle mouse click of the color cube's draggable slider.
|
|
83
60
|
* @realm client and menu
|
|
84
61
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetDefaultColor
|
|
85
62
|
*/
|
|
86
63
|
SetDefaultColor(self: DColorCube, arg0: Color): void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface DColorCube {
|
|
90
64
|
/**
|
|
91
65
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that appears to do nothing and unused.
|
|
92
66
|
*
|
|
@@ -94,9 +68,6 @@ interface DColorCube {
|
|
|
94
68
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetHue
|
|
95
69
|
*/
|
|
96
70
|
SetHue(self: DColorCube, hue: number): void;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface DColorCube {
|
|
100
71
|
/**
|
|
101
72
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
102
73
|
*
|
|
@@ -107,9 +78,6 @@ interface DColorCube {
|
|
|
107
78
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetRGB
|
|
108
79
|
*/
|
|
109
80
|
SetRGB(self: DColorCube, clr: Color): void;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface DColorCube {
|
|
113
81
|
/**
|
|
114
82
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
115
83
|
*
|
|
@@ -120,9 +88,6 @@ interface DColorCube {
|
|
|
120
88
|
* @source https://wiki.facepunch.com/gmod/DColorCube:TranslateValues
|
|
121
89
|
*/
|
|
122
90
|
TranslateValues(self: DColorCube, x?: number, y?: number): (number, number);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
interface DColorCube {
|
|
126
91
|
/**
|
|
127
92
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
128
93
|
*
|
|
@@ -135,3 +100,15 @@ interface DColorCube {
|
|
|
135
100
|
UpdateColor(self: DColorCube, x?: number, y?: number): void;
|
|
136
101
|
}
|
|
137
102
|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|