@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/dhscrollbar.d.tlua
CHANGED
|
@@ -15,36 +15,42 @@ interface DHScrollBar extends Panel {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:AddScroll
|
|
16
16
|
*/
|
|
17
17
|
AddScroll(self: DHScrollBar, add: number): boolean;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Smoothly scrolls to given level.
|
|
20
21
|
* @realm client and menu
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:AnimateTo
|
|
22
23
|
*/
|
|
23
24
|
AnimateTo(self: DHScrollBar, scroll: number, length: number, delay?: number, ease?: number): void;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Returns the scale of the scroll bar based on the difference in size between the visible "window" into the canvas that is being scrolled. Should be used after [DHScrollBar:SetUp](https://wiki.facepunch.com/gmod/DHScrollBar:SetUp).
|
|
26
28
|
* @realm client and menu
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:BarScale
|
|
28
30
|
*/
|
|
29
31
|
BarScale(self: DHScrollBar): number;
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* Returns whether or not the manual left/right scroll buttons are visible or not. Set by [DHScrollBar:SetHideButtons](https://wiki.facepunch.com/gmod/DHScrollBar:SetHideButtons).
|
|
32
35
|
* @realm client and menu
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetHideButtons
|
|
34
37
|
*/
|
|
35
38
|
GetHideButtons(self: DHScrollBar): boolean;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Returns the negative of [DHScrollBar:GetScroll](https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll).
|
|
38
42
|
* @realm client and menu
|
|
39
43
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetOffset
|
|
40
44
|
*/
|
|
41
45
|
GetOffset(self: DHScrollBar): number;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Returns the amount of scroll level from the left in pixels.
|
|
44
49
|
* @realm client and menu
|
|
45
50
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll
|
|
46
51
|
*/
|
|
47
52
|
GetScroll(self: DHScrollBar): number;
|
|
53
|
+
|
|
48
54
|
/**
|
|
49
55
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
50
56
|
*
|
|
@@ -55,18 +61,21 @@ interface DHScrollBar extends Panel {
|
|
|
55
61
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:Grip
|
|
56
62
|
*/
|
|
57
63
|
Grip(self: DHScrollBar): void;
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* Allows hiding the left and right buttons for better visual stylisation.
|
|
60
67
|
* @realm client and menu
|
|
61
68
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:SetHideButtons
|
|
62
69
|
*/
|
|
63
70
|
SetHideButtons(self: DHScrollBar, hide: boolean): void;
|
|
71
|
+
|
|
64
72
|
/**
|
|
65
73
|
* Sets the scroll level in pixels.
|
|
66
74
|
* @realm client and menu
|
|
67
75
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:SetScroll
|
|
68
76
|
*/
|
|
69
77
|
SetScroll(self: DHScrollBar, scroll: number): void;
|
|
78
|
+
|
|
70
79
|
/**
|
|
71
80
|
* Sets up the scrollbar for use.
|
|
72
81
|
*
|
|
@@ -77,14 +86,3 @@ interface DHScrollBar extends Panel {
|
|
|
77
86
|
*/
|
|
78
87
|
SetUp(self: DHScrollBar, barSize: number, canvasSize: number): void;
|
|
79
88
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
package/types/dhtml.d.tlua
CHANGED
|
@@ -17,6 +17,7 @@ interface DHTML extends HTML {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/DHTML:AddFunction
|
|
18
18
|
*/
|
|
19
19
|
AddFunction(self: DHTML, library: string, name: string, callback: function): void;
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* Runs/Executes a string as JavaScript code in a panel.
|
|
22
23
|
* **NOTE**: This function does **NOT** evaluate expression (i.e. allow you to pass variables from JavaScript (JS) to Lua context).Because a return value is nil/no value (a.k.a. void).If you wish to pass/return values from JS to Lua, you may want to use [DHTML:AddFunction](https://wiki.facepunch.com/gmod/DHTML:AddFunction) function to accomplish that job.
|
|
@@ -28,12 +29,14 @@ interface DHTML extends HTML {
|
|
|
28
29
|
* @source https://wiki.facepunch.com/gmod/DHTML:Call
|
|
29
30
|
*/
|
|
30
31
|
Call(self: DHTML, js: string): void;
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Returns if the loaded page can run Lua code, set by [DHTML:SetAllowLua](https://wiki.facepunch.com/gmod/DHTML:SetAllowLua)
|
|
33
35
|
* @realm client and menu
|
|
34
36
|
* @source https://wiki.facepunch.com/gmod/DHTML:GetAllowLua
|
|
35
37
|
*/
|
|
36
38
|
GetAllowLua(self: DHTML): boolean;
|
|
39
|
+
|
|
37
40
|
/**
|
|
38
41
|
* Returns the value set by [DHTML:SetScrollbars](https://wiki.facepunch.com/gmod/DHTML:SetScrollbars).
|
|
39
42
|
*
|
|
@@ -42,6 +45,7 @@ interface DHTML extends HTML {
|
|
|
42
45
|
* @deprecated Broken. Use the CSS `overflow` rule instead.
|
|
43
46
|
*/
|
|
44
47
|
GetScrollbars(self: DHTML): boolean;
|
|
48
|
+
|
|
45
49
|
/**
|
|
46
50
|
* Runs/Executes a string as JavaScript code in a panel.
|
|
47
51
|
*
|
|
@@ -54,12 +58,14 @@ interface DHTML extends HTML {
|
|
|
54
58
|
* @source https://wiki.facepunch.com/gmod/DHTML:QueueJavascript
|
|
55
59
|
*/
|
|
56
60
|
QueueJavascript(self: DHTML, js: string): void;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* Determines whether the loaded page can run Lua code or not. See [DHTML](https://wiki.facepunch.com/gmod/DHTML) for how to run Lua from a DHTML window.
|
|
59
64
|
* @realm client and menu
|
|
60
65
|
* @source https://wiki.facepunch.com/gmod/DHTML:SetAllowLua
|
|
61
66
|
*/
|
|
62
67
|
SetAllowLua(self: DHTML, allow?: boolean): void;
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* Sets if the loaded window should display scrollbars when the webpage is larger than the viewing window. This is similar to the CSS `overflow` rule.
|
|
65
71
|
* @realm client and menu
|
|
@@ -68,11 +74,3 @@ interface DHTML extends HTML {
|
|
|
68
74
|
*/
|
|
69
75
|
SetScrollbars(self: DHTML, show: boolean): void;
|
|
70
76
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
@@ -6,6 +6,7 @@ interface DHTMLControls extends Panel {
|
|
|
6
6
|
ForwardButton: DButton;
|
|
7
7
|
RefreshButton: DButton;
|
|
8
8
|
StopButton: DButton;
|
|
9
|
+
|
|
9
10
|
/**
|
|
10
11
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
11
12
|
*
|
|
@@ -13,12 +14,14 @@ interface DHTMLControls extends Panel {
|
|
|
13
14
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:FinishedLoading
|
|
14
15
|
*/
|
|
15
16
|
FinishedLoading(self: DHTMLControls): void;
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* Sets the color of the navigation buttons.
|
|
18
20
|
* @realm client and menu
|
|
19
21
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:SetButtonColor
|
|
20
22
|
*/
|
|
21
23
|
SetButtonColor(self: DHTMLControls, clr: Color): void;
|
|
24
|
+
|
|
22
25
|
/**
|
|
23
26
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
24
27
|
*
|
|
@@ -26,6 +29,7 @@ interface DHTMLControls extends Panel {
|
|
|
26
29
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:StartedLoading
|
|
27
30
|
*/
|
|
28
31
|
StartedLoading(self: DHTMLControls): void;
|
|
32
|
+
|
|
29
33
|
/**
|
|
30
34
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
31
35
|
*
|
|
@@ -36,6 +40,7 @@ interface DHTMLControls extends Panel {
|
|
|
36
40
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:UpdateHistory
|
|
37
41
|
*/
|
|
38
42
|
UpdateHistory(self: DHTMLControls, url: string): void;
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
41
46
|
*
|
|
@@ -44,9 +49,3 @@ interface DHTMLControls extends Panel {
|
|
|
44
49
|
*/
|
|
45
50
|
UpdateNavButtonStatus(self: DHTMLControls): void;
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
@@ -18,30 +18,35 @@ interface DIconBrowser extends DScrollPanel {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:Fill
|
|
19
19
|
*/
|
|
20
20
|
Fill(self: DIconBrowser): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* A simple unused search feature, hides all icons that do not contain given text in their file path.
|
|
23
24
|
* @realm client and menu
|
|
24
25
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:FilterByText
|
|
25
26
|
*/
|
|
26
27
|
FilterByText(self: DIconBrowser, text: string): void;
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* Returns whether or not the browser should fill itself with icons.
|
|
29
31
|
* @realm client and menu
|
|
30
32
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetManual
|
|
31
33
|
*/
|
|
32
34
|
GetManual(self: DIconBrowser): boolean;
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Returns the currently selected icon's file path.
|
|
35
38
|
* @realm client and menu
|
|
36
39
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon
|
|
37
40
|
*/
|
|
38
41
|
GetSelectedIcon(self: DIconBrowser): string;
|
|
42
|
+
|
|
39
43
|
/**
|
|
40
44
|
* Called when the selected icon was changed. Use [DIconBrowser:GetSelectedIcon](https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon) to get the selected icon's filepath.
|
|
41
45
|
* @realm client and menu
|
|
42
46
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChange
|
|
43
47
|
*/
|
|
44
48
|
OnChange(self: DIconBrowser): void;
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
47
52
|
*
|
|
@@ -52,24 +57,28 @@ interface DIconBrowser extends DScrollPanel {
|
|
|
52
57
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChangeInternal
|
|
53
58
|
*/
|
|
54
59
|
OnChangeInternal(self: DIconBrowser): void;
|
|
60
|
+
|
|
55
61
|
/**
|
|
56
62
|
* Scrolls the browser to the selected icon
|
|
57
63
|
* @realm client and menu
|
|
58
64
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:ScrollToSelected
|
|
59
65
|
*/
|
|
60
66
|
ScrollToSelected(self: DIconBrowser): void;
|
|
67
|
+
|
|
61
68
|
/**
|
|
62
69
|
* Selects an icon from file path
|
|
63
70
|
* @realm client and menu
|
|
64
71
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SelectIcon
|
|
65
72
|
*/
|
|
66
73
|
SelectIcon(self: DIconBrowser, icon: string): void;
|
|
74
|
+
|
|
67
75
|
/**
|
|
68
76
|
* Sets whether or not the browser should automatically fill itself with icons.
|
|
69
77
|
* @realm client and menu
|
|
70
78
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SetManual
|
|
71
79
|
*/
|
|
72
80
|
SetManual(self: DIconBrowser, manual: boolean): void;
|
|
81
|
+
|
|
73
82
|
/**
|
|
74
83
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
75
84
|
*
|
|
@@ -81,14 +90,3 @@ interface DIconBrowser extends DScrollPanel {
|
|
|
81
90
|
*/
|
|
82
91
|
SetSelectedIcon(self: DIconBrowser, str: string): void;
|
|
83
92
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
package/types/diconlayout.d.tlua
CHANGED
|
@@ -17,36 +17,42 @@ interface DIconLayout extends DDragBase {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:Copy
|
|
18
18
|
*/
|
|
19
19
|
Copy(self: DIconLayout): Panel;
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* Copies the contents (Child elements) of another [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) to itself.
|
|
22
23
|
* @realm client and menu
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:CopyContents
|
|
24
25
|
*/
|
|
25
26
|
CopyContents(self: DIconLayout, from: Panel): void;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Returns the size of the border.
|
|
28
30
|
* @realm client and menu
|
|
29
31
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetBorder
|
|
30
32
|
*/
|
|
31
33
|
GetBorder(self: DIconLayout): number;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Returns the direction that it will be layed out, using the DOCK enumerations.
|
|
34
37
|
* @realm client and menu
|
|
35
38
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetLayoutDir
|
|
36
39
|
*/
|
|
37
40
|
GetLayoutDir(self: DIconLayout): number;
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* Returns the distance between two 'icons' on the X axis.
|
|
40
44
|
* @realm client and menu
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceX
|
|
42
46
|
*/
|
|
43
47
|
GetSpaceX(self: DIconLayout): number;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Returns distance between two "Icons" on the Y axis.
|
|
46
51
|
* @realm client and menu
|
|
47
52
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceY
|
|
48
53
|
*/
|
|
49
54
|
GetSpaceY(self: DIconLayout): number;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* Returns whether the icon layout will stretch its height to fit all the children.
|
|
52
58
|
*
|
|
@@ -56,6 +62,7 @@ interface DIconLayout extends DDragBase {
|
|
|
56
62
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchHeight
|
|
57
63
|
*/
|
|
58
64
|
GetStretchHeight(self: DIconLayout): boolean;
|
|
65
|
+
|
|
59
66
|
/**
|
|
60
67
|
* Returns whether the icon layout will stretch its width to fit all the children.
|
|
61
68
|
*
|
|
@@ -65,12 +72,14 @@ interface DIconLayout extends DDragBase {
|
|
|
65
72
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchWidth
|
|
66
73
|
*/
|
|
67
74
|
GetStretchWidth(self: DIconLayout): boolean;
|
|
75
|
+
|
|
68
76
|
/**
|
|
69
77
|
* 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.
|
|
70
78
|
* @realm client and menu
|
|
71
79
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:Layout
|
|
72
80
|
*/
|
|
73
81
|
Layout(self: DIconLayout): void;
|
|
82
|
+
|
|
74
83
|
/**
|
|
75
84
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
76
85
|
*
|
|
@@ -81,6 +90,7 @@ interface DIconLayout extends DDragBase {
|
|
|
81
90
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_LEFT
|
|
82
91
|
*/
|
|
83
92
|
LayoutIcons_LEFT(self: DIconLayout): void;
|
|
93
|
+
|
|
84
94
|
/**
|
|
85
95
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
86
96
|
*
|
|
@@ -91,12 +101,14 @@ interface DIconLayout extends DDragBase {
|
|
|
91
101
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_TOP
|
|
92
102
|
*/
|
|
93
103
|
LayoutIcons_TOP(self: DIconLayout): void;
|
|
104
|
+
|
|
94
105
|
/**
|
|
95
106
|
* 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.
|
|
96
107
|
* @realm client and menu
|
|
97
108
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetBorder
|
|
98
109
|
*/
|
|
99
110
|
SetBorder(self: DIconLayout, width: number): void;
|
|
111
|
+
|
|
100
112
|
/**
|
|
101
113
|
* Sets the direction that it will be layed out, using the [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK).
|
|
102
114
|
*
|
|
@@ -106,18 +118,21 @@ interface DIconLayout extends DDragBase {
|
|
|
106
118
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir
|
|
107
119
|
*/
|
|
108
120
|
SetLayoutDir(self: DIconLayout, direction: number): void;
|
|
121
|
+
|
|
109
122
|
/**
|
|
110
123
|
* 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.
|
|
111
124
|
* @realm client and menu
|
|
112
125
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceX
|
|
113
126
|
*/
|
|
114
127
|
SetSpaceX(self: DIconLayout, xSpacing: number): void;
|
|
128
|
+
|
|
115
129
|
/**
|
|
116
130
|
* 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.
|
|
117
131
|
* @realm client and menu
|
|
118
132
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceY
|
|
119
133
|
*/
|
|
120
134
|
SetSpaceY(self: DIconLayout, ySpacing: number): void;
|
|
135
|
+
|
|
121
136
|
/**
|
|
122
137
|
* If set to true, the icon layout will stretch its height to fit all the children.
|
|
123
138
|
*
|
|
@@ -127,6 +142,7 @@ interface DIconLayout extends DDragBase {
|
|
|
127
142
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetStretchHeight
|
|
128
143
|
*/
|
|
129
144
|
SetStretchHeight(self: DIconLayout, do_stretch: boolean): void;
|
|
145
|
+
|
|
130
146
|
/**
|
|
131
147
|
* If set to true, the icon layout will stretch its width to fit all the children.
|
|
132
148
|
*
|
|
@@ -137,21 +153,3 @@ interface DIconLayout extends DDragBase {
|
|
|
137
153
|
*/
|
|
138
154
|
SetStretchWidth(self: DIconLayout, stretchW: boolean): void;
|
|
139
155
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
package/types/dimage.d.tlua
CHANGED
|
@@ -19,6 +19,7 @@ interface DImage extends DPanel {
|
|
|
19
19
|
* @source https://wiki.facepunch.com/gmod/DImage:DoLoadMaterial
|
|
20
20
|
*/
|
|
21
21
|
DoLoadMaterial(self: DImage): void;
|
|
22
|
+
|
|
22
23
|
/**
|
|
23
24
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
24
25
|
*
|
|
@@ -31,6 +32,7 @@ interface DImage extends DPanel {
|
|
|
31
32
|
* @source https://wiki.facepunch.com/gmod/DImage:FixVertexLitMaterial
|
|
32
33
|
*/
|
|
33
34
|
FixVertexLitMaterial(self: DImage): void;
|
|
35
|
+
|
|
34
36
|
/**
|
|
35
37
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
36
38
|
*
|
|
@@ -41,18 +43,21 @@ interface DImage extends DPanel {
|
|
|
41
43
|
* @source https://wiki.facepunch.com/gmod/DImage:GetFailsafeMatName
|
|
42
44
|
*/
|
|
43
45
|
GetFailsafeMatName(self: DImage): string;
|
|
46
|
+
|
|
44
47
|
/**
|
|
45
48
|
* Returns the image loaded in the image panel.
|
|
46
49
|
* @realm client and menu
|
|
47
50
|
* @source https://wiki.facepunch.com/gmod/DImage:GetImage
|
|
48
51
|
*/
|
|
49
52
|
GetImage(self: DImage): string;
|
|
53
|
+
|
|
50
54
|
/**
|
|
51
55
|
* Returns the color override of the image panel.
|
|
52
56
|
* @realm client and menu
|
|
53
57
|
* @source https://wiki.facepunch.com/gmod/DImage:GetImageColor
|
|
54
58
|
*/
|
|
55
59
|
GetImageColor(self: DImage): Color;
|
|
60
|
+
|
|
56
61
|
/**
|
|
57
62
|
* Returns whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
|
|
58
63
|
*
|
|
@@ -62,6 +67,7 @@ interface DImage extends DPanel {
|
|
|
62
67
|
* @source https://wiki.facepunch.com/gmod/DImage:GetKeepAspect
|
|
63
68
|
*/
|
|
64
69
|
GetKeepAspect(self: DImage): boolean;
|
|
70
|
+
|
|
65
71
|
/**
|
|
66
72
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
67
73
|
*
|
|
@@ -72,12 +78,14 @@ interface DImage extends DPanel {
|
|
|
72
78
|
* @source https://wiki.facepunch.com/gmod/DImage:GetMatName
|
|
73
79
|
*/
|
|
74
80
|
GetMatName(self: DImage): string;
|
|
81
|
+
|
|
75
82
|
/**
|
|
76
83
|
* Returns the current [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) of the [DImage](https://wiki.facepunch.com/gmod/DImage).
|
|
77
84
|
* @realm client and menu
|
|
78
85
|
* @source https://wiki.facepunch.com/gmod/DImage:GetMaterial
|
|
79
86
|
*/
|
|
80
87
|
GetMaterial(self: DImage): IMaterial;
|
|
88
|
+
|
|
81
89
|
/**
|
|
82
90
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
83
91
|
*
|
|
@@ -90,6 +98,7 @@ interface DImage extends DPanel {
|
|
|
90
98
|
* @source https://wiki.facepunch.com/gmod/DImage:LoadMaterial
|
|
91
99
|
*/
|
|
92
100
|
LoadMaterial(self: DImage): void;
|
|
101
|
+
|
|
93
102
|
/**
|
|
94
103
|
* Paints a ghost copy of the DImage panel at the given position and
|
|
95
104
|
* dimensions. This function overrides Panel:PaintAt.
|
|
@@ -98,6 +107,7 @@ interface DImage extends DPanel {
|
|
|
98
107
|
* @source https://wiki.facepunch.com/gmod/DImage:PaintAt
|
|
99
108
|
*/
|
|
100
109
|
PaintAt(self: DImage, posX: number, posY: number, width?: number, height?: number): void;
|
|
110
|
+
|
|
101
111
|
/**
|
|
102
112
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
103
113
|
*
|
|
@@ -108,6 +118,7 @@ interface DImage extends DPanel {
|
|
|
108
118
|
* @source https://wiki.facepunch.com/gmod/DImage:SetFailsafeMatName
|
|
109
119
|
*/
|
|
110
120
|
SetFailsafeMatName(self: DImage, backupMat: string): void;
|
|
121
|
+
|
|
111
122
|
/**
|
|
112
123
|
* 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.
|
|
113
124
|
*
|
|
@@ -117,12 +128,14 @@ interface DImage extends DPanel {
|
|
|
117
128
|
* @source https://wiki.facepunch.com/gmod/DImage:SetImage
|
|
118
129
|
*/
|
|
119
130
|
SetImage(self: DImage, strImage: string, strBackup?: string): void;
|
|
131
|
+
|
|
120
132
|
/**
|
|
121
133
|
* Sets the image's color override.
|
|
122
134
|
* @realm client and menu
|
|
123
135
|
* @source https://wiki.facepunch.com/gmod/DImage:SetImageColor
|
|
124
136
|
*/
|
|
125
137
|
SetImageColor(self: DImage, col: Color): void;
|
|
138
|
+
|
|
126
139
|
/**
|
|
127
140
|
* Sets whether the [DImage](https://wiki.facepunch.com/gmod/DImage) should keep the aspect ratio of its image when being resized.
|
|
128
141
|
*
|
|
@@ -132,6 +145,7 @@ interface DImage extends DPanel {
|
|
|
132
145
|
* @source https://wiki.facepunch.com/gmod/DImage:SetKeepAspect
|
|
133
146
|
*/
|
|
134
147
|
SetKeepAspect(self: DImage, keep: boolean): void;
|
|
148
|
+
|
|
135
149
|
/**
|
|
136
150
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
137
151
|
*
|
|
@@ -142,12 +156,14 @@ interface DImage extends DPanel {
|
|
|
142
156
|
* @source https://wiki.facepunch.com/gmod/DImage:SetMatName
|
|
143
157
|
*/
|
|
144
158
|
SetMatName(self: DImage, mat: string): void;
|
|
159
|
+
|
|
145
160
|
/**
|
|
146
161
|
* Sets a [Global.Material](https://wiki.facepunch.com/gmod/Global.Material) directly as an image.
|
|
147
162
|
* @realm client and menu
|
|
148
163
|
* @source https://wiki.facepunch.com/gmod/DImage:SetMaterial
|
|
149
164
|
*/
|
|
150
165
|
SetMaterial(self: DImage, mat: IMaterial): void;
|
|
166
|
+
|
|
151
167
|
/**
|
|
152
168
|
* 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.
|
|
153
169
|
*
|
|
@@ -157,6 +173,7 @@ interface DImage extends DPanel {
|
|
|
157
173
|
* @source https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial
|
|
158
174
|
*/
|
|
159
175
|
SetOnViewMaterial(self: DImage, mat: string, backupMat: string): void;
|
|
176
|
+
|
|
160
177
|
/**
|
|
161
178
|
* Returns true if the image is **not** yet loaded.
|
|
162
179
|
* @realm client and menu
|
|
@@ -164,23 +181,3 @@ interface DImage extends DPanel {
|
|
|
164
181
|
*/
|
|
165
182
|
Unloaded(self: DImage): boolean;
|
|
166
183
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
interface DImageButton extends DButton {
|
|
4
4
|
/** The internal DImage panel used to render the image. */
|
|
5
5
|
m_Image: DImage;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
8
9
|
*
|
|
@@ -13,6 +14,7 @@ interface DImageButton extends DButton {
|
|
|
13
14
|
* @source https://wiki.facepunch.com/gmod/DImageButton:DepressImage
|
|
14
15
|
*/
|
|
15
16
|
DepressImage(self: DImageButton): void;
|
|
17
|
+
|
|
16
18
|
/**
|
|
17
19
|
* Returns whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
|
|
18
20
|
*
|
|
@@ -20,12 +22,14 @@ interface DImageButton extends DButton {
|
|
|
20
22
|
* @source https://wiki.facepunch.com/gmod/DImageButton:GetDepressImage
|
|
21
23
|
*/
|
|
22
24
|
GetDepressImage(self: DImageButton): boolean;
|
|
25
|
+
|
|
23
26
|
/**
|
|
24
27
|
* Returns the "image" of the [DImageButton](https://wiki.facepunch.com/gmod/DImageButton). Equivalent of [DImage:GetImage](https://wiki.facepunch.com/gmod/DImage:GetImage).
|
|
25
28
|
* @realm client and menu
|
|
26
29
|
* @source https://wiki.facepunch.com/gmod/DImageButton:GetImage
|
|
27
30
|
*/
|
|
28
31
|
GetImage(self: DImageButton): string;
|
|
32
|
+
|
|
29
33
|
/**
|
|
30
34
|
* Returns whether the image inside the button should be stretched to fit it or not
|
|
31
35
|
*
|
|
@@ -35,6 +39,7 @@ interface DImageButton extends DButton {
|
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/DImageButton:GetStretchToFit
|
|
36
40
|
*/
|
|
37
41
|
GetStretchToFit(self: DImageButton): boolean;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Controls whether [DImageButton:DepressImage](https://wiki.facepunch.com/gmod/DImageButton:DepressImage) is functional or not.
|
|
40
45
|
*
|
|
@@ -42,12 +47,14 @@ interface DImageButton extends DButton {
|
|
|
42
47
|
* @source https://wiki.facepunch.com/gmod/DImageButton:SetDepressImage
|
|
43
48
|
*/
|
|
44
49
|
SetDepressImage(self: DImageButton, enable: boolean): void;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* 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).
|
|
47
53
|
* @realm client and menu
|
|
48
54
|
* @source https://wiki.facepunch.com/gmod/DImageButton:SetImageVisible
|
|
49
55
|
*/
|
|
50
56
|
SetImageVisible(self: DImageButton, visible: boolean): void;
|
|
57
|
+
|
|
51
58
|
/**
|
|
52
59
|
* 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).
|
|
53
60
|
*
|
|
@@ -57,12 +64,14 @@ interface DImageButton extends DButton {
|
|
|
57
64
|
* @source https://wiki.facepunch.com/gmod/DImageButton:SetKeepAspect
|
|
58
65
|
*/
|
|
59
66
|
SetKeepAspect(self: DImageButton, keep: boolean): void;
|
|
67
|
+
|
|
60
68
|
/**
|
|
61
69
|
* See [DImage:SetOnViewMaterial](https://wiki.facepunch.com/gmod/DImage:SetOnViewMaterial)
|
|
62
70
|
* @realm client and menu
|
|
63
71
|
* @source https://wiki.facepunch.com/gmod/DImageButton:SetOnViewMaterial
|
|
64
72
|
*/
|
|
65
73
|
SetOnViewMaterial(self: DImageButton, mat: string, backup: string): void;
|
|
74
|
+
|
|
66
75
|
/**
|
|
67
76
|
* 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.
|
|
68
77
|
*
|
|
@@ -73,13 +82,3 @@ interface DImageButton extends DButton {
|
|
|
73
82
|
*/
|
|
74
83
|
SetStretchToFit(self: DImageButton, stretch: boolean): void;
|
|
75
84
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
package/types/dkillicon.d.tlua
CHANGED