@tlua/gmod 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/dbutton.d.tlua
CHANGED
|
@@ -16,12 +16,14 @@ interface DButton extends DLabel {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DButton:GetDrawBorder
|
|
17
17
|
*/
|
|
18
18
|
GetDrawBorder(self: DButton): boolean;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Returns true if the DButton is currently depressed (a user is clicking on it).
|
|
21
22
|
* @realm client and menu
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/DButton:IsDown
|
|
23
24
|
*/
|
|
24
25
|
IsDown(self: DButton): boolean;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Sets a console command to be called when the button is clicked.
|
|
27
29
|
*
|
|
@@ -31,6 +33,7 @@ interface DButton extends DLabel {
|
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/DButton:SetConsoleCommand
|
|
32
34
|
*/
|
|
33
35
|
SetConsoleCommand(self: DButton, command: string, args?: string): void;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Does absolutely nothing at all. Default value is automatically set to true.
|
|
36
39
|
*
|
|
@@ -38,12 +41,14 @@ interface DButton extends DLabel {
|
|
|
38
41
|
* @source https://wiki.facepunch.com/gmod/DButton:SetDrawBorder
|
|
39
42
|
*/
|
|
40
43
|
SetDrawBorder(self: DButton, draw: boolean): void;
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Sets an image to be displayed as the button's background. Alias of [DButton:SetImage](https://wiki.facepunch.com/gmod/DButton:SetImage)
|
|
43
47
|
* @realm client and menu
|
|
44
48
|
* @source https://wiki.facepunch.com/gmod/DButton:SetIcon
|
|
45
49
|
*/
|
|
46
50
|
SetIcon(self: DButton, img?: string): void;
|
|
51
|
+
|
|
47
52
|
/**
|
|
48
53
|
* Sets an image to be displayed as the button's background.
|
|
49
54
|
*
|
|
@@ -55,6 +60,7 @@ interface DButton extends DLabel {
|
|
|
55
60
|
* @source https://wiki.facepunch.com/gmod/DButton:SetImage
|
|
56
61
|
*/
|
|
57
62
|
SetImage(self: DButton, img?: string): void;
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* Sets an image to be displayed as the button's background.
|
|
60
66
|
*
|
|
@@ -65,11 +71,3 @@ interface DButton extends DLabel {
|
|
|
65
71
|
*/
|
|
66
72
|
SetMaterial(self: DButton, img?: IMaterial): void;
|
|
67
73
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
package/types/dcheckbox.d.tlua
CHANGED
|
@@ -13,18 +13,21 @@ interface DCheckBox extends DButton {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:DoClick
|
|
14
14
|
*/
|
|
15
15
|
DoClick(self: DCheckBox): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the checked state of the checkbox.
|
|
18
19
|
* @realm client and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:GetChecked
|
|
20
21
|
*/
|
|
21
22
|
GetChecked(self: DCheckBox): boolean;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns whether the state of the checkbox is being edited. This means whether the user is currently clicking (mouse-down) on the checkbox, and applies to both the left and right mouse buttons.
|
|
24
26
|
* @realm client and menu
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:IsEditing
|
|
26
28
|
*/
|
|
27
29
|
IsEditing(self: DCheckBox): boolean;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the checked state of the checkbox. Does not call the checkbox's [DCheckBox:OnChange](https://wiki.facepunch.com/gmod/DCheckBox:OnChange) and [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged) methods, unlike [DCheckBox:SetValue](https://wiki.facepunch.com/gmod/DCheckBox:SetValue).
|
|
30
33
|
* @realm client and menu
|
|
@@ -32,8 +35,3 @@ interface DCheckBox extends DButton {
|
|
|
32
35
|
*/
|
|
33
36
|
SetChecked(self: DCheckBox, checked: boolean): void;
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
interface DCheckBoxLabel extends Panel {
|
|
4
4
|
Button: DCheckBox;
|
|
5
5
|
Label: DLabel;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* Gets the checked state of the checkbox. This calls the checkbox's [DCheckBox:GetChecked](https://wiki.facepunch.com/gmod/DCheckBox:GetChecked) function.
|
|
8
9
|
* @realm client and menu
|
|
9
10
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetChecked
|
|
10
11
|
*/
|
|
11
12
|
GetChecked(self: DCheckBoxLabel): boolean;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* 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)
|
|
14
16
|
* @realm client and menu
|
|
15
17
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetIndent
|
|
16
18
|
*/
|
|
17
19
|
GetIndent(self: DCheckBoxLabel): number;
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Sets the color of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel)'s text to the bright text color defined in the skin.
|
|
20
23
|
*
|
|
@@ -22,12 +25,14 @@ interface DCheckBoxLabel extends Panel {
|
|
|
22
25
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetBright
|
|
23
26
|
*/
|
|
24
27
|
SetBright(self: DCheckBoxLabel, bright: boolean): void;
|
|
28
|
+
|
|
25
29
|
/**
|
|
26
30
|
* 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).
|
|
27
31
|
* @realm client and menu
|
|
28
32
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetChecked
|
|
29
33
|
*/
|
|
30
34
|
SetChecked(self: DCheckBoxLabel, checked: boolean): void;
|
|
35
|
+
|
|
31
36
|
/**
|
|
32
37
|
* Sets the text of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel) to be dark colored in accordance with the currently active Derma skin.
|
|
33
38
|
*
|
|
@@ -35,24 +40,28 @@ interface DCheckBoxLabel extends Panel {
|
|
|
35
40
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetDark
|
|
36
41
|
*/
|
|
37
42
|
SetDark(self: DCheckBoxLabel, darkify: boolean): void;
|
|
43
|
+
|
|
38
44
|
/**
|
|
39
45
|
* Sets the font of the text part of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
40
46
|
* @realm client and menu
|
|
41
47
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetFont
|
|
42
48
|
*/
|
|
43
49
|
SetFont(self: DCheckBoxLabel, font: string): void;
|
|
50
|
+
|
|
44
51
|
/**
|
|
45
52
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the indentation of the element on the X axis.
|
|
46
53
|
* @realm client and menu
|
|
47
54
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent
|
|
48
55
|
*/
|
|
49
56
|
SetIndent(self: DCheckBoxLabel, ident: number): void;
|
|
57
|
+
|
|
50
58
|
/**
|
|
51
59
|
* Sets the text color for the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
52
60
|
* @realm client and menu
|
|
53
61
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetTextColor
|
|
54
62
|
*/
|
|
55
63
|
SetTextColor(self: DCheckBoxLabel, color: Color): void;
|
|
64
|
+
|
|
56
65
|
/**
|
|
57
66
|
* Toggles the checked state of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
58
67
|
* @realm client and menu
|
|
@@ -60,13 +69,3 @@ interface DCheckBoxLabel extends Panel {
|
|
|
60
69
|
*/
|
|
61
70
|
Toggle(self: DCheckBoxLabel): void;
|
|
62
71
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
@@ -19,18 +19,21 @@ interface DCollapsibleCategory extends Panel {
|
|
|
19
19
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:AnimSlide
|
|
20
20
|
*/
|
|
21
21
|
AnimSlide(self: DCollapsibleCategory, anim: table, delta: number, data: table): void;
|
|
22
|
+
|
|
22
23
|
/**
|
|
23
24
|
* Forces the category to open or collapse
|
|
24
25
|
* @realm client and menu
|
|
25
26
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:DoExpansion
|
|
26
27
|
*/
|
|
27
28
|
DoExpansion(self: DCollapsibleCategory, expand: boolean): void;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* 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).
|
|
30
32
|
* @realm client and menu
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetAnimTime
|
|
32
34
|
*/
|
|
33
35
|
GetAnimTime(self: DCollapsibleCategory): number;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Returns whether or not the panel background is being drawn. Alias of [DCollapsibleCategory:GetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground).
|
|
36
39
|
* @realm client and menu
|
|
@@ -38,12 +41,14 @@ interface DCollapsibleCategory extends Panel {
|
|
|
38
41
|
* @deprecated You should use DCollapsibleCategory:GetPaintBackground instead.
|
|
39
42
|
*/
|
|
40
43
|
GetDrawBackground(self: DCollapsibleCategory): boolean;
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Returns whether the DCollapsibleCategory is expanded or not.
|
|
43
47
|
* @realm client and menu
|
|
44
48
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetExpanded
|
|
45
49
|
*/
|
|
46
50
|
GetExpanded(self: DCollapsibleCategory): boolean;
|
|
51
|
+
|
|
47
52
|
/**
|
|
48
53
|
* Returns the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
49
54
|
*
|
|
@@ -53,6 +58,7 @@ interface DCollapsibleCategory extends Panel {
|
|
|
53
58
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetHeaderHeight
|
|
54
59
|
*/
|
|
55
60
|
GetHeaderHeight(self: DCollapsibleCategory): number;
|
|
61
|
+
|
|
56
62
|
/**
|
|
57
63
|
* If set, the [DCategoryList](https://wiki.facepunch.com/gmod/DCategoryList) that created this panel.
|
|
58
64
|
*
|
|
@@ -62,6 +68,7 @@ interface DCollapsibleCategory extends Panel {
|
|
|
62
68
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetList
|
|
63
69
|
*/
|
|
64
70
|
GetList(self: DCollapsibleCategory): Panel;
|
|
71
|
+
|
|
65
72
|
/**
|
|
66
73
|
* Doesn't actually do anything.
|
|
67
74
|
*
|
|
@@ -71,12 +78,14 @@ interface DCollapsibleCategory extends Panel {
|
|
|
71
78
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPadding
|
|
72
79
|
*/
|
|
73
80
|
GetPadding(self: DCollapsibleCategory): number;
|
|
81
|
+
|
|
74
82
|
/**
|
|
75
83
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns whether or not the background should be painted.
|
|
76
84
|
* @realm client and menu
|
|
77
85
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetPaintBackground
|
|
78
86
|
*/
|
|
79
87
|
GetPaintBackground(self: DCollapsibleCategory): boolean;
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* Returns whatever was set by [DCollapsibleCategory:SetStartHeight](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight)
|
|
82
91
|
*
|
|
@@ -84,18 +93,21 @@ interface DCollapsibleCategory extends Panel {
|
|
|
84
93
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:GetStartHeight
|
|
85
94
|
*/
|
|
86
95
|
GetStartHeight(self: DCollapsibleCategory): number;
|
|
96
|
+
|
|
87
97
|
/**
|
|
88
98
|
* Sets the time in seconds it takes to expand the DCollapsibleCategory
|
|
89
99
|
* @realm client and menu
|
|
90
100
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetAnimTime
|
|
91
101
|
*/
|
|
92
102
|
SetAnimTime(self: DCollapsibleCategory, time: number): void;
|
|
103
|
+
|
|
93
104
|
/**
|
|
94
105
|
* Sets the contents of the DCollapsibleCategory.
|
|
95
106
|
* @realm client and menu
|
|
96
107
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetContents
|
|
97
108
|
*/
|
|
98
109
|
SetContents(self: DCollapsibleCategory, pnl: Panel): void;
|
|
110
|
+
|
|
99
111
|
/**
|
|
100
112
|
* Sets whether or not to draw the panel background. Alias of [DCollapsibleCategory:SetPaintBackground](https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground).
|
|
101
113
|
* @realm client and menu
|
|
@@ -103,6 +115,7 @@ interface DCollapsibleCategory extends Panel {
|
|
|
103
115
|
* @deprecated You should use DCollapsibleCategory:SetPaintBackground instead.
|
|
104
116
|
*/
|
|
105
117
|
SetDrawBackground(self: DCollapsibleCategory, draw: boolean): void;
|
|
118
|
+
|
|
106
119
|
/**
|
|
107
120
|
* Sets whether the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory) is expanded or not upon opening the container.
|
|
108
121
|
*
|
|
@@ -112,6 +125,7 @@ interface DCollapsibleCategory extends Panel {
|
|
|
112
125
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetExpanded
|
|
113
126
|
*/
|
|
114
127
|
SetExpanded(self: DCollapsibleCategory, expanded?: boolean): void;
|
|
128
|
+
|
|
115
129
|
/**
|
|
116
130
|
* Sets the header height of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
117
131
|
*
|
|
@@ -121,12 +135,14 @@ interface DCollapsibleCategory extends Panel {
|
|
|
121
135
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetHeaderHeight
|
|
122
136
|
*/
|
|
123
137
|
SetHeaderHeight(self: DCollapsibleCategory, height: number): void;
|
|
138
|
+
|
|
124
139
|
/**
|
|
125
140
|
* Sets the name of the DCollapsibleCategory.
|
|
126
141
|
* @realm client and menu
|
|
127
142
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetLabel
|
|
128
143
|
*/
|
|
129
144
|
SetLabel(self: DCollapsibleCategory, label: string): void;
|
|
145
|
+
|
|
130
146
|
/**
|
|
131
147
|
* 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).
|
|
132
148
|
*
|
|
@@ -135,24 +151,28 @@ interface DCollapsibleCategory extends Panel {
|
|
|
135
151
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetList
|
|
136
152
|
*/
|
|
137
153
|
SetList(self: DCollapsibleCategory, pnl: Panel): void;
|
|
154
|
+
|
|
138
155
|
/**
|
|
139
156
|
* Doesn't actually do anything.
|
|
140
157
|
* @realm client and menu
|
|
141
158
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPadding
|
|
142
159
|
*/
|
|
143
160
|
SetPadding(self: DCollapsibleCategory, padding: number): void;
|
|
161
|
+
|
|
144
162
|
/**
|
|
145
163
|
* Sets whether or not the background should be painted.
|
|
146
164
|
* @realm client and menu
|
|
147
165
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetPaintBackground
|
|
148
166
|
*/
|
|
149
167
|
SetPaintBackground(self: DCollapsibleCategory, paint: boolean): void;
|
|
168
|
+
|
|
150
169
|
/**
|
|
151
170
|
* Does nothing.
|
|
152
171
|
* @realm client and menu
|
|
153
172
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:SetStartHeight
|
|
154
173
|
*/
|
|
155
174
|
SetStartHeight(self: DCollapsibleCategory, height: number): void;
|
|
175
|
+
|
|
156
176
|
/**
|
|
157
177
|
* Toggles the expanded state of the [DCollapsibleCategory](https://wiki.facepunch.com/gmod/DCollapsibleCategory).
|
|
158
178
|
*
|
|
@@ -161,6 +181,7 @@ interface DCollapsibleCategory extends Panel {
|
|
|
161
181
|
* @source https://wiki.facepunch.com/gmod/DCollapsibleCategory:Toggle
|
|
162
182
|
*/
|
|
163
183
|
Toggle(self: DCollapsibleCategory): void;
|
|
184
|
+
|
|
164
185
|
/**
|
|
165
186
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
166
187
|
*
|
|
@@ -172,26 +193,3 @@ interface DCollapsibleCategory extends Panel {
|
|
|
172
193
|
*/
|
|
173
194
|
UpdateAltLines(self: DCollapsibleCategory): void;
|
|
174
195
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
@@ -14,6 +14,7 @@ interface DColorButton extends DLabel {
|
|
|
14
14
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetDrawBorder
|
|
15
15
|
*/
|
|
16
16
|
GetDrawBorder(self: DColorButton): boolean;
|
|
17
|
+
|
|
17
18
|
/**
|
|
18
19
|
* 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).
|
|
19
20
|
*
|
|
@@ -23,6 +24,7 @@ interface DColorButton extends DLabel {
|
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetID
|
|
24
25
|
*/
|
|
25
26
|
GetID(self: DColorButton): number;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that is an alias of [Panel:IsSelected](https://wiki.facepunch.com/gmod/Panel:IsSelected).
|
|
28
30
|
*
|
|
@@ -30,12 +32,14 @@ interface DColorButton extends DLabel {
|
|
|
30
32
|
* @source https://wiki.facepunch.com/gmod/DColorButton:GetSelected
|
|
31
33
|
*/
|
|
32
34
|
GetSelected(self: DColorButton): boolean;
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Returns whether the [DColorButton](https://wiki.facepunch.com/gmod/DColorButton) is currently being pressed (the user is holding it down).
|
|
35
38
|
* @realm client and menu
|
|
36
39
|
* @source https://wiki.facepunch.com/gmod/DColorButton:IsDown
|
|
37
40
|
*/
|
|
38
41
|
IsDown(self: DColorButton): boolean;
|
|
42
|
+
|
|
39
43
|
/**
|
|
40
44
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that does absolutely nothing at all. Default value is automatically set to true.
|
|
41
45
|
*
|
|
@@ -43,6 +47,7 @@ interface DColorButton extends DLabel {
|
|
|
43
47
|
* @source https://wiki.facepunch.com/gmod/DColorButton:SetDrawBorder
|
|
44
48
|
*/
|
|
45
49
|
SetDrawBorder(self: DColorButton, draw: boolean): void;
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* 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.
|
|
48
53
|
*
|
|
@@ -53,10 +58,3 @@ interface DColorButton extends DLabel {
|
|
|
53
58
|
*/
|
|
54
59
|
SetID(self: DColorButton, id: number): void;
|
|
55
60
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
package/types/dcolorcombo.d.tlua
CHANGED
|
@@ -18,12 +18,14 @@ interface DColorCombo extends DPropertySheet {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:BuildControls
|
|
19
19
|
*/
|
|
20
20
|
BuildControls(self: DColorCombo): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color of the [DColorCombo](https://wiki.facepunch.com/gmod/DColorCombo).
|
|
23
24
|
* @realm client
|
|
24
25
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:GetColor
|
|
25
26
|
*/
|
|
26
27
|
GetColor(self: DColorCombo): Color;
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* Returns true if the panel is currently being edited
|
|
29
31
|
*
|
|
@@ -33,6 +35,7 @@ interface DColorCombo extends DPropertySheet {
|
|
|
33
35
|
* @source https://wiki.facepunch.com/gmod/DColorCombo:IsEditing
|
|
34
36
|
*/
|
|
35
37
|
IsEditing(self: DColorCombo): boolean;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* 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)
|
|
38
41
|
* @realm client
|
|
@@ -40,8 +43,3 @@ interface DColorCombo extends DPropertySheet {
|
|
|
40
43
|
*/
|
|
41
44
|
SetColor(self: DColorCombo, clr: Color): void;
|
|
42
45
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
package/types/dcolorcube.d.tlua
CHANGED
|
@@ -13,12 +13,14 @@ interface DColorCube extends DSlider {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetBaseRGB
|
|
14
14
|
*/
|
|
15
15
|
GetBaseRGB(self: DColorCube): Color;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* 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)
|
|
18
19
|
* @realm client and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor
|
|
20
21
|
*/
|
|
21
22
|
GetDefaultColor(self: DColorCube): Color;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* 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).
|
|
24
26
|
*
|
|
@@ -26,12 +28,14 @@ interface DColorCube extends DSlider {
|
|
|
26
28
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetHue
|
|
27
29
|
*/
|
|
28
30
|
GetHue(self: DColorCube): number;
|
|
31
|
+
|
|
29
32
|
/**
|
|
30
33
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the color cube's current set color.
|
|
31
34
|
* @realm client and menu
|
|
32
35
|
* @source https://wiki.facepunch.com/gmod/DColorCube:GetRGB
|
|
33
36
|
*/
|
|
34
37
|
GetRGB(self: DColorCube): Color;
|
|
38
|
+
|
|
35
39
|
/**
|
|
36
40
|
* Sets the color to whatever [DColorCube:GetDefaultColor](https://wiki.facepunch.com/gmod/DColorCube:GetDefaultColor) returns
|
|
37
41
|
*
|
|
@@ -39,6 +43,7 @@ interface DColorCube extends DSlider {
|
|
|
39
43
|
* @source https://wiki.facepunch.com/gmod/DColorCube:ResetToDefaultValue
|
|
40
44
|
*/
|
|
41
45
|
ResetToDefaultValue(self: DColorCube): void;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* 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.
|
|
44
49
|
*
|
|
@@ -49,18 +54,21 @@ interface DColorCube extends DSlider {
|
|
|
49
54
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetBaseRGB
|
|
50
55
|
*/
|
|
51
56
|
SetBaseRGB(self: DColorCube, color: Color): void;
|
|
57
|
+
|
|
52
58
|
/**
|
|
53
59
|
* Sets the base color of the color cube and updates the slider position.
|
|
54
60
|
* @realm client and menu
|
|
55
61
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetColor
|
|
56
62
|
*/
|
|
57
63
|
SetColor(self: DColorCube, color: Color): void;
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* 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.
|
|
60
67
|
* @realm client and menu
|
|
61
68
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetDefaultColor
|
|
62
69
|
*/
|
|
63
70
|
SetDefaultColor(self: DColorCube, arg0: Color): void;
|
|
71
|
+
|
|
64
72
|
/**
|
|
65
73
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that appears to do nothing and unused.
|
|
66
74
|
*
|
|
@@ -68,6 +76,7 @@ interface DColorCube extends DSlider {
|
|
|
68
76
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetHue
|
|
69
77
|
*/
|
|
70
78
|
SetHue(self: DColorCube, hue: number): void;
|
|
79
|
+
|
|
71
80
|
/**
|
|
72
81
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
73
82
|
*
|
|
@@ -78,6 +87,7 @@ interface DColorCube extends DSlider {
|
|
|
78
87
|
* @source https://wiki.facepunch.com/gmod/DColorCube:SetRGB
|
|
79
88
|
*/
|
|
80
89
|
SetRGB(self: DColorCube, clr: Color): void;
|
|
90
|
+
|
|
81
91
|
/**
|
|
82
92
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
83
93
|
*
|
|
@@ -88,6 +98,7 @@ interface DColorCube extends DSlider {
|
|
|
88
98
|
* @source https://wiki.facepunch.com/gmod/DColorCube:TranslateValues
|
|
89
99
|
*/
|
|
90
100
|
TranslateValues(self: DColorCube, x?: number, y?: number): (number, number);
|
|
101
|
+
|
|
91
102
|
/**
|
|
92
103
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
93
104
|
*
|
|
@@ -99,16 +110,3 @@ interface DColorCube extends DSlider {
|
|
|
99
110
|
*/
|
|
100
111
|
UpdateColor(self: DColorCube, x?: number, y?: number): void;
|
|
101
112
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|