@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/dcolormixer.d.tlua
CHANGED
|
@@ -14,6 +14,7 @@ interface DColorMixer extends DPanel {
|
|
|
14
14
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:ConVarThink
|
|
15
15
|
*/
|
|
16
16
|
ConVarThink(self: DColorMixer): void;
|
|
17
|
+
|
|
17
18
|
/**
|
|
18
19
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
19
20
|
*
|
|
@@ -21,18 +22,21 @@ interface DColorMixer extends DPanel {
|
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:DoConVarThink
|
|
22
23
|
*/
|
|
23
24
|
DoConVarThink(self: DColorMixer, cvar: string): void;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if alpha bar is shown, false if not.
|
|
26
28
|
* @realm client and menu
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetAlphaBar
|
|
28
30
|
*/
|
|
29
31
|
GetAlphaBar(self: DColorMixer): boolean;
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the current selected color.
|
|
32
35
|
* @realm client and menu
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetColor
|
|
34
37
|
*/
|
|
35
38
|
GetColor(self: DColorMixer): Color;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
|
|
38
42
|
*
|
|
@@ -45,6 +49,7 @@ interface DColorMixer extends DPanel {
|
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarA
|
|
46
50
|
*/
|
|
47
51
|
GetConVarA(self: DColorMixer): string;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
|
|
50
55
|
*
|
|
@@ -57,6 +62,7 @@ interface DColorMixer extends DPanel {
|
|
|
57
62
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarB
|
|
58
63
|
*/
|
|
59
64
|
GetConVarB(self: DColorMixer): string;
|
|
65
|
+
|
|
60
66
|
/**
|
|
61
67
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
|
|
62
68
|
*
|
|
@@ -69,6 +75,7 @@ interface DColorMixer extends DPanel {
|
|
|
69
75
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarG
|
|
70
76
|
*/
|
|
71
77
|
GetConVarG(self: DColorMixer): string;
|
|
78
|
+
|
|
72
79
|
/**
|
|
73
80
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
|
|
74
81
|
*
|
|
@@ -81,30 +88,35 @@ interface DColorMixer extends DPanel {
|
|
|
81
88
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetConVarR
|
|
82
89
|
*/
|
|
83
90
|
GetConVarR(self: DColorMixer): string;
|
|
91
|
+
|
|
84
92
|
/**
|
|
85
93
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if palette is shown, false if not.
|
|
86
94
|
* @realm client and menu
|
|
87
95
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetPalette
|
|
88
96
|
*/
|
|
89
97
|
GetPalette(self: DColorMixer): boolean;
|
|
98
|
+
|
|
90
99
|
/**
|
|
91
100
|
* Returns the color as a normalized [Vector](https://wiki.facepunch.com/gmod/Vector).
|
|
92
101
|
* @realm client and menu
|
|
93
102
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetVector
|
|
94
103
|
*/
|
|
95
104
|
GetVector(self: DColorMixer): Vector;
|
|
105
|
+
|
|
96
106
|
/**
|
|
97
107
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns true if the wangs are shown, false if not.
|
|
98
108
|
* @realm client and menu
|
|
99
109
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:GetWangs
|
|
100
110
|
*/
|
|
101
111
|
GetWangs(self: DColorMixer): boolean;
|
|
112
|
+
|
|
102
113
|
/**
|
|
103
114
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that show/hide the alpha bar in DColorMixer
|
|
104
115
|
* @realm client and menu
|
|
105
116
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetAlphaBar
|
|
106
117
|
*/
|
|
107
118
|
SetAlphaBar(self: DColorMixer, show: boolean): void;
|
|
119
|
+
|
|
108
120
|
/**
|
|
109
121
|
* Sets the base color of the [DColorCube](https://wiki.facepunch.com/gmod/DColorCube) part of the [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer).
|
|
110
122
|
*
|
|
@@ -114,12 +126,14 @@ interface DColorMixer extends DPanel {
|
|
|
114
126
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetBaseColor
|
|
115
127
|
*/
|
|
116
128
|
SetBaseColor(self: DColorMixer, clr: Color): void;
|
|
129
|
+
|
|
117
130
|
/**
|
|
118
131
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the color of the [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer). See also [DColorMixer:GetColor](https://wiki.facepunch.com/gmod/DColorMixer:GetColor)
|
|
119
132
|
* @realm client and menu
|
|
120
133
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetColor
|
|
121
134
|
*/
|
|
122
135
|
SetColor(self: DColorMixer, color: Color): void;
|
|
136
|
+
|
|
123
137
|
/**
|
|
124
138
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
|
|
125
139
|
*
|
|
@@ -132,6 +146,7 @@ interface DColorMixer extends DPanel {
|
|
|
132
146
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarA
|
|
133
147
|
*/
|
|
134
148
|
SetConVarA(self: DColorMixer, convar: string): void;
|
|
149
|
+
|
|
135
150
|
/**
|
|
136
151
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
|
|
137
152
|
*
|
|
@@ -144,6 +159,7 @@ interface DColorMixer extends DPanel {
|
|
|
144
159
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarB
|
|
145
160
|
*/
|
|
146
161
|
SetConVarB(self: DColorMixer, convar: string): void;
|
|
162
|
+
|
|
147
163
|
/**
|
|
148
164
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
|
|
149
165
|
*
|
|
@@ -156,6 +172,7 @@ interface DColorMixer extends DPanel {
|
|
|
156
172
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarG
|
|
157
173
|
*/
|
|
158
174
|
SetConVarG(self: DColorMixer, convar: string): void;
|
|
175
|
+
|
|
159
176
|
/**
|
|
160
177
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
|
|
161
178
|
*
|
|
@@ -168,30 +185,35 @@ interface DColorMixer extends DPanel {
|
|
|
168
185
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetConVarR
|
|
169
186
|
*/
|
|
170
187
|
SetConVarR(self: DColorMixer, convar: string): void;
|
|
188
|
+
|
|
171
189
|
/**
|
|
172
190
|
* Sets the label's text to show.
|
|
173
191
|
* @realm client and menu
|
|
174
192
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetLabel
|
|
175
193
|
*/
|
|
176
194
|
SetLabel(self: DColorMixer, text?: string): void;
|
|
195
|
+
|
|
177
196
|
/**
|
|
178
197
|
* Show or hide the palette panel
|
|
179
198
|
* @realm client and menu
|
|
180
199
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetPalette
|
|
181
200
|
*/
|
|
182
201
|
SetPalette(self: DColorMixer, enabled: boolean): void;
|
|
202
|
+
|
|
183
203
|
/**
|
|
184
204
|
* Sets the color of [DColorMixer](https://wiki.facepunch.com/gmod/DColorMixer) from a [Vector](https://wiki.facepunch.com/gmod/Vector). Alpha is not included.
|
|
185
205
|
* @realm client and menu
|
|
186
206
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetVector
|
|
187
207
|
*/
|
|
188
208
|
SetVector(self: DColorMixer, vec: Vector): void;
|
|
209
|
+
|
|
189
210
|
/**
|
|
190
211
|
* Show / Hide the colors indicators in DColorMixer
|
|
191
212
|
* @realm client and menu
|
|
192
213
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:SetWangs
|
|
193
214
|
*/
|
|
194
215
|
SetWangs(self: DColorMixer, show: boolean): void;
|
|
216
|
+
|
|
195
217
|
/**
|
|
196
218
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
197
219
|
*
|
|
@@ -202,6 +224,7 @@ interface DColorMixer extends DPanel {
|
|
|
202
224
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateColor
|
|
203
225
|
*/
|
|
204
226
|
UpdateColor(self: DColorMixer, clr: Color): void;
|
|
227
|
+
|
|
205
228
|
/**
|
|
206
229
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
207
230
|
*
|
|
@@ -209,6 +232,7 @@ interface DColorMixer extends DPanel {
|
|
|
209
232
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateConVar
|
|
210
233
|
*/
|
|
211
234
|
UpdateConVar(self: DColorMixer, cvar: string, part: string, clr: Color): void;
|
|
235
|
+
|
|
212
236
|
/**
|
|
213
237
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
214
238
|
*
|
|
@@ -216,6 +240,7 @@ interface DColorMixer extends DPanel {
|
|
|
216
240
|
* @source https://wiki.facepunch.com/gmod/DColorMixer:UpdateConVars
|
|
217
241
|
*/
|
|
218
242
|
UpdateConVars(self: DColorMixer, clr: Color): void;
|
|
243
|
+
|
|
219
244
|
/**
|
|
220
245
|
* sets the default color of the element to the currently selected color
|
|
221
246
|
* @realm client and menu
|
|
@@ -223,30 +248,3 @@ interface DColorMixer extends DPanel {
|
|
|
223
248
|
*/
|
|
224
249
|
UpdateDefaultColor(self: DColorMixer): void;
|
|
225
250
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
@@ -18,12 +18,14 @@ interface DColorPalette extends DIconLayout {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:DoClick
|
|
19
19
|
*/
|
|
20
20
|
DoClick(self: DColorPalette, clr: Color, btn: Panel): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the size of each palette button. Set by [DColorPalette:SetButtonSize](https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize).
|
|
23
24
|
* @realm client and menu
|
|
24
25
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetButtonSize
|
|
25
26
|
*/
|
|
26
27
|
GetButtonSize(self: DColorPalette): number;
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
|
|
29
31
|
*
|
|
@@ -36,6 +38,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
36
38
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA
|
|
37
39
|
*/
|
|
38
40
|
GetConVarA(self: DColorPalette): string;
|
|
41
|
+
|
|
39
42
|
/**
|
|
40
43
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
|
|
41
44
|
*
|
|
@@ -48,6 +51,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
48
51
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB
|
|
49
52
|
*/
|
|
50
53
|
GetConVarB(self: DColorPalette): string;
|
|
54
|
+
|
|
51
55
|
/**
|
|
52
56
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
|
|
53
57
|
*
|
|
@@ -60,6 +64,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
60
64
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG
|
|
61
65
|
*/
|
|
62
66
|
GetConVarG(self: DColorPalette): string;
|
|
67
|
+
|
|
63
68
|
/**
|
|
64
69
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
|
|
65
70
|
*
|
|
@@ -72,12 +77,14 @@ interface DColorPalette extends DIconLayout {
|
|
|
72
77
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR
|
|
73
78
|
*/
|
|
74
79
|
GetConVarR(self: DColorPalette): string;
|
|
80
|
+
|
|
75
81
|
/**
|
|
76
82
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the number of rows of the palette, provided 6 colors fill each row. This value is equal to the number of colors in the DColorPalette divided by 6.
|
|
77
83
|
* @realm client and menu
|
|
78
84
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetNumRows
|
|
79
85
|
*/
|
|
80
86
|
GetNumRows(self: DColorPalette): number;
|
|
87
|
+
|
|
81
88
|
/**
|
|
82
89
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
83
90
|
*
|
|
@@ -88,12 +95,14 @@ interface DColorPalette extends DIconLayout {
|
|
|
88
95
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:NetworkColorChange
|
|
89
96
|
*/
|
|
90
97
|
NetworkColorChange(self: DColorPalette): void;
|
|
98
|
+
|
|
91
99
|
/**
|
|
92
100
|
* Called when a palette button has been pressed. For Override
|
|
93
101
|
* @realm client and menu
|
|
94
102
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:OnRightClickButton
|
|
95
103
|
*/
|
|
96
104
|
OnRightClickButton(self: DColorPalette, pnl: Panel): void;
|
|
105
|
+
|
|
97
106
|
/**
|
|
98
107
|
* Resets this entire color palette to a default preset one, without saving.
|
|
99
108
|
*
|
|
@@ -103,6 +112,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
103
112
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:Reset
|
|
104
113
|
*/
|
|
105
114
|
Reset(self: DColorPalette): void;
|
|
115
|
+
|
|
106
116
|
/**
|
|
107
117
|
* Resets this entire color palette to a default preset one and saves the changes.
|
|
108
118
|
*
|
|
@@ -112,6 +122,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
112
122
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors
|
|
113
123
|
*/
|
|
114
124
|
ResetSavedColors(self: DColorPalette): void;
|
|
125
|
+
|
|
115
126
|
/**
|
|
116
127
|
* Saves the color of given button across sessions.
|
|
117
128
|
* The color is saved as a panel cookie, see [Panel:SetCookie](https://wiki.facepunch.com/gmod/Panel:SetCookie) and [Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName).
|
|
@@ -121,6 +132,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
121
132
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SaveColor
|
|
122
133
|
*/
|
|
123
134
|
SaveColor(self: DColorPalette, btn: Panel, clr: Color): void;
|
|
135
|
+
|
|
124
136
|
/**
|
|
125
137
|
* Sets the size of each palette button.
|
|
126
138
|
*
|
|
@@ -133,6 +145,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
133
145
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize
|
|
134
146
|
*/
|
|
135
147
|
SetButtonSize(self: DColorPalette, size: number): void;
|
|
148
|
+
|
|
136
149
|
/**
|
|
137
150
|
* Currently does nothing. Intended to "select" the color.
|
|
138
151
|
*
|
|
@@ -140,12 +153,14 @@ interface DColorPalette extends DIconLayout {
|
|
|
140
153
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetColor
|
|
141
154
|
*/
|
|
142
155
|
SetColor(self: DColorPalette, clr: Color): void;
|
|
156
|
+
|
|
143
157
|
/**
|
|
144
158
|
* Clears the palette and adds new buttons with given colors.
|
|
145
159
|
* @realm client and menu
|
|
146
160
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetColorButtons
|
|
147
161
|
*/
|
|
148
162
|
SetColorButtons(self: DColorPalette, tab: table): void;
|
|
163
|
+
|
|
149
164
|
/**
|
|
150
165
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the alpha channel of the color.
|
|
151
166
|
*
|
|
@@ -158,6 +173,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
158
173
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA
|
|
159
174
|
*/
|
|
160
175
|
SetConVarA(self: DColorPalette, convar: string): void;
|
|
176
|
+
|
|
161
177
|
/**
|
|
162
178
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the blue channel of the color.
|
|
163
179
|
*
|
|
@@ -170,6 +186,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
170
186
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB
|
|
171
187
|
*/
|
|
172
188
|
SetConVarB(self: DColorPalette, convar: string): void;
|
|
189
|
+
|
|
173
190
|
/**
|
|
174
191
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the green channel of the color.
|
|
175
192
|
*
|
|
@@ -182,6 +199,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
182
199
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG
|
|
183
200
|
*/
|
|
184
201
|
SetConVarG(self: DColorPalette, convar: string): void;
|
|
202
|
+
|
|
185
203
|
/**
|
|
186
204
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) name for the red channel of the color.
|
|
187
205
|
*
|
|
@@ -194,6 +212,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
194
212
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR
|
|
195
213
|
*/
|
|
196
214
|
SetConVarR(self: DColorPalette, convar: string): void;
|
|
215
|
+
|
|
197
216
|
/**
|
|
198
217
|
* Roughly sets the number of colors that can be picked by the user. If the DColorPalette is exactly 6 rows tall, this function will set the number of colors shown per row in the palette. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
199
218
|
* **NOTE**: [DColorPalette:Reset](https://wiki.facepunch.com/gmod/DColorPalette:Reset) or [DColorPalette:ResetSavedColors](https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors) must be called after this function to apply changes.
|
|
@@ -203,6 +222,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
203
222
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetNumRows
|
|
204
223
|
*/
|
|
205
224
|
SetNumRows(self: DColorPalette, rows: number): void;
|
|
225
|
+
|
|
206
226
|
/**
|
|
207
227
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
208
228
|
*
|
|
@@ -213,6 +233,7 @@ interface DColorPalette extends DIconLayout {
|
|
|
213
233
|
* @source https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVar
|
|
214
234
|
*/
|
|
215
235
|
UpdateConVar(self: DColorPalette, name: string, key: string, clr: Color): void;
|
|
236
|
+
|
|
216
237
|
/**
|
|
217
238
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
218
239
|
*
|
|
@@ -226,26 +247,3 @@ interface DColorPalette extends DIconLayout {
|
|
|
226
247
|
*/
|
|
227
248
|
UpdateConVars(self: DColorPalette, clr: Color): void;
|
|
228
249
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
@@ -12,12 +12,14 @@ interface DColumnSheet extends Panel {
|
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DColumnSheet:AddSheet
|
|
13
13
|
*/
|
|
14
14
|
AddSheet(self: DColumnSheet, name: string, pnl: Panel, icon?: string): table;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the active button of this [DColumnSheet](https://wiki.facepunch.com/gmod/DColumnSheet).
|
|
17
18
|
* @realm client and menu
|
|
18
19
|
* @source https://wiki.facepunch.com/gmod/DColumnSheet:GetActiveButton
|
|
19
20
|
*/
|
|
20
21
|
GetActiveButton(self: DColumnSheet): Panel;
|
|
22
|
+
|
|
21
23
|
/**
|
|
22
24
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
23
25
|
*
|
|
@@ -28,6 +30,7 @@ interface DColumnSheet extends Panel {
|
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/DColumnSheet:SetActiveButton
|
|
29
31
|
*/
|
|
30
32
|
SetActiveButton(self: DColumnSheet, active: Panel): void;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Makes the tabs/buttons show only the image and no text.
|
|
33
36
|
* @realm client and menu
|
|
@@ -35,8 +38,3 @@ interface DColumnSheet extends Panel {
|
|
|
35
38
|
*/
|
|
36
39
|
UseButtonOnlyStyle(self: DColumnSheet): void;
|
|
37
40
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
package/types/dcombobox.d.tlua
CHANGED
|
@@ -13,12 +13,14 @@ interface DComboBox extends DButton {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DComboBox:AddChoice
|
|
14
14
|
*/
|
|
15
15
|
AddChoice(self: DComboBox, value: string, data?: any, select?: boolean, icon?: string): number;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Adds a spacer below the currently last item in the drop down. Recommended to use with [DComboBox:SetSortItems](https://wiki.facepunch.com/gmod/DComboBox:SetSortItems) set to `false`.
|
|
18
19
|
* @realm client and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DComboBox:AddSpacer
|
|
20
21
|
*/
|
|
21
22
|
AddSpacer(self: DComboBox): void;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
24
26
|
* Ran every frame to update the value of this panel to the value of the associated convar. See [Panel:SetConvar](https://wiki.facepunch.com/gmod/Panel:SetConvar).
|
|
@@ -26,54 +28,63 @@ interface DComboBox extends DButton {
|
|
|
26
28
|
* @source https://wiki.facepunch.com/gmod/DComboBox:CheckConVarChanges
|
|
27
29
|
*/
|
|
28
30
|
CheckConVarChanges(self: DComboBox): void;
|
|
31
|
+
|
|
29
32
|
/**
|
|
30
33
|
* Selects a combo box option by its index and changes the text displayed at the top of the combo box.
|
|
31
34
|
* @realm client and menu
|
|
32
35
|
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOption
|
|
33
36
|
*/
|
|
34
37
|
ChooseOption(self: DComboBox, value: string, index: number): void;
|
|
38
|
+
|
|
35
39
|
/**
|
|
36
40
|
* Selects an option within a combo box based on its table index.
|
|
37
41
|
* @realm client and menu
|
|
38
42
|
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOptionID
|
|
39
43
|
*/
|
|
40
44
|
ChooseOptionID(self: DComboBox, index: number): void;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Closes the combo box menu. Called when the combo box is clicked while open.
|
|
43
48
|
* @realm client and menu
|
|
44
49
|
* @source https://wiki.facepunch.com/gmod/DComboBox:CloseMenu
|
|
45
50
|
*/
|
|
46
51
|
CloseMenu(self: DComboBox): void;
|
|
52
|
+
|
|
47
53
|
/**
|
|
48
54
|
* Returns an option's data based on the given index.
|
|
49
55
|
* @realm client and menu
|
|
50
56
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionData
|
|
51
57
|
*/
|
|
52
58
|
GetOptionData(self: DComboBox, index: number): any;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* Returns an option's text based on the given index.
|
|
55
62
|
* @realm client and menu
|
|
56
63
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionText
|
|
57
64
|
*/
|
|
58
65
|
GetOptionText(self: DComboBox, index: number): string;
|
|
66
|
+
|
|
59
67
|
/**
|
|
60
68
|
* Returns an option's text based on the given data.
|
|
61
69
|
* @realm client and menu
|
|
62
70
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionTextByData
|
|
63
71
|
*/
|
|
64
72
|
GetOptionTextByData(self: DComboBox, data: string): string;
|
|
73
|
+
|
|
65
74
|
/**
|
|
66
75
|
* Returns the currently selected option's text and data
|
|
67
76
|
* @realm client and menu
|
|
68
77
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelected
|
|
69
78
|
*/
|
|
70
79
|
GetSelected(self: DComboBox): (string, any);
|
|
80
|
+
|
|
71
81
|
/**
|
|
72
82
|
* Returns the index (ID) of the currently selected option.
|
|
73
83
|
* @realm client and menu
|
|
74
84
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelectedID
|
|
75
85
|
*/
|
|
76
86
|
GetSelectedID(self: DComboBox): number;
|
|
87
|
+
|
|
77
88
|
/**
|
|
78
89
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns an whether the items in the dropdown will be alphabetically sorted or not.
|
|
79
90
|
*
|
|
@@ -83,24 +94,28 @@ interface DComboBox extends DButton {
|
|
|
83
94
|
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSortItems
|
|
84
95
|
*/
|
|
85
96
|
GetSortItems(self: DComboBox): boolean;
|
|
97
|
+
|
|
86
98
|
/**
|
|
87
99
|
* Returns whether or not the combo box's menu is opened.
|
|
88
100
|
* @realm client and menu
|
|
89
101
|
* @source https://wiki.facepunch.com/gmod/DComboBox:IsMenuOpen
|
|
90
102
|
*/
|
|
91
103
|
IsMenuOpen(self: DComboBox): boolean;
|
|
104
|
+
|
|
92
105
|
/**
|
|
93
106
|
* Opens the combo box drop down menu. Called when the combo box is clicked.
|
|
94
107
|
* @realm client and menu
|
|
95
108
|
* @source https://wiki.facepunch.com/gmod/DComboBox:OpenMenu
|
|
96
109
|
*/
|
|
97
110
|
OpenMenu(self: DComboBox): void;
|
|
111
|
+
|
|
98
112
|
/**
|
|
99
113
|
* Removes a choice added with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice)
|
|
100
114
|
* @realm client and menu
|
|
101
115
|
* @source https://wiki.facepunch.com/gmod/DComboBox:RemoveChoice
|
|
102
116
|
*/
|
|
103
117
|
RemoveChoice(self: DComboBox, index: number): (string, any);
|
|
118
|
+
|
|
104
119
|
/**
|
|
105
120
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether or not the items should be sorted alphabetically in the dropdown menu of the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox). If set to false, items will appear in the order they were added by [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) calls.
|
|
106
121
|
*
|
|
@@ -111,20 +126,3 @@ interface DComboBox extends DButton {
|
|
|
111
126
|
*/
|
|
112
127
|
SetSortItems(self: DComboBox, sort: boolean): void;
|
|
113
128
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
package/types/ddragbase.d.tlua
CHANGED
|
@@ -20,6 +20,7 @@ interface DDragBase extends DPanel {
|
|
|
20
20
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Copy
|
|
21
21
|
*/
|
|
22
22
|
DropAction_Copy(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
23
|
+
|
|
23
24
|
/**
|
|
24
25
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
25
26
|
*
|
|
@@ -30,6 +31,7 @@ interface DDragBase extends DPanel {
|
|
|
30
31
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal
|
|
31
32
|
*/
|
|
32
33
|
DropAction_Normal(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
34
|
+
|
|
33
35
|
/**
|
|
34
36
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
35
37
|
*
|
|
@@ -40,24 +42,28 @@ interface DDragBase extends DPanel {
|
|
|
40
42
|
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Simple
|
|
41
43
|
*/
|
|
42
44
|
DropAction_Simple(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
45
|
+
|
|
43
46
|
/**
|
|
44
47
|
* Returns the drag'n'drop group this panel belongs to. See [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
45
48
|
* @realm client and menu
|
|
46
49
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetDnD
|
|
47
50
|
*/
|
|
48
51
|
GetDnD(self: DDragBase): string;
|
|
52
|
+
|
|
49
53
|
/**
|
|
50
54
|
* Returns whether this panel is read only or not for drag'n'drop purposes. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
51
55
|
* @realm client and menu
|
|
52
56
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetReadOnly
|
|
53
57
|
*/
|
|
54
58
|
GetReadOnly(self: DDragBase): boolean;
|
|
59
|
+
|
|
55
60
|
/**
|
|
56
61
|
* Whether this panel uses live drag'n'drop previews. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
57
62
|
* @realm client and menu
|
|
58
63
|
* @source https://wiki.facepunch.com/gmod/DDragBase:GetUseLiveDrag
|
|
59
64
|
*/
|
|
60
65
|
GetUseLiveDrag(self: DDragBase): boolean;
|
|
66
|
+
|
|
61
67
|
/**
|
|
62
68
|
* Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls [Panel:Receiver](https://wiki.facepunch.com/gmod/Panel:Receiver).
|
|
63
69
|
*
|
|
@@ -67,6 +73,7 @@ interface DDragBase extends DPanel {
|
|
|
67
73
|
* @source https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable
|
|
68
74
|
*/
|
|
69
75
|
MakeDroppable(self: DDragBase, name: string, allowCopy: boolean): void;
|
|
76
|
+
|
|
70
77
|
/**
|
|
71
78
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
72
79
|
* Used internally by [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable).
|
|
@@ -78,6 +85,7 @@ interface DDragBase extends DPanel {
|
|
|
78
85
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDnD
|
|
79
86
|
*/
|
|
80
87
|
SetDnD(self: DDragBase, name: string): void;
|
|
88
|
+
|
|
81
89
|
/**
|
|
82
90
|
* Determines where you can drop stuff.
|
|
83
91
|
* "4" for left
|
|
@@ -90,18 +98,21 @@ interface DDragBase extends DPanel {
|
|
|
90
98
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDropPos
|
|
91
99
|
*/
|
|
92
100
|
SetDropPos(self: DDragBase, pos?: string): void;
|
|
101
|
+
|
|
93
102
|
/**
|
|
94
103
|
* Sets whether this panel is read only or not for drag'n'drop purposes. If set to `true`, you can only copy from this panel, and cannot modify its contents. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
95
104
|
* @realm client and menu
|
|
96
105
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetReadOnly
|
|
97
106
|
*/
|
|
98
107
|
SetReadOnly(self: DDragBase, name: boolean): void;
|
|
108
|
+
|
|
99
109
|
/**
|
|
100
110
|
* Whether to use live drag'n'drop previews. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
101
111
|
* @realm client and menu
|
|
102
112
|
* @source https://wiki.facepunch.com/gmod/DDragBase:SetUseLiveDrag
|
|
103
113
|
*/
|
|
104
114
|
SetUseLiveDrag(self: DDragBase, newState: boolean): void;
|
|
115
|
+
|
|
105
116
|
/**
|
|
106
117
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
107
118
|
*
|
|
@@ -113,16 +124,3 @@ interface DDragBase extends DPanel {
|
|
|
113
124
|
*/
|
|
114
125
|
UpdateDropTarget(self: DDragBase, drop: number, pnl: Panel): void;
|
|
115
126
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|