@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,113 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Simply a [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) which automatically displays all of the [Silkicons](https://wiki.facepunch.com/gmod/silkicons).
|
|
5
|
+
* Used as a way to get the user to select an icon.
|
|
6
|
+
*
|
|
7
|
+
* @realm client and menu
|
|
8
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser
|
|
9
|
+
*/
|
|
10
|
+
interface DIconBrowser extends DScrollPanel {}
|
|
11
|
+
|
|
12
|
+
interface DIconBrowser {
|
|
13
|
+
/**
|
|
14
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* Automatically called to fill the browser with icons. Will not work if [DIconBrowser:SetManual](https://wiki.facepunch.com/gmod/DIconBrowser:SetManual) is set to true.
|
|
18
|
+
*
|
|
19
|
+
* @realm client and menu
|
|
20
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:Fill
|
|
21
|
+
*/
|
|
22
|
+
Fill(self: DIconBrowser): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface DIconBrowser {
|
|
26
|
+
/**
|
|
27
|
+
* A simple unused search feature, hides all icons that do not contain given text in their file path.
|
|
28
|
+
* @realm client and menu
|
|
29
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:FilterByText
|
|
30
|
+
*/
|
|
31
|
+
FilterByText(self: DIconBrowser, text: string): void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface DIconBrowser {
|
|
35
|
+
/**
|
|
36
|
+
* Returns whether or not the browser should fill itself with icons.
|
|
37
|
+
* @realm client and menu
|
|
38
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetManual
|
|
39
|
+
*/
|
|
40
|
+
GetManual(self: DIconBrowser): boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface DIconBrowser {
|
|
44
|
+
/**
|
|
45
|
+
* Returns the currently selected icon's file path.
|
|
46
|
+
* @realm client and menu
|
|
47
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon
|
|
48
|
+
*/
|
|
49
|
+
GetSelectedIcon(self: DIconBrowser): string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface DIconBrowser {
|
|
53
|
+
/**
|
|
54
|
+
* Called when the selected icon was changed. Use [DIconBrowser:GetSelectedIcon](https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon) to get the selected icon's filepath.
|
|
55
|
+
* @realm client and menu
|
|
56
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChange
|
|
57
|
+
*/
|
|
58
|
+
OnChange(self: DIconBrowser): void;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface DIconBrowser {
|
|
62
|
+
/**
|
|
63
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* Use [DIconBrowser:OnChange](https://wiki.facepunch.com/gmod/DIconBrowser:OnChange) instead
|
|
67
|
+
*
|
|
68
|
+
* @realm client and menu
|
|
69
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChangeInternal
|
|
70
|
+
*/
|
|
71
|
+
OnChangeInternal(self: DIconBrowser): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface DIconBrowser {
|
|
75
|
+
/**
|
|
76
|
+
* Scrolls the browser to the selected icon
|
|
77
|
+
* @realm client and menu
|
|
78
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:ScrollToSelected
|
|
79
|
+
*/
|
|
80
|
+
ScrollToSelected(self: DIconBrowser): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface DIconBrowser {
|
|
84
|
+
/**
|
|
85
|
+
* Selects an icon from file path
|
|
86
|
+
* @realm client and menu
|
|
87
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SelectIcon
|
|
88
|
+
*/
|
|
89
|
+
SelectIcon(self: DIconBrowser, icon: string): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface DIconBrowser {
|
|
93
|
+
/**
|
|
94
|
+
* Sets whether or not the browser should automatically fill itself with icons.
|
|
95
|
+
* @realm client and menu
|
|
96
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SetManual
|
|
97
|
+
*/
|
|
98
|
+
SetManual(self: DIconBrowser, manual: boolean): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface DIconBrowser {
|
|
102
|
+
/**
|
|
103
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* Set the currently selected file path. Do not use. Use [DIconBrowser:SelectIcon](https://wiki.facepunch.com/gmod/DIconBrowser:SelectIcon) instead.
|
|
107
|
+
*
|
|
108
|
+
* @realm client and menu
|
|
109
|
+
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SetSelectedIcon
|
|
110
|
+
*/
|
|
111
|
+
SetSelectedIcon(self: DIconBrowser, str: string): void;
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* DIconLayout is what replaced [DPanelList](https://wiki.facepunch.com/gmod/DPanelList) in Garry's Mod 13.
|
|
5
|
+
* DPanelList still exists in GMod but is deprecated and does not support the new GWEN skin.
|
|
6
|
+
*
|
|
7
|
+
* [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) is used to make a list of panels.
|
|
8
|
+
* Unlike DPanelList, DIconLayout does not automatically add a scroll bar - the example below shows you how you can do this.
|
|
9
|
+
*
|
|
10
|
+
* @realm client and menu
|
|
11
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout
|
|
12
|
+
*/
|
|
13
|
+
interface DIconLayout extends DDragBase {}
|
|
14
|
+
|
|
15
|
+
interface DIconLayout {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a replica of the DIconLayout it is called on.
|
|
18
|
+
* @realm client and menu
|
|
19
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:Copy
|
|
20
|
+
*/
|
|
21
|
+
Copy(self: DIconLayout): Panel;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface DIconLayout {
|
|
25
|
+
/**
|
|
26
|
+
* Copies the contents (Child elements) of another [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) to itself.
|
|
27
|
+
* @realm client and menu
|
|
28
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:CopyContents
|
|
29
|
+
*/
|
|
30
|
+
CopyContents(self: DIconLayout, from: Panel): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface DIconLayout {
|
|
34
|
+
/**
|
|
35
|
+
* Returns the size of the border.
|
|
36
|
+
* @realm client and menu
|
|
37
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetBorder
|
|
38
|
+
*/
|
|
39
|
+
GetBorder(self: DIconLayout): number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface DIconLayout {
|
|
43
|
+
/**
|
|
44
|
+
* Returns the direction that it will be layed out, using the DOCK enumerations.
|
|
45
|
+
* @realm client and menu
|
|
46
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetLayoutDir
|
|
47
|
+
*/
|
|
48
|
+
GetLayoutDir(self: DIconLayout): number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface DIconLayout {
|
|
52
|
+
/**
|
|
53
|
+
* Returns the distance between two 'icons' on the X axis.
|
|
54
|
+
* @realm client and menu
|
|
55
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceX
|
|
56
|
+
*/
|
|
57
|
+
GetSpaceX(self: DIconLayout): number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface DIconLayout {
|
|
61
|
+
/**
|
|
62
|
+
* Returns distance between two "Icons" on the Y axis.
|
|
63
|
+
* @realm client and menu
|
|
64
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceY
|
|
65
|
+
*/
|
|
66
|
+
GetSpaceY(self: DIconLayout): number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface DIconLayout {
|
|
70
|
+
/**
|
|
71
|
+
* Returns whether the icon layout will stretch its height to fit all the children.
|
|
72
|
+
*
|
|
73
|
+
* See also [DIconLayout:GetStretchWidth](https://wiki.facepunch.com/gmod/DIconLayout:GetStretchWidth)
|
|
74
|
+
*
|
|
75
|
+
* @realm client and menu
|
|
76
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchHeight
|
|
77
|
+
*/
|
|
78
|
+
GetStretchHeight(self: DIconLayout): boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface DIconLayout {
|
|
82
|
+
/**
|
|
83
|
+
* Returns whether the icon layout will stretch its width to fit all the children.
|
|
84
|
+
*
|
|
85
|
+
* See also [DIconLayout:GetStretchHeight](https://wiki.facepunch.com/gmod/DIconLayout:GetStretchHeight)
|
|
86
|
+
*
|
|
87
|
+
* @realm client and menu
|
|
88
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchWidth
|
|
89
|
+
*/
|
|
90
|
+
GetStretchWidth(self: DIconLayout): boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface DIconLayout {
|
|
94
|
+
/**
|
|
95
|
+
* Resets layout vars before calling [Panel:InvalidateLayout](https://wiki.facepunch.com/gmod/Panel:InvalidateLayout). This is called when children are added or removed, and must be called when the spacing, border or layout direction is changed.
|
|
96
|
+
* @realm client and menu
|
|
97
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:Layout
|
|
98
|
+
*/
|
|
99
|
+
Layout(self: DIconLayout): void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface DIconLayout {
|
|
103
|
+
/**
|
|
104
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* Used internally to layout the child elements if the [DIconLayout:SetLayoutDir](https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir) is set to LEFT (See [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK)).
|
|
108
|
+
*
|
|
109
|
+
* @realm client and menu
|
|
110
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_LEFT
|
|
111
|
+
*/
|
|
112
|
+
LayoutIcons_LEFT(self: DIconLayout): void;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface DIconLayout {
|
|
116
|
+
/**
|
|
117
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
* Used internally to layout the child elements if the [DIconLayout:SetLayoutDir](https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir) is set to TOP (See [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK)).
|
|
121
|
+
*
|
|
122
|
+
* @realm client and menu
|
|
123
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_TOP
|
|
124
|
+
*/
|
|
125
|
+
LayoutIcons_TOP(self: DIconLayout): void;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface DIconLayout {
|
|
129
|
+
/**
|
|
130
|
+
* Sets the internal border (padding) within the DIconLayout. This will not change its size, only the positioning of children. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
|
|
131
|
+
* @realm client and menu
|
|
132
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetBorder
|
|
133
|
+
*/
|
|
134
|
+
SetBorder(self: DIconLayout, width: number): void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface DIconLayout {
|
|
138
|
+
/**
|
|
139
|
+
* Sets the direction that it will be layed out, using the [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK).
|
|
140
|
+
*
|
|
141
|
+
* Currently only TOP and LEFT are supported.
|
|
142
|
+
*
|
|
143
|
+
* @realm client and menu
|
|
144
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir
|
|
145
|
+
*/
|
|
146
|
+
SetLayoutDir(self: DIconLayout, direction: number): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface DIconLayout {
|
|
150
|
+
/**
|
|
151
|
+
* Sets the horizontal (x) spacing between children within the DIconLayout. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
|
|
152
|
+
* @realm client and menu
|
|
153
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceX
|
|
154
|
+
*/
|
|
155
|
+
SetSpaceX(self: DIconLayout, xSpacing: number): void;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface DIconLayout {
|
|
159
|
+
/**
|
|
160
|
+
* Sets the vertical (y) spacing between children within the DIconLayout. You must call [DIconLayout:Layout](https://wiki.facepunch.com/gmod/DIconLayout:Layout) in order for the changes to take effect.
|
|
161
|
+
* @realm client and menu
|
|
162
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceY
|
|
163
|
+
*/
|
|
164
|
+
SetSpaceY(self: DIconLayout, ySpacing: number): void;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface DIconLayout {
|
|
168
|
+
/**
|
|
169
|
+
* If set to true, the icon layout will stretch its height to fit all the children.
|
|
170
|
+
*
|
|
171
|
+
* See also [DIconLayout:SetStretchWidth](https://wiki.facepunch.com/gmod/DIconLayout:SetStretchWidth)
|
|
172
|
+
*
|
|
173
|
+
* @realm client and menu
|
|
174
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetStretchHeight
|
|
175
|
+
*/
|
|
176
|
+
SetStretchHeight(self: DIconLayout, do_stretch: boolean): void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface DIconLayout {
|
|
180
|
+
/**
|
|
181
|
+
* If set to true, the icon layout will stretch its width to fit all the children.
|
|
182
|
+
*
|
|
183
|
+
* See also [DIconLayout:SetStretchHeight](https://wiki.facepunch.com/gmod/DIconLayout:SetStretchHeight)
|
|
184
|
+
*
|
|
185
|
+
* @realm client and menu
|
|
186
|
+
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetStretchWidth
|
|
187
|
+
*/
|
|
188
|
+
SetStretchWidth(self: DIconLayout, stretchW: boolean): void;
|
|
189
|
+
}
|
|
190
|
+
|
package/dimage.d.tlua
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* [DImage](https://wiki.facepunch.com/gmod/DImage) is an advanced, more robust version of the [Material](https://wiki.facepunch.com/gmod/Material) panel.
|
|
5
|
+
*
|
|
6
|
+
* See [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) for a click-able version of this panel.
|
|
7
|
+
*
|
|
8
|
+
* @realm client and menu
|
|
9
|
+
* @source https://wiki.facepunch.com/gmod/DImage
|
|
10
|
+
*/
|
|
11
|
+
interface DImage extends DPanel {}
|
|
12
|
+
|
|
13
|
+
interface DImage {
|
|
14
|
+
/**
|
|
15
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* Actually loads the [IMaterial](https://wiki.facepunch.com/gmod/IMaterial) to render it. Called from [DImage:LoadMaterial](https://wiki.facepunch.com/gmod/DImage:LoadMaterial).
|
|
19
|
+
*
|
|
20
|
+
* @realm client and menu
|
|
21
|
+
* @source https://wiki.facepunch.com/gmod/DImage:DoLoadMaterial
|
|
22
|
+
*/
|
|
23
|
+
DoLoadMaterial(self: DImage): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface DImage {
|
|
27
|
+
/**
|
|
28
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* "Fixes" the current material of the [DImage](https://wiki.facepunch.com/gmod/DImage) if it has VertexLit shader by creating a new one with the same name and a prefix of "_DImage" and automatically calling [DImage:SetMaterial](https://wiki.facepunch.com/gmod/DImage:SetMaterial) with the new material.
|
|
32
|
+
*
|
|
33
|
+
* This fixes the problem where using materials using shaders that expect lighting information causing "weird" flickering when displayed in 2D/Unlit environment.
|
|
34
|
+
*
|
|
35
|
+
* @realm client and menu
|
|
36
|
+
* @source https://wiki.facepunch.com/gmod/DImage:FixVertexLitMaterial
|
|
37
|
+
*/
|
|
38
|
+
FixVertexLitMaterial(self: DImage): void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface DImage {
|
|
42
|
+
/**
|
|
43
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* Returns the texture path set by [DImage:SetFailsafeMatName](https://wiki.facepunch.com/gmod/DImage:SetFailsafeMatName).
|
|
47
|
+
*
|
|
48
|
+
* @realm client and menu
|
|
49
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetFailsafeMatName
|
|
50
|
+
*/
|
|
51
|
+
GetFailsafeMatName(self: DImage): string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface DImage {
|
|
55
|
+
/**
|
|
56
|
+
* Returns the image loaded in the image panel.
|
|
57
|
+
* @realm client and menu
|
|
58
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetImage
|
|
59
|
+
*/
|
|
60
|
+
GetImage(self: DImage): string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface DImage {
|
|
64
|
+
/**
|
|
65
|
+
* Returns the color override of the image panel.
|
|
66
|
+
* @realm client and menu
|
|
67
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetImageColor
|
|
68
|
+
*/
|
|
69
|
+
GetImageColor(self: DImage): Color;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface DImage {
|
|
73
|
+
/**
|
|
74
|
+
* Returns whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
|
|
75
|
+
*
|
|
76
|
+
* See [DImage:SetKeepAspect](https://wiki.facepunch.com/gmod/DImage:SetKeepAspect) for more info on how it works.
|
|
77
|
+
*
|
|
78
|
+
* @realm client and menu
|
|
79
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetKeepAspect
|
|
80
|
+
*/
|
|
81
|
+
GetKeepAspect(self: DImage): boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface DImage {
|
|
85
|
+
/**
|
|
86
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* Returns the texture path set by [DImage:SetMatName](https://wiki.facepunch.com/gmod/DImage:SetMatName).
|
|
90
|
+
*
|
|
91
|
+
* @realm client and menu
|
|
92
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetMatName
|
|
93
|
+
*/
|
|
94
|
+
GetMatName(self: DImage): string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface DImage {
|
|
98
|
+
/**
|
|
99
|
+
* Returns the current [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) of the [DImage](https://wiki.facepunch.com/gmod/DImage).
|
|
100
|
+
* @realm client and menu
|
|
101
|
+
* @source https://wiki.facepunch.com/gmod/DImage:GetMaterial
|
|
102
|
+
*/
|
|
103
|
+
GetMaterial(self: DImage): IMaterial;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface DImage {
|
|
107
|
+
/**
|
|
108
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* Initializes the loading process of the material to render if it is not loaded yet.
|
|
112
|
+
*
|
|
113
|
+
* You do not need to call this function. It is done for you automatically.
|
|
114
|
+
*
|
|
115
|
+
* @realm client and menu
|
|
116
|
+
* @source https://wiki.facepunch.com/gmod/DImage:LoadMaterial
|
|
117
|
+
*/
|
|
118
|
+
LoadMaterial(self: DImage): void;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface DImage {
|
|
122
|
+
/**
|
|
123
|
+
* Paints a ghost copy of the DImage panel at the given position and
|
|
124
|
+
* dimensions. This function overrides Panel:PaintAt.
|
|
125
|
+
* @realm client
|
|
126
|
+
* @realm menu
|
|
127
|
+
* @source https://wiki.facepunch.com/gmod/DImage:PaintAt
|
|
128
|
+
*/
|
|
129
|
+
PaintAt(self: DImage, posX: number, posY: number, width?: number, height?: number): void;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
interface DImage {
|
|
134
|
+
/**
|
|
135
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* Sets the backup material to be loaded when the image is first rendered. Used by [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial).
|
|
139
|
+
*
|
|
140
|
+
* @realm client and menu
|
|
141
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetFailsafeMatName
|
|
142
|
+
*/
|
|
143
|
+
SetFailsafeMatName(self: DImage, backupMat: string): void;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface DImage {
|
|
147
|
+
/**
|
|
148
|
+
* Sets the image to load into the frame. If the first image can't be loaded and `strBackup` is set, that image will be loaded instead.
|
|
149
|
+
*
|
|
150
|
+
* This eventually calls [DImage:SetMaterial](https://wiki.facepunch.com/gmod/DImage:SetMaterial).
|
|
151
|
+
*
|
|
152
|
+
* @realm client and menu
|
|
153
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetImage
|
|
154
|
+
*/
|
|
155
|
+
SetImage(self: DImage, strImage: string, strBackup?: string): void;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface DImage {
|
|
159
|
+
/**
|
|
160
|
+
* Sets the image's color override.
|
|
161
|
+
* @realm client and menu
|
|
162
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetImageColor
|
|
163
|
+
*/
|
|
164
|
+
SetImageColor(self: DImage, col: Color): void;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface DImage {
|
|
168
|
+
/**
|
|
169
|
+
* Sets whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
|
|
170
|
+
*
|
|
171
|
+
* Note that this will not try to fit the image inside the button, but instead it will fill the button with the image.
|
|
172
|
+
*
|
|
173
|
+
* @realm client and menu
|
|
174
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetKeepAspect
|
|
175
|
+
*/
|
|
176
|
+
SetKeepAspect(self: DImage, keep: boolean): void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface DImage {
|
|
180
|
+
/**
|
|
181
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
182
|
+
*
|
|
183
|
+
*
|
|
184
|
+
* Sets the material to be loaded when the image is first rendered. Used by [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial).
|
|
185
|
+
*
|
|
186
|
+
* @realm client and menu
|
|
187
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetMatName
|
|
188
|
+
*/
|
|
189
|
+
SetMatName(self: DImage, mat: string): void;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface DImage {
|
|
193
|
+
/**
|
|
194
|
+
* Sets a [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) directly as an image.
|
|
195
|
+
* @realm client and menu
|
|
196
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetMaterial
|
|
197
|
+
*/
|
|
198
|
+
SetMaterial(self: DImage, mat: IMaterial): void;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
interface DImage {
|
|
202
|
+
/**
|
|
203
|
+
* Similar to [DImage:SetImage](https://wiki.facepunch.com/gmod/DImage:SetImage), but will only do the expensive part of actually loading the textures/material if the material is about to be rendered/viewed.
|
|
204
|
+
*
|
|
205
|
+
* Useful for cases like [DIconBrowser](https://wiki.facepunch.com/gmod/DIconBrowser), where there are hundreds of small icons in 1 panel in a list that do not need all to be loaded at the same time.
|
|
206
|
+
*
|
|
207
|
+
* @realm client and menu
|
|
208
|
+
* @source https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial
|
|
209
|
+
*/
|
|
210
|
+
SetOnViewMaterial(self: DImage, mat: string, backupMat: string): void;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface DImage {
|
|
214
|
+
/**
|
|
215
|
+
* Returns true if the image is **not** yet loaded.
|
|
216
|
+
* @realm client and menu
|
|
217
|
+
* @source https://wiki.facepunch.com/gmod/DImage:Unloaded
|
|
218
|
+
*/
|
|
219
|
+
Unloaded(self: DImage): boolean;
|
|
220
|
+
}
|
|
221
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
interface DImageButton extends DButton {
|
|
4
|
+
/** The internal DImage panel used to render the image. */
|
|
5
|
+
m_Image: DImage;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface DImageButton {
|
|
9
|
+
/**
|
|
10
|
+
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Used internally to briefly scale the image when clicked.
|
|
14
|
+
*
|
|
15
|
+
* @realm client and menu
|
|
16
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:DepressImage
|
|
17
|
+
*/
|
|
18
|
+
DepressImage(self: DImageButton): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface DImageButton {
|
|
22
|
+
/**
|
|
23
|
+
* Returns whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
|
|
24
|
+
*
|
|
25
|
+
* @realm client and menu
|
|
26
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:GetDepressImage
|
|
27
|
+
*/
|
|
28
|
+
GetDepressImage(self: DImageButton): boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface DImageButton {
|
|
32
|
+
/**
|
|
33
|
+
* Returns the "image" of the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton). Equivalent of [DImage:GetImage](https://wiki.facepunch.com/gmod/DImage:GetImage).
|
|
34
|
+
* @realm client and menu
|
|
35
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:GetImage
|
|
36
|
+
*/
|
|
37
|
+
GetImage(self: DImageButton): string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface DImageButton {
|
|
41
|
+
/**
|
|
42
|
+
* Returns whether the image inside the button should be stretched to fit it or not
|
|
43
|
+
*
|
|
44
|
+
* See [DImageButton:SetStretchToFit](https://wiki.facepunch.com/gmod/DImageButton:SetStretchToFit)
|
|
45
|
+
*
|
|
46
|
+
* @realm client and menu
|
|
47
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:GetStretchToFit
|
|
48
|
+
*/
|
|
49
|
+
GetStretchToFit(self: DImageButton): boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface DImageButton {
|
|
53
|
+
/**
|
|
54
|
+
* Controls whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
|
|
55
|
+
*
|
|
56
|
+
* @realm client and menu
|
|
57
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:SetDepressImage
|
|
58
|
+
*/
|
|
59
|
+
SetDepressImage(self: DImageButton, enable: boolean): void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface DImageButton {
|
|
63
|
+
/**
|
|
64
|
+
* Hides or shows the image of the image button. Internally this calls [Panel:SetVisible](https://wiki.facepunch.com/gmod/Panel:SetVisible) on the internal [DImage](https://wiki.facepunch.com/gmod/DImage).
|
|
65
|
+
* @realm client and menu
|
|
66
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:SetImageVisible
|
|
67
|
+
*/
|
|
68
|
+
SetImageVisible(self: DImageButton, visible: boolean): void;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface DImageButton {
|
|
72
|
+
/**
|
|
73
|
+
* Sets whether the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should keep the aspect ratio of its image. Equivalent of [DImage:SetKeepAspect](https://wiki.facepunch.com/gmod/DImage:SetKeepAspect).
|
|
74
|
+
*
|
|
75
|
+
* Note that this will not try to fit the image inside the button, but instead it will fill the button with the image.
|
|
76
|
+
*
|
|
77
|
+
* @realm client and menu
|
|
78
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:SetKeepAspect
|
|
79
|
+
*/
|
|
80
|
+
SetKeepAspect(self: DImageButton, keep: boolean): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface DImageButton {
|
|
84
|
+
/**
|
|
85
|
+
* See [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial)
|
|
86
|
+
* @realm client and menu
|
|
87
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:SetOnViewMaterial
|
|
88
|
+
*/
|
|
89
|
+
SetOnViewMaterial(self: DImageButton, mat: string, backup: string): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface DImageButton {
|
|
93
|
+
/**
|
|
94
|
+
* Sets whether the image inside the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) should be stretched to fill the entire size of the button, without preserving aspect ratio.
|
|
95
|
+
*
|
|
96
|
+
* If set to false, the image will not be resized at all.
|
|
97
|
+
*
|
|
98
|
+
* @realm client and menu
|
|
99
|
+
* @source https://wiki.facepunch.com/gmod/DImageButton:SetStretchToFit
|
|
100
|
+
*/
|
|
101
|
+
SetStretchToFit(self: DImageButton, stretch: boolean): void;
|
|
102
|
+
}
|
|
103
|
+
|
package/dkillicon.d.tlua
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Uses the [killicon](https://wiki.facepunch.com/gmod/killicon) to persistently draw a killicon.
|
|
5
|
+
* @realm client
|
|
6
|
+
* @source https://wiki.facepunch.com/gmod/DKillIcon
|
|
7
|
+
*/
|
|
8
|
+
interface DKillIcon extends Panel {}
|
|
9
|
+
|