@tlua/gmod 1.0.1
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/README.md +28 -0
- package/__metadata.json +4 -0
- package/_globals.d.tlua +178 -0
- package/_gmod-std.d.tlua +35 -0
- package/achievementicon.d.tlua +12 -0
- package/achievements.d.tlua +162 -0
- package/ai.d.tlua +65 -0
- package/ai_schedule.d.tlua +17 -0
- package/ai_task.d.tlua +17 -0
- package/angle.d.tlua +197 -0
- package/avatarimage.d.tlua +10 -0
- package/awesomium.d.tlua +14 -0
- package/baseclass.d.tlua +42 -0
- package/bf_read.d.tlua +110 -0
- package/bit.d.tlua +121 -0
- package/button.d.tlua +13 -0
- package/cam.d.tlua +220 -0
- package/ceffectdata.d.tlua +337 -0
- package/chat.d.tlua +62 -0
- package/checkbutton.d.tlua +14 -0
- package/cleanup.d.tlua +88 -0
- package/cluaemitter.d.tlua +119 -0
- package/clualocomotion.d.tlua +383 -0
- package/cluaparticle.d.tlua +426 -0
- package/cmovedata.d.tlua +476 -0
- package/cnavarea.d.tlua +845 -0
- package/cnavladder.d.tlua +209 -0
- package/cnewparticleeffect.d.tlua +259 -0
- package/color.d.tlua +339 -0
- package/concommand.d.tlua +69 -0
- package/constraint.d.tlua +311 -0
- package/construct.d.tlua +26 -0
- package/contentheader.d.tlua +32 -0
- package/contenticon.d.tlua +86 -0
- package/contentsidebar.d.tlua +45 -0
- package/contentsidebartoolbox.d.tlua +13 -0
- package/contextbase.d.tlua +37 -0
- package/controlpanel.d.tlua +140 -0
- package/controlpresets.d.tlua +118 -0
- package/convar.d.tlua +162 -0
- package/cookie.d.tlua +60 -0
- package/coroutine.d.tlua +90 -0
- package/crecipientfilter.d.tlua +152 -0
- package/csent.d.tlua +10 -0
- package/csoundpatch.d.tlua +150 -0
- package/ctakedamageinfo.d.tlua +366 -0
- package/ctrllistbox.d.tlua +12 -0
- package/ctrlnumpad.d.tlua +73 -0
- package/cusercmd.d.tlua +320 -0
- package/custom_classes.d.tlua +65 -0
- package/custom_entity_fields.d.tlua +96 -0
- package/cvars.d.tlua +80 -0
- package/dadjustablemodelpanel.d.tlua +81 -0
- package/dalphabar.d.tlua +27 -0
- package/dbinder.d.tlua +37 -0
- package/dbubblecontainer.d.tlua +18 -0
- package/dbutton.d.tlua +88 -0
- package/dcategoryheader.d.tlua +13 -0
- package/dcategorylist.d.tlua +11 -0
- package/dcheckbox.d.tlua +46 -0
- package/dcheckboxlabel.d.tlua +90 -0
- package/dcollapsiblecategory.d.tlua +240 -0
- package/dcolorbutton.d.tlua +73 -0
- package/dcolorcombo.d.tlua +54 -0
- package/dcolorcube.d.tlua +137 -0
- package/dcolormixer.d.tlua +303 -0
- package/dcolorpalette.d.tlua +294 -0
- package/dcolumnsheet.d.tlua +49 -0
- package/dcombobox.d.tlua +161 -0
- package/ddragbase.d.tlua +151 -0
- package/ddrawer.d.tlua +72 -0
- package/debug.d.tlua +236 -0
- package/debugoverlay.d.tlua +193 -0
- package/dentityproperties.d.tlua +63 -0
- package/derma.d.tlua +119 -0
- package/dexpandbutton.d.tlua +30 -0
- package/dfilebrowser.d.tlua +228 -0
- package/dform.d.tlua +176 -0
- package/dframe.d.tlua +261 -0
- package/dgrid.d.tlua +113 -0
- package/dhorizontaldivider.d.tlua +196 -0
- package/dhorizontalscroller.d.tlua +104 -0
- package/dhscrollbar.d.tlua +109 -0
- package/dhtml.d.tlua +91 -0
- package/dhtmlcontrols.d.tlua +62 -0
- package/diconbrowser.d.tlua +113 -0
- package/diconlayout.d.tlua +190 -0
- package/dimage.d.tlua +221 -0
- package/dimagebutton.d.tlua +103 -0
- package/dkillicon.d.tlua +9 -0
- package/dlabel.d.tlua +385 -0
- package/dlabeleditable.d.tlua +51 -0
- package/dlabelurl.d.tlua +100 -0
- package/dlistbox.d.tlua +82 -0
- package/dlistboxitem.d.tlua +42 -0
- package/dlistlayout.d.tlua +14 -0
- package/dlistview.d.tlua +360 -0
- package/dlistview_column.d.tlua +135 -0
- package/dlistview_columnplain.d.tlua +11 -0
- package/dlistview_draggerbar.d.tlua +11 -0
- package/dlistview_line.d.tlua +140 -0
- package/dlistviewheaderlabel.d.tlua +11 -0
- package/dlistviewlabel.d.tlua +11 -0
- package/dlistviewline.d.tlua +11 -0
- package/dmenu.d.tlua +266 -0
- package/dmenubar.d.tlua +42 -0
- package/dmenuoption.d.tlua +135 -0
- package/dmenuoptioncvar.d.tlua +64 -0
- package/dmodelpanel.d.tlua +207 -0
- package/dmodelselect.d.tlua +20 -0
- package/dmodelselectmulti.d.tlua +19 -0
- package/dnotify.d.tlua +93 -0
- package/dnumberscratch.d.tlua +284 -0
- package/dnumberwang.d.tlua +147 -0
- package/dnumpad.d.tlua +11 -0
- package/dnumslider.d.tlua +182 -0
- package/dpanel.d.tlua +152 -0
- package/dpanellist.d.tlua +109 -0
- package/dpaneloverlay.d.tlua +65 -0
- package/dpanelselect.d.tlua +13 -0
- package/dpanpanel.d.tlua +64 -0
- package/dprogress.d.tlua +27 -0
- package/dproperties.d.tlua +52 -0
- package/dproperty_boolean.d.tlua +12 -0
- package/dproperty_combo.d.tlua +31 -0
- package/dproperty_entity.d.tlua +12 -0
- package/dproperty_float.d.tlua +12 -0
- package/dproperty_generic.d.tlua +50 -0
- package/dproperty_int.d.tlua +12 -0
- package/dproperty_vectorcolor.d.tlua +14 -0
- package/dpropertysheet.d.tlua +167 -0
- package/dragndrop.d.tlua +123 -0
- package/draw.d.tlua +162 -0
- package/drgbpicker.d.tlua +49 -0
- package/drive.d.tlua +159 -0
- package/dscrollbargrip.d.tlua +13 -0
- package/dscrollpanel.d.tlua +110 -0
- package/dshape.d.tlua +72 -0
- package/dsizetocontents.d.tlua +46 -0
- package/dslider.d.tlua +302 -0
- package/dsprite.d.tlua +84 -0
- package/dtab.d.tlua +81 -0
- package/dtextentry.d.tlua +442 -0
- package/dtilelayout.d.tlua +218 -0
- package/dtooltip.d.tlua +76 -0
- package/dtree.d.tlua +185 -0
- package/dtree_node.d.tlua +793 -0
- package/dtree_node_button.d.tlua +13 -0
- package/duplicator.d.tlua +338 -0
- package/dverticaldivider.d.tlua +223 -0
- package/dvscrollbar.d.tlua +109 -0
- package/editablepanel.d.tlua +10 -0
- package/effect.d.tlua +121 -0
- package/effects.d.tlua +77 -0
- package/engine.d.tlua +248 -0
- package/entity.d.tlua +8295 -0
- package/ents.d.tlua +267 -0
- package/enums.d.tlua +7082 -0
- package/file.d.tlua +419 -0
- package/file_class.d.tlua +7 -0
- package/fingerposer.d.tlua +12 -0
- package/fingervar.d.tlua +13 -0
- package/frame.d.tlua +11 -0
- package/frame_blend.d.tlua +105 -0
- package/game.d.tlua +482 -0
- package/gameevent.d.tlua +968 -0
- package/gamemode.d.tlua +48 -0
- package/global.d.tlua +3156 -0
- package/gm.d.tlua +3218 -0
- package/gmod.d.tlua +20 -0
- package/gmsave.d.tlua +53 -0
- package/gui.d.tlua +232 -0
- package/gwen.d.tlua +55 -0
- package/halo.d.tlua +42 -0
- package/hammer.d.tlua +17 -0
- package/hook.d.tlua +64 -0
- package/html.d.tlua +22 -0
- package/http.d.tlua +72 -0
- package/iconeditor.d.tlua +130 -0
- package/igmodaudiochannel.d.tlua +419 -0
- package/imagecheckbox.d.tlua +48 -0
- package/imaterial.d.tlua +288 -0
- package/imesh.d.tlua +70 -0
- package/index.d.tlua +277 -0
- package/input.d.tlua +252 -0
- package/invalidateinternalentitycache.d.tlua +13 -0
- package/irestore.d.tlua +94 -0
- package/isave.d.tlua +94 -0
- package/itexture.d.tlua +108 -0
- package/ivideowriter.d.tlua +53 -0
- package/jit.d.tlua +243 -0
- package/killicon.d.tlua +84 -0
- package/label.d.tlua +20 -0
- package/language.d.tlua +26 -0
- package/list.d.tlua +112 -0
- package/makeballoon.d.tlua +15 -0
- package/markup.d.tlua +38 -0
- package/markupobject.d.tlua +53 -0
- package/material.d.tlua +9 -0
- package/math.d.tlua +899 -0
- package/matproxy.d.tlua +60 -0
- package/matselect.d.tlua +106 -0
- package/menu.d.tlua +20 -0
- package/menubar.d.tlua +39 -0
- package/mesh.d.tlua +183 -0
- package/modelimage.d.tlua +12 -0
- package/motionsensor.d.tlua +115 -0
- package/navmesh.d.tlua +274 -0
- package/net.d.tlua +639 -0
- package/nextbot.d.tlua +380 -0
- package/notification.d.tlua +35 -0
- package/npc.d.tlua +1787 -0
- package/numpad.d.tlua +89 -0
- package/os.d.tlua +56 -0
- package/package.d.tlua +15 -0
- package/package.json +18 -0
- package/panel.d.tlua +3650 -0
- package/panellist.d.tlua +13 -0
- package/pathfollower.d.tlua +301 -0
- package/permissions.d.tlua +77 -0
- package/physcollide.d.tlua +40 -0
- package/physenv.d.tlua +136 -0
- package/physobj.d.tlua +799 -0
- package/pixelvis_handle_t.d.tlua +9 -0
- package/player.d.tlua +3320 -0
- package/player_manager.d.tlua +147 -0
- package/preseteditor.d.tlua +13 -0
- package/presets.d.tlua +79 -0
- package/projectedtexture.d.tlua +553 -0
- package/properties.d.tlua +65 -0
- package/propselect.d.tlua +50 -0
- package/radiobutton.d.tlua +13 -0
- package/render.d.tlua +1700 -0
- package/resource.d.tlua +73 -0
- package/richtext.d.tlua +17 -0
- package/sandbox.d.tlua +576 -0
- package/saverestore.d.tlua +148 -0
- package/schedule.d.tlua +69 -0
- package/scripted_ents.d.tlua +124 -0
- package/search.d.tlua +26 -0
- package/serverlist.d.tlua +85 -0
- package/slidebar.d.tlua +12 -0
- package/slider.d.tlua +11 -0
- package/sound.d.tlua +140 -0
- package/spawnicon.d.tlua +95 -0
- package/spawnmenu.d.tlua +286 -0
- package/spawnmenucontentpanel.d.tlua +52 -0
- package/sql.d.tlua +154 -0
- package/stack.d.tlua +57 -0
- package/steamworks.d.tlua +208 -0
- package/string.d.tlua +535 -0
- package/structures.d.tlua +4442 -0
- package/surface.d.tlua +463 -0
- package/surfaceinfo.d.tlua +70 -0
- package/system.d.tlua +134 -0
- package/table.d.tlua +533 -0
- package/task.d.tlua +92 -0
- package/team.d.tlua +195 -0
- package/textentry.d.tlua +12 -0
- package/tgaimage.d.tlua +11 -0
- package/timer.d.tlua +198 -0
- package/tool.d.tlua +466 -0
- package/ugcpublishwindow.d.tlua +83 -0
- package/umsg.d.tlua +147 -0
- package/undo.d.tlua +122 -0
- package/urllabel.d.tlua +13 -0
- package/usermessage.d.tlua +48 -0
- package/utf8.d.tlua +89 -0
- package/util.d.tlua +1087 -0
- package/vector.d.tlua +413 -0
- package/vehicle.d.tlua +472 -0
- package/vgui.d.tlua +201 -0
- package/video.d.tlua +17 -0
- package/vmatrix.d.tlua +392 -0
- package/weapon.d.tlua +913 -0
- package/weapons.d.tlua +90 -0
- package/widgets.d.tlua +29 -0
- package/workshopfilebase.d.tlua +68 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The **DColorPalette** allows the player to select a color from a list of given colors.
|
|
5
|
+
* This panel supports saving across sessions via the panel cookie system.
|
|
6
|
+
* Use [Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName) to change "save files".
|
|
7
|
+
*
|
|
8
|
+
* @realm client and menu
|
|
9
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette
|
|
10
|
+
*/
|
|
11
|
+
interface DColorPalette extends DIconLayout {}
|
|
12
|
+
|
|
13
|
+
interface DColorPalette {
|
|
14
|
+
/**
|
|
15
|
+
* Basically the same functionality as [DColorPalette:OnValueChanged](https://wiki.facepunch.com/gmod/DColorPalette:OnValueChanged), you should use that instead!
|
|
16
|
+
*
|
|
17
|
+
* For Override
|
|
18
|
+
*
|
|
19
|
+
* @realm client and menu
|
|
20
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:DoClick
|
|
21
|
+
*/
|
|
22
|
+
DoClick(self: DColorPalette, clr: Color, btn: Panel): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface DColorPalette {
|
|
26
|
+
/**
|
|
27
|
+
* 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).
|
|
28
|
+
* @realm client and menu
|
|
29
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetButtonSize
|
|
30
|
+
*/
|
|
31
|
+
GetButtonSize(self: DColorPalette): number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface DColorPalette {
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
*
|
|
38
|
+
* See also:
|
|
39
|
+
* * [DColorPalette:GetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR) - For the red channel
|
|
40
|
+
* * [DColorPalette:GetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG) - For the green channel
|
|
41
|
+
* * [DColorPalette:GetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB) - For the blue channel
|
|
42
|
+
*
|
|
43
|
+
* @realm client and menu
|
|
44
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA
|
|
45
|
+
*/
|
|
46
|
+
GetConVarA(self: DColorPalette): string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface DColorPalette {
|
|
50
|
+
/**
|
|
51
|
+
* 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.
|
|
52
|
+
*
|
|
53
|
+
* See also:
|
|
54
|
+
* * [DColorPalette:GetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR) - For the red channel
|
|
55
|
+
* * [DColorPalette:GetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG) - For the green channel
|
|
56
|
+
* * [DColorPalette:GetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA) - For the alpha channel
|
|
57
|
+
*
|
|
58
|
+
* @realm client and menu
|
|
59
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB
|
|
60
|
+
*/
|
|
61
|
+
GetConVarB(self: DColorPalette): string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface DColorPalette {
|
|
65
|
+
/**
|
|
66
|
+
* 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.
|
|
67
|
+
*
|
|
68
|
+
* See also:
|
|
69
|
+
* * [DColorPalette:GetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR) - For the red channel
|
|
70
|
+
* * [DColorPalette:GetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB) - For the blue channel
|
|
71
|
+
* * [DColorPalette:GetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA) - For the alpha channel
|
|
72
|
+
*
|
|
73
|
+
* @realm client and menu
|
|
74
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG
|
|
75
|
+
*/
|
|
76
|
+
GetConVarG(self: DColorPalette): string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface DColorPalette {
|
|
80
|
+
/**
|
|
81
|
+
* 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.
|
|
82
|
+
*
|
|
83
|
+
* See also:
|
|
84
|
+
* * [DColorPalette:GetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarG) - For the green channel
|
|
85
|
+
* * [DColorPalette:GetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarB) - For the blue channel
|
|
86
|
+
* * [DColorPalette:GetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:GetConVarA) - For the alpha channel
|
|
87
|
+
*
|
|
88
|
+
* @realm client and menu
|
|
89
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetConVarR
|
|
90
|
+
*/
|
|
91
|
+
GetConVarR(self: DColorPalette): string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface DColorPalette {
|
|
95
|
+
/**
|
|
96
|
+
* 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.
|
|
97
|
+
* @realm client and menu
|
|
98
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:GetNumRows
|
|
99
|
+
*/
|
|
100
|
+
GetNumRows(self: DColorPalette): number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface DColorPalette {
|
|
104
|
+
/**
|
|
105
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
106
|
+
*
|
|
107
|
+
*
|
|
108
|
+
* Used internally to make sure changes on one palette affect other palettes with same name.
|
|
109
|
+
*
|
|
110
|
+
* @realm client and menu
|
|
111
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:NetworkColorChange
|
|
112
|
+
*/
|
|
113
|
+
NetworkColorChange(self: DColorPalette): void;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface DColorPalette {
|
|
117
|
+
/**
|
|
118
|
+
* Called when a palette button has been pressed. For Override
|
|
119
|
+
* @realm client and menu
|
|
120
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:OnRightClickButton
|
|
121
|
+
*/
|
|
122
|
+
OnRightClickButton(self: DColorPalette, pnl: Panel): void;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface DColorPalette {
|
|
126
|
+
/**
|
|
127
|
+
* Resets this entire color palette to a default preset one, without saving.
|
|
128
|
+
*
|
|
129
|
+
* See [DColorPalette:ResetSavedColors](https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors) for version that also saves the changes.
|
|
130
|
+
*
|
|
131
|
+
* @realm client and menu
|
|
132
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:Reset
|
|
133
|
+
*/
|
|
134
|
+
Reset(self: DColorPalette): void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface DColorPalette {
|
|
138
|
+
/**
|
|
139
|
+
* Resets this entire color palette to a default preset one and saves the changes.
|
|
140
|
+
*
|
|
141
|
+
* See [DColorPalette:Reset](https://wiki.facepunch.com/gmod/DColorPalette:Reset) for version that does not save the changes.
|
|
142
|
+
*
|
|
143
|
+
* @realm client and menu
|
|
144
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:ResetSavedColors
|
|
145
|
+
*/
|
|
146
|
+
ResetSavedColors(self: DColorPalette): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface DColorPalette {
|
|
150
|
+
/**
|
|
151
|
+
* Saves the color of given button across sessions.
|
|
152
|
+
* 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).
|
|
153
|
+
* It is expected that the amount of colors per palette ([Panel:SetCookieName](https://wiki.facepunch.com/gmod/Panel:SetCookieName)) is the same every time.
|
|
154
|
+
*
|
|
155
|
+
* @realm client and menu
|
|
156
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SaveColor
|
|
157
|
+
*/
|
|
158
|
+
SaveColor(self: DColorPalette, btn: Panel, clr: Color): void;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
interface DColorPalette {
|
|
162
|
+
/**
|
|
163
|
+
* Sets the size of each palette button.
|
|
164
|
+
*
|
|
165
|
+
* This is best kept to such a number, where this equation would return a whole number:
|
|
166
|
+
* `WidthOfColorPalette / ButtonSize= WholeNumber`
|
|
167
|
+
*
|
|
168
|
+
* If not, there will be ugly whitespace on the right side of the panel.
|
|
169
|
+
*
|
|
170
|
+
* @realm client and menu
|
|
171
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetButtonSize
|
|
172
|
+
*/
|
|
173
|
+
SetButtonSize(self: DColorPalette, size: number): void;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface DColorPalette {
|
|
177
|
+
/**
|
|
178
|
+
* Currently does nothing. Intended to "select" the color.
|
|
179
|
+
*
|
|
180
|
+
* @realm client and menu
|
|
181
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetColor
|
|
182
|
+
*/
|
|
183
|
+
SetColor(self: DColorPalette, clr: Color): void;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface DColorPalette {
|
|
187
|
+
/**
|
|
188
|
+
* Clears the palette and adds new buttons with given colors.
|
|
189
|
+
* @realm client and menu
|
|
190
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetColorButtons
|
|
191
|
+
*/
|
|
192
|
+
SetColorButtons(self: DColorPalette, tab: table): void;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
interface DColorPalette {
|
|
196
|
+
/**
|
|
197
|
+
* 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.
|
|
198
|
+
*
|
|
199
|
+
* See also:
|
|
200
|
+
* * [DColorPalette:SetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR) - For the red channel
|
|
201
|
+
* * [DColorPalette:SetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG) - For the green channel
|
|
202
|
+
* * [DColorPalette:SetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB) - For the blue channel
|
|
203
|
+
*
|
|
204
|
+
* @realm client and menu
|
|
205
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA
|
|
206
|
+
*/
|
|
207
|
+
SetConVarA(self: DColorPalette, convar: string): void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
interface DColorPalette {
|
|
211
|
+
/**
|
|
212
|
+
* 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.
|
|
213
|
+
*
|
|
214
|
+
* See also:
|
|
215
|
+
* * [DColorPalette:SetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR) - For the red channel
|
|
216
|
+
* * [DColorPalette:SetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG) - For the green channel
|
|
217
|
+
* * [DColorPalette:SetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA) - For the alpha channel
|
|
218
|
+
*
|
|
219
|
+
* @realm client and menu
|
|
220
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB
|
|
221
|
+
*/
|
|
222
|
+
SetConVarB(self: DColorPalette, convar: string): void;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
interface DColorPalette {
|
|
226
|
+
/**
|
|
227
|
+
* 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.
|
|
228
|
+
*
|
|
229
|
+
* See also:
|
|
230
|
+
* * [DColorPalette:SetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR) - For the red channel
|
|
231
|
+
* * [DColorPalette:SetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB) - For the blue channel
|
|
232
|
+
* * [DColorPalette:SetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA) - For the alpha channel
|
|
233
|
+
*
|
|
234
|
+
* @realm client and menu
|
|
235
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG
|
|
236
|
+
*/
|
|
237
|
+
SetConVarG(self: DColorPalette, convar: string): void;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface DColorPalette {
|
|
241
|
+
/**
|
|
242
|
+
* 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.
|
|
243
|
+
*
|
|
244
|
+
* See also:
|
|
245
|
+
* * [DColorPalette:SetConVarG](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarG) - For the green channel
|
|
246
|
+
* * [DColorPalette:SetConVarB](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarB) - For the blue channel
|
|
247
|
+
* * [DColorPalette:SetConVarA](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarA) - For the alpha channel
|
|
248
|
+
*
|
|
249
|
+
* @realm client and menu
|
|
250
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR
|
|
251
|
+
*/
|
|
252
|
+
SetConVarR(self: DColorPalette, convar: string): void;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
interface DColorPalette {
|
|
256
|
+
/**
|
|
257
|
+
* 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)
|
|
258
|
+
* **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.
|
|
259
|
+
*
|
|
260
|
+
*
|
|
261
|
+
* @realm client and menu
|
|
262
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:SetNumRows
|
|
263
|
+
*/
|
|
264
|
+
SetNumRows(self: DColorPalette, rows: number): void;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
interface DColorPalette {
|
|
268
|
+
/**
|
|
269
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
270
|
+
*
|
|
271
|
+
*
|
|
272
|
+
* Internal helper function for [DColorPalette:UpdateConVars](https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVars).
|
|
273
|
+
*
|
|
274
|
+
* @realm client and menu
|
|
275
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVar
|
|
276
|
+
*/
|
|
277
|
+
UpdateConVar(self: DColorPalette, name: string, key: string, clr: Color): void;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface DColorPalette {
|
|
281
|
+
/**
|
|
282
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
283
|
+
*
|
|
284
|
+
*
|
|
285
|
+
* Updates all the console variables set by [DColorPalette:SetConVarR](https://wiki.facepunch.com/gmod/DColorPalette:SetConVarR) and so on with given color.
|
|
286
|
+
*
|
|
287
|
+
* Called internally when a palette color is clicked.
|
|
288
|
+
*
|
|
289
|
+
* @realm client and menu
|
|
290
|
+
* @source https://wiki.facepunch.com/gmod/DColorPalette:UpdateConVars
|
|
291
|
+
*/
|
|
292
|
+
UpdateConVars(self: DColorPalette, clr: Color): void;
|
|
293
|
+
}
|
|
294
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Similar to [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet), but with tabs on the left.
|
|
5
|
+
* @realm client and menu
|
|
6
|
+
* @source https://wiki.facepunch.com/gmod/DColumnSheet
|
|
7
|
+
*/
|
|
8
|
+
interface DColumnSheet extends Panel {}
|
|
9
|
+
|
|
10
|
+
interface DColumnSheet {
|
|
11
|
+
/**
|
|
12
|
+
* Adds a new column/tab.
|
|
13
|
+
* @realm client and menu
|
|
14
|
+
* @source https://wiki.facepunch.com/gmod/DColumnSheet:AddSheet
|
|
15
|
+
*/
|
|
16
|
+
AddSheet(self: DColumnSheet, name: string, pnl: Panel, icon?: string): table;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface DColumnSheet {
|
|
20
|
+
/**
|
|
21
|
+
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns the active button of this [DColumnSheet](https://wiki.facepunch.com/gmod/DColumnSheet).
|
|
22
|
+
* @realm client and menu
|
|
23
|
+
* @source https://wiki.facepunch.com/gmod/DColumnSheet:GetActiveButton
|
|
24
|
+
*/
|
|
25
|
+
GetActiveButton(self: DColumnSheet): Panel;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface DColumnSheet {
|
|
29
|
+
/**
|
|
30
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that makes a button an active button for this [DColumnSheet](https://wiki.facepunch.com/gmod/DColumnSheet).
|
|
34
|
+
*
|
|
35
|
+
* @realm client and menu
|
|
36
|
+
* @source https://wiki.facepunch.com/gmod/DColumnSheet:SetActiveButton
|
|
37
|
+
*/
|
|
38
|
+
SetActiveButton(self: DColumnSheet, active: Panel): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface DColumnSheet {
|
|
42
|
+
/**
|
|
43
|
+
* Makes the tabs/buttons show only the image and no text.
|
|
44
|
+
* @realm client and menu
|
|
45
|
+
* @source https://wiki.facepunch.com/gmod/DColumnSheet:UseButtonOnlyStyle
|
|
46
|
+
*/
|
|
47
|
+
UseButtonOnlyStyle(self: DColumnSheet): void;
|
|
48
|
+
}
|
|
49
|
+
|
package/dcombobox.d.tlua
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A field with multiple selectable values.
|
|
5
|
+
*
|
|
6
|
+
* @realm client and menu
|
|
7
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox
|
|
8
|
+
*/
|
|
9
|
+
interface DComboBox extends DButton {}
|
|
10
|
+
|
|
11
|
+
interface DComboBox {
|
|
12
|
+
/**
|
|
13
|
+
* Adds a choice to the combo box.
|
|
14
|
+
* @realm client and menu
|
|
15
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:AddChoice
|
|
16
|
+
*/
|
|
17
|
+
AddChoice(self: DComboBox, value: string, data?: any, select?: boolean, icon?: string): number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface DComboBox {
|
|
21
|
+
/**
|
|
22
|
+
* Adds a spacer below the currently last item in the drop down. Recommended to use with [DComboBox:SetSortItems](https://wiki.facepunch.com/gmod/DComboBox:SetSortItems) set to `false`.
|
|
23
|
+
* @realm client and menu
|
|
24
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:AddSpacer
|
|
25
|
+
*/
|
|
26
|
+
AddSpacer(self: DComboBox): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface DComboBox {
|
|
30
|
+
/**
|
|
31
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
32
|
+
* 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).
|
|
33
|
+
* @realm client and menu
|
|
34
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:CheckConVarChanges
|
|
35
|
+
*/
|
|
36
|
+
CheckConVarChanges(self: DComboBox): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface DComboBox {
|
|
40
|
+
/**
|
|
41
|
+
* Selects a combo box option by its index and changes the text displayed at the top of the combo box.
|
|
42
|
+
* @realm client and menu
|
|
43
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOption
|
|
44
|
+
*/
|
|
45
|
+
ChooseOption(self: DComboBox, value: string, index: number): void;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface DComboBox {
|
|
49
|
+
/**
|
|
50
|
+
* Selects an option within a combo box based on its table index.
|
|
51
|
+
* @realm client and menu
|
|
52
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:ChooseOptionID
|
|
53
|
+
*/
|
|
54
|
+
ChooseOptionID(self: DComboBox, index: number): void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface DComboBox {
|
|
58
|
+
/**
|
|
59
|
+
* Closes the combo box menu. Called when the combo box is clicked while open.
|
|
60
|
+
* @realm client and menu
|
|
61
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:CloseMenu
|
|
62
|
+
*/
|
|
63
|
+
CloseMenu(self: DComboBox): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface DComboBox {
|
|
67
|
+
/**
|
|
68
|
+
* Returns an option's data based on the given index.
|
|
69
|
+
* @realm client and menu
|
|
70
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionData
|
|
71
|
+
*/
|
|
72
|
+
GetOptionData(self: DComboBox, index: number): any;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface DComboBox {
|
|
76
|
+
/**
|
|
77
|
+
* Returns an option's text based on the given index.
|
|
78
|
+
* @realm client and menu
|
|
79
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionText
|
|
80
|
+
*/
|
|
81
|
+
GetOptionText(self: DComboBox, index: number): string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface DComboBox {
|
|
85
|
+
/**
|
|
86
|
+
* Returns an option's text based on the given data.
|
|
87
|
+
* @realm client and menu
|
|
88
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetOptionTextByData
|
|
89
|
+
*/
|
|
90
|
+
GetOptionTextByData(self: DComboBox, data: string): string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface DComboBox {
|
|
94
|
+
/**
|
|
95
|
+
* Returns the currently selected option's text and data
|
|
96
|
+
* @realm client and menu
|
|
97
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelected
|
|
98
|
+
*/
|
|
99
|
+
GetSelected(self: DComboBox): (string, any);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface DComboBox {
|
|
103
|
+
/**
|
|
104
|
+
* Returns the index (ID) of the currently selected option.
|
|
105
|
+
* @realm client and menu
|
|
106
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSelectedID
|
|
107
|
+
*/
|
|
108
|
+
GetSelectedID(self: DComboBox): number;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface DComboBox {
|
|
112
|
+
/**
|
|
113
|
+
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns an whether the items in the dropdown will be alphabetically sorted or not.
|
|
114
|
+
*
|
|
115
|
+
* See [DComboBox:SetSortItems](https://wiki.facepunch.com/gmod/DComboBox:SetSortItems).
|
|
116
|
+
*
|
|
117
|
+
* @realm client and menu
|
|
118
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:GetSortItems
|
|
119
|
+
*/
|
|
120
|
+
GetSortItems(self: DComboBox): boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface DComboBox {
|
|
124
|
+
/**
|
|
125
|
+
* Returns whether or not the combo box's menu is opened.
|
|
126
|
+
* @realm client and menu
|
|
127
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:IsMenuOpen
|
|
128
|
+
*/
|
|
129
|
+
IsMenuOpen(self: DComboBox): boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface DComboBox {
|
|
133
|
+
/**
|
|
134
|
+
* Opens the combo box drop down menu. Called when the combo box is clicked.
|
|
135
|
+
* @realm client and menu
|
|
136
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:OpenMenu
|
|
137
|
+
*/
|
|
138
|
+
OpenMenu(self: DComboBox): void;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface DComboBox {
|
|
142
|
+
/**
|
|
143
|
+
* Removes a choice added with [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice)
|
|
144
|
+
* @realm client and menu
|
|
145
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:RemoveChoice
|
|
146
|
+
*/
|
|
147
|
+
RemoveChoice(self: DComboBox, index: number): (string, any);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface DComboBox {
|
|
151
|
+
/**
|
|
152
|
+
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets whether or not the items should be sorted alphabetically in the dropdown menu of the [DComboBox](https://wiki.facepunch.com/gmod/DComboBox). If set to false, items will appear in the order they were added by [DComboBox:AddChoice](https://wiki.facepunch.com/gmod/DComboBox:AddChoice) calls.
|
|
153
|
+
*
|
|
154
|
+
* This is enabled by default.
|
|
155
|
+
*
|
|
156
|
+
* @realm client and menu
|
|
157
|
+
* @source https://wiki.facepunch.com/gmod/DComboBox:SetSortItems
|
|
158
|
+
*/
|
|
159
|
+
SetSortItems(self: DComboBox, sort: boolean): void;
|
|
160
|
+
}
|
|
161
|
+
|
package/ddragbase.d.tlua
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* A VGUI base panel providing drag/drop functionality. Used by [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout), [DListLayout](https://wiki.facepunch.com/gmod/DListLayout) and [DTileLayout](https://wiki.facepunch.com/gmod/DTileLayout).
|
|
8
|
+
*
|
|
9
|
+
* @realm client and menu
|
|
10
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase
|
|
11
|
+
*/
|
|
12
|
+
interface DDragBase extends DPanel {}
|
|
13
|
+
|
|
14
|
+
interface DDragBase {
|
|
15
|
+
/**
|
|
16
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* Internal function used in [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable)
|
|
20
|
+
*
|
|
21
|
+
* @realm client and menu
|
|
22
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Copy
|
|
23
|
+
*/
|
|
24
|
+
DropAction_Copy(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface DDragBase {
|
|
28
|
+
/**
|
|
29
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* Internal function used in [DDragBase:DropAction_Copy](https://wiki.facepunch.com/gmod/DDragBase:DropAction_Copy)
|
|
33
|
+
*
|
|
34
|
+
* @realm client and menu
|
|
35
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal
|
|
36
|
+
*/
|
|
37
|
+
DropAction_Normal(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface DDragBase {
|
|
41
|
+
/**
|
|
42
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* Internal function used in [DDragBase:DropAction_Normal](https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal)
|
|
46
|
+
*
|
|
47
|
+
* @realm client and menu
|
|
48
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:DropAction_Simple
|
|
49
|
+
*/
|
|
50
|
+
DropAction_Simple(self: DDragBase, drops: table, bDoDrop: boolean, command: string, y: number, x: number): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface DDragBase {
|
|
54
|
+
/**
|
|
55
|
+
* Returns the drag'n'drop group this panel belongs to. See [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
56
|
+
* @realm client and menu
|
|
57
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:GetDnD
|
|
58
|
+
*/
|
|
59
|
+
GetDnD(self: DDragBase): string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface DDragBase {
|
|
63
|
+
/**
|
|
64
|
+
* Returns whether this panel is read only or not for drag'n'drop purposes. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
65
|
+
* @realm client and menu
|
|
66
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:GetReadOnly
|
|
67
|
+
*/
|
|
68
|
+
GetReadOnly(self: DDragBase): boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface DDragBase {
|
|
72
|
+
/**
|
|
73
|
+
* Whether this panel uses live drag'n'drop previews. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
74
|
+
* @realm client and menu
|
|
75
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:GetUseLiveDrag
|
|
76
|
+
*/
|
|
77
|
+
GetUseLiveDrag(self: DDragBase): boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface DDragBase {
|
|
81
|
+
/**
|
|
82
|
+
* Makes the panel a receiver for any droppable panel with the same DnD name. Internally calls [Panel:Receiver](https://wiki.facepunch.com/gmod/Panel:Receiver).
|
|
83
|
+
*
|
|
84
|
+
* See [Drag and Drop for VGUI](https://wiki.facepunch.com/gmod/Drag_and_Drop_for_VGUI).
|
|
85
|
+
*
|
|
86
|
+
* @realm client and menu
|
|
87
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable
|
|
88
|
+
*/
|
|
89
|
+
MakeDroppable(self: DDragBase, name: string, allowCopy: boolean): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface DDragBase {
|
|
93
|
+
/**
|
|
94
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
95
|
+
* Used internally by [DDragBase:MakeDroppable](https://wiki.facepunch.com/gmod/DDragBase:MakeDroppable).
|
|
96
|
+
*
|
|
97
|
+
* See also [DDragBase:GetDnD](https://wiki.facepunch.com/gmod/DDragBase:GetDnD)
|
|
98
|
+
*
|
|
99
|
+
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
100
|
+
* @realm client and menu
|
|
101
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDnD
|
|
102
|
+
*/
|
|
103
|
+
SetDnD(self: DDragBase, name: string): void;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface DDragBase {
|
|
107
|
+
/**
|
|
108
|
+
* Determines where you can drop stuff.
|
|
109
|
+
* "4" for left
|
|
110
|
+
* "5" for center
|
|
111
|
+
* "6" for right
|
|
112
|
+
* "8" for top
|
|
113
|
+
* "2" for bottom
|
|
114
|
+
*
|
|
115
|
+
* @realm client and menu
|
|
116
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:SetDropPos
|
|
117
|
+
*/
|
|
118
|
+
SetDropPos(self: DDragBase, pos?: string): void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface DDragBase {
|
|
122
|
+
/**
|
|
123
|
+
* Sets whether this panel is read only or not for drag'n'drop purposes. If set to `true`, you can only copy from this panel, and cannot modify its contents. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
124
|
+
* @realm client and menu
|
|
125
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:SetReadOnly
|
|
126
|
+
*/
|
|
127
|
+
SetReadOnly(self: DDragBase, name: boolean): void;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface DDragBase {
|
|
131
|
+
/**
|
|
132
|
+
* Whether to use live drag'n'drop previews. This is an [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
133
|
+
* @realm client and menu
|
|
134
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:SetUseLiveDrag
|
|
135
|
+
*/
|
|
136
|
+
SetUseLiveDrag(self: DDragBase, newState: boolean): void;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface DDragBase {
|
|
140
|
+
/**
|
|
141
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
142
|
+
*
|
|
143
|
+
*
|
|
144
|
+
* Internal function used in [DDragBase:DropAction_Normal](https://wiki.facepunch.com/gmod/DDragBase:DropAction_Normal)
|
|
145
|
+
*
|
|
146
|
+
* @realm client and menu
|
|
147
|
+
* @source https://wiki.facepunch.com/gmod/DDragBase:UpdateDropTarget
|
|
148
|
+
*/
|
|
149
|
+
UpdateDropTarget(self: DDragBase, drop: number, pnl: Panel): void;
|
|
150
|
+
}
|
|
151
|
+
|