@tlua/gmod 1.0.3 → 1.0.5
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/index.d.tlua +1 -0
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +8 -17
- package/types/hook_events.d.tlua +2412 -0
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/dhscrollbar.d.tlua
CHANGED
|
@@ -8,63 +8,43 @@
|
|
|
8
8
|
* @realm client and menu
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar
|
|
10
10
|
*/
|
|
11
|
-
interface DHScrollBar extends Panel {
|
|
12
|
-
|
|
13
|
-
interface DHScrollBar {
|
|
11
|
+
interface DHScrollBar extends Panel {
|
|
14
12
|
/**
|
|
15
13
|
* Adds specified amount of scroll in pixels.
|
|
16
14
|
* @realm client and menu
|
|
17
15
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:AddScroll
|
|
18
16
|
*/
|
|
19
17
|
AddScroll(self: DHScrollBar, add: number): boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface DHScrollBar {
|
|
23
18
|
/**
|
|
24
19
|
* Smoothly scrolls to given level.
|
|
25
20
|
* @realm client and menu
|
|
26
21
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:AnimateTo
|
|
27
22
|
*/
|
|
28
23
|
AnimateTo(self: DHScrollBar, scroll: number, length: number, delay?: number, ease?: number): void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface DHScrollBar {
|
|
32
24
|
/**
|
|
33
25
|
* 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).
|
|
34
26
|
* @realm client and menu
|
|
35
27
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:BarScale
|
|
36
28
|
*/
|
|
37
29
|
BarScale(self: DHScrollBar): number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface DHScrollBar {
|
|
41
30
|
/**
|
|
42
31
|
* 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).
|
|
43
32
|
* @realm client and menu
|
|
44
33
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetHideButtons
|
|
45
34
|
*/
|
|
46
35
|
GetHideButtons(self: DHScrollBar): boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface DHScrollBar {
|
|
50
36
|
/**
|
|
51
37
|
* Returns the negative of [DHScrollBar:GetScroll](https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll).
|
|
52
38
|
* @realm client and menu
|
|
53
39
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetOffset
|
|
54
40
|
*/
|
|
55
41
|
GetOffset(self: DHScrollBar): number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface DHScrollBar {
|
|
59
42
|
/**
|
|
60
43
|
* Returns the amount of scroll level from the left in pixels.
|
|
61
44
|
* @realm client and menu
|
|
62
45
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:GetScroll
|
|
63
46
|
*/
|
|
64
47
|
GetScroll(self: DHScrollBar): number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface DHScrollBar {
|
|
68
48
|
/**
|
|
69
49
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
70
50
|
*
|
|
@@ -75,27 +55,18 @@ interface DHScrollBar {
|
|
|
75
55
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:Grip
|
|
76
56
|
*/
|
|
77
57
|
Grip(self: DHScrollBar): void;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface DHScrollBar {
|
|
81
58
|
/**
|
|
82
59
|
* Allows hiding the left and right buttons for better visual stylisation.
|
|
83
60
|
* @realm client and menu
|
|
84
61
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:SetHideButtons
|
|
85
62
|
*/
|
|
86
63
|
SetHideButtons(self: DHScrollBar, hide: boolean): void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface DHScrollBar {
|
|
90
64
|
/**
|
|
91
65
|
* Sets the scroll level in pixels.
|
|
92
66
|
* @realm client and menu
|
|
93
67
|
* @source https://wiki.facepunch.com/gmod/DHScrollBar:SetScroll
|
|
94
68
|
*/
|
|
95
69
|
SetScroll(self: DHScrollBar, scroll: number): void;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface DHScrollBar {
|
|
99
70
|
/**
|
|
100
71
|
* Sets up the scrollbar for use.
|
|
101
72
|
*
|
|
@@ -107,3 +78,13 @@ interface DHScrollBar {
|
|
|
107
78
|
SetUp(self: DHScrollBar, barSize: number, canvasSize: number): void;
|
|
108
79
|
}
|
|
109
80
|
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
package/types/dhtml.d.tlua
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* @realm client and menu
|
|
8
8
|
* @source https://wiki.facepunch.com/gmod/DHTML
|
|
9
9
|
*/
|
|
10
|
-
interface DHTML extends HTML {
|
|
11
|
-
|
|
12
|
-
interface DHTML {
|
|
10
|
+
interface DHTML extends HTML {
|
|
13
11
|
/**
|
|
14
12
|
* Defines a Javascript function that when called will call a Lua callback.
|
|
15
13
|
* **NOTE**: Must be called after the HTML document has fully loaded.
|
|
@@ -19,9 +17,6 @@ interface DHTML {
|
|
|
19
17
|
* @source https://wiki.facepunch.com/gmod/DHTML:AddFunction
|
|
20
18
|
*/
|
|
21
19
|
AddFunction(self: DHTML, library: string, name: string, callback: function): void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface DHTML {
|
|
25
20
|
/**
|
|
26
21
|
* Runs/Executes a string as JavaScript code in a panel.
|
|
27
22
|
* **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.
|
|
@@ -33,18 +28,12 @@ interface DHTML {
|
|
|
33
28
|
* @source https://wiki.facepunch.com/gmod/DHTML:Call
|
|
34
29
|
*/
|
|
35
30
|
Call(self: DHTML, js: string): void;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface DHTML {
|
|
39
31
|
/**
|
|
40
32
|
* Returns if the loaded page can run Lua code, set by [DHTML:SetAllowLua](https://wiki.facepunch.com/gmod/DHTML:SetAllowLua)
|
|
41
33
|
* @realm client and menu
|
|
42
34
|
* @source https://wiki.facepunch.com/gmod/DHTML:GetAllowLua
|
|
43
35
|
*/
|
|
44
36
|
GetAllowLua(self: DHTML): boolean;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface DHTML {
|
|
48
37
|
/**
|
|
49
38
|
* Returns the value set by [DHTML:SetScrollbars](https://wiki.facepunch.com/gmod/DHTML:SetScrollbars).
|
|
50
39
|
*
|
|
@@ -53,9 +42,6 @@ interface DHTML {
|
|
|
53
42
|
* @deprecated Broken. Use the CSS `overflow` rule instead.
|
|
54
43
|
*/
|
|
55
44
|
GetScrollbars(self: DHTML): boolean;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface DHTML {
|
|
59
45
|
/**
|
|
60
46
|
* Runs/Executes a string as JavaScript code in a panel.
|
|
61
47
|
*
|
|
@@ -68,18 +54,12 @@ interface DHTML {
|
|
|
68
54
|
* @source https://wiki.facepunch.com/gmod/DHTML:QueueJavascript
|
|
69
55
|
*/
|
|
70
56
|
QueueJavascript(self: DHTML, js: string): void;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface DHTML {
|
|
74
57
|
/**
|
|
75
58
|
* 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.
|
|
76
59
|
* @realm client and menu
|
|
77
60
|
* @source https://wiki.facepunch.com/gmod/DHTML:SetAllowLua
|
|
78
61
|
*/
|
|
79
62
|
SetAllowLua(self: DHTML, allow?: boolean): void;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface DHTML {
|
|
83
63
|
/**
|
|
84
64
|
* 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.
|
|
85
65
|
* @realm client and menu
|
|
@@ -89,3 +69,10 @@ interface DHTML {
|
|
|
89
69
|
SetScrollbars(self: DHTML, show: boolean): void;
|
|
90
70
|
}
|
|
91
71
|
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
@@ -6,9 +6,6 @@ interface DHTMLControls extends Panel {
|
|
|
6
6
|
ForwardButton: DButton;
|
|
7
7
|
RefreshButton: DButton;
|
|
8
8
|
StopButton: DButton;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface DHTMLControls {
|
|
12
9
|
/**
|
|
13
10
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
14
11
|
*
|
|
@@ -16,18 +13,12 @@ interface DHTMLControls {
|
|
|
16
13
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:FinishedLoading
|
|
17
14
|
*/
|
|
18
15
|
FinishedLoading(self: DHTMLControls): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface DHTMLControls {
|
|
22
16
|
/**
|
|
23
17
|
* Sets the color of the navigation buttons.
|
|
24
18
|
* @realm client and menu
|
|
25
19
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:SetButtonColor
|
|
26
20
|
*/
|
|
27
21
|
SetButtonColor(self: DHTMLControls, clr: Color): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface DHTMLControls {
|
|
31
22
|
/**
|
|
32
23
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
33
24
|
*
|
|
@@ -35,9 +26,6 @@ interface DHTMLControls {
|
|
|
35
26
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:StartedLoading
|
|
36
27
|
*/
|
|
37
28
|
StartedLoading(self: DHTMLControls): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface DHTMLControls {
|
|
41
29
|
/**
|
|
42
30
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
43
31
|
*
|
|
@@ -48,9 +36,6 @@ interface DHTMLControls {
|
|
|
48
36
|
* @source https://wiki.facepunch.com/gmod/DHTMLControls:UpdateHistory
|
|
49
37
|
*/
|
|
50
38
|
UpdateHistory(self: DHTMLControls, url: string): void;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface DHTMLControls {
|
|
54
39
|
/**
|
|
55
40
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
56
41
|
*
|
|
@@ -60,3 +45,8 @@ interface DHTMLControls {
|
|
|
60
45
|
UpdateNavButtonStatus(self: DHTMLControls): void;
|
|
61
46
|
}
|
|
62
47
|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* @realm client and menu
|
|
8
8
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser
|
|
9
9
|
*/
|
|
10
|
-
interface DIconBrowser extends DScrollPanel {
|
|
11
|
-
|
|
12
|
-
interface DIconBrowser {
|
|
10
|
+
interface DIconBrowser extends DScrollPanel {
|
|
13
11
|
/**
|
|
14
12
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
15
13
|
*
|
|
@@ -20,45 +18,30 @@ interface DIconBrowser {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:Fill
|
|
21
19
|
*/
|
|
22
20
|
Fill(self: DIconBrowser): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface DIconBrowser {
|
|
26
21
|
/**
|
|
27
22
|
* A simple unused search feature, hides all icons that do not contain given text in their file path.
|
|
28
23
|
* @realm client and menu
|
|
29
24
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:FilterByText
|
|
30
25
|
*/
|
|
31
26
|
FilterByText(self: DIconBrowser, text: string): void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface DIconBrowser {
|
|
35
27
|
/**
|
|
36
28
|
* Returns whether or not the browser should fill itself with icons.
|
|
37
29
|
* @realm client and menu
|
|
38
30
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetManual
|
|
39
31
|
*/
|
|
40
32
|
GetManual(self: DIconBrowser): boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface DIconBrowser {
|
|
44
33
|
/**
|
|
45
34
|
* Returns the currently selected icon's file path.
|
|
46
35
|
* @realm client and menu
|
|
47
36
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:GetSelectedIcon
|
|
48
37
|
*/
|
|
49
38
|
GetSelectedIcon(self: DIconBrowser): string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface DIconBrowser {
|
|
53
39
|
/**
|
|
54
40
|
* 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
41
|
* @realm client and menu
|
|
56
42
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChange
|
|
57
43
|
*/
|
|
58
44
|
OnChange(self: DIconBrowser): void;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface DIconBrowser {
|
|
62
45
|
/**
|
|
63
46
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
64
47
|
*
|
|
@@ -69,36 +52,24 @@ interface DIconBrowser {
|
|
|
69
52
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:OnChangeInternal
|
|
70
53
|
*/
|
|
71
54
|
OnChangeInternal(self: DIconBrowser): void;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface DIconBrowser {
|
|
75
55
|
/**
|
|
76
56
|
* Scrolls the browser to the selected icon
|
|
77
57
|
* @realm client and menu
|
|
78
58
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:ScrollToSelected
|
|
79
59
|
*/
|
|
80
60
|
ScrollToSelected(self: DIconBrowser): void;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface DIconBrowser {
|
|
84
61
|
/**
|
|
85
62
|
* Selects an icon from file path
|
|
86
63
|
* @realm client and menu
|
|
87
64
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SelectIcon
|
|
88
65
|
*/
|
|
89
66
|
SelectIcon(self: DIconBrowser, icon: string): void;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface DIconBrowser {
|
|
93
67
|
/**
|
|
94
68
|
* Sets whether or not the browser should automatically fill itself with icons.
|
|
95
69
|
* @realm client and menu
|
|
96
70
|
* @source https://wiki.facepunch.com/gmod/DIconBrowser:SetManual
|
|
97
71
|
*/
|
|
98
72
|
SetManual(self: DIconBrowser, manual: boolean): void;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface DIconBrowser {
|
|
102
73
|
/**
|
|
103
74
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
104
75
|
*
|
|
@@ -111,3 +82,13 @@ interface DIconBrowser {
|
|
|
111
82
|
SetSelectedIcon(self: DIconBrowser, str: string): void;
|
|
112
83
|
}
|
|
113
84
|
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
package/types/diconlayout.d.tlua
CHANGED
|
@@ -10,63 +10,43 @@
|
|
|
10
10
|
* @realm client and menu
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/DIconLayout
|
|
12
12
|
*/
|
|
13
|
-
interface DIconLayout extends DDragBase {
|
|
14
|
-
|
|
15
|
-
interface DIconLayout {
|
|
13
|
+
interface DIconLayout extends DDragBase {
|
|
16
14
|
/**
|
|
17
15
|
* Creates a replica of the DIconLayout it is called on.
|
|
18
16
|
* @realm client and menu
|
|
19
17
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:Copy
|
|
20
18
|
*/
|
|
21
19
|
Copy(self: DIconLayout): Panel;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface DIconLayout {
|
|
25
20
|
/**
|
|
26
21
|
* Copies the contents (Child elements) of another [DIconLayout](https://wiki.facepunch.com/gmod/DIconLayout) to itself.
|
|
27
22
|
* @realm client and menu
|
|
28
23
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:CopyContents
|
|
29
24
|
*/
|
|
30
25
|
CopyContents(self: DIconLayout, from: Panel): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface DIconLayout {
|
|
34
26
|
/**
|
|
35
27
|
* Returns the size of the border.
|
|
36
28
|
* @realm client and menu
|
|
37
29
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetBorder
|
|
38
30
|
*/
|
|
39
31
|
GetBorder(self: DIconLayout): number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface DIconLayout {
|
|
43
32
|
/**
|
|
44
33
|
* Returns the direction that it will be layed out, using the DOCK enumerations.
|
|
45
34
|
* @realm client and menu
|
|
46
35
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetLayoutDir
|
|
47
36
|
*/
|
|
48
37
|
GetLayoutDir(self: DIconLayout): number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface DIconLayout {
|
|
52
38
|
/**
|
|
53
39
|
* Returns the distance between two 'icons' on the X axis.
|
|
54
40
|
* @realm client and menu
|
|
55
41
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceX
|
|
56
42
|
*/
|
|
57
43
|
GetSpaceX(self: DIconLayout): number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface DIconLayout {
|
|
61
44
|
/**
|
|
62
45
|
* Returns distance between two "Icons" on the Y axis.
|
|
63
46
|
* @realm client and menu
|
|
64
47
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetSpaceY
|
|
65
48
|
*/
|
|
66
49
|
GetSpaceY(self: DIconLayout): number;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface DIconLayout {
|
|
70
50
|
/**
|
|
71
51
|
* Returns whether the icon layout will stretch its height to fit all the children.
|
|
72
52
|
*
|
|
@@ -76,9 +56,6 @@ interface DIconLayout {
|
|
|
76
56
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchHeight
|
|
77
57
|
*/
|
|
78
58
|
GetStretchHeight(self: DIconLayout): boolean;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface DIconLayout {
|
|
82
59
|
/**
|
|
83
60
|
* Returns whether the icon layout will stretch its width to fit all the children.
|
|
84
61
|
*
|
|
@@ -88,18 +65,12 @@ interface DIconLayout {
|
|
|
88
65
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:GetStretchWidth
|
|
89
66
|
*/
|
|
90
67
|
GetStretchWidth(self: DIconLayout): boolean;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface DIconLayout {
|
|
94
68
|
/**
|
|
95
69
|
* 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
70
|
* @realm client and menu
|
|
97
71
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:Layout
|
|
98
72
|
*/
|
|
99
73
|
Layout(self: DIconLayout): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface DIconLayout {
|
|
103
74
|
/**
|
|
104
75
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
105
76
|
*
|
|
@@ -110,9 +81,6 @@ interface DIconLayout {
|
|
|
110
81
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_LEFT
|
|
111
82
|
*/
|
|
112
83
|
LayoutIcons_LEFT(self: DIconLayout): void;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface DIconLayout {
|
|
116
84
|
/**
|
|
117
85
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
118
86
|
*
|
|
@@ -123,18 +91,12 @@ interface DIconLayout {
|
|
|
123
91
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:LayoutIcons_TOP
|
|
124
92
|
*/
|
|
125
93
|
LayoutIcons_TOP(self: DIconLayout): void;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
interface DIconLayout {
|
|
129
94
|
/**
|
|
130
95
|
* 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
96
|
* @realm client and menu
|
|
132
97
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetBorder
|
|
133
98
|
*/
|
|
134
99
|
SetBorder(self: DIconLayout, width: number): void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface DIconLayout {
|
|
138
100
|
/**
|
|
139
101
|
* Sets the direction that it will be layed out, using the [Enums/DOCK](https://wiki.facepunch.com/gmod/Enums/DOCK).
|
|
140
102
|
*
|
|
@@ -144,27 +106,18 @@ interface DIconLayout {
|
|
|
144
106
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetLayoutDir
|
|
145
107
|
*/
|
|
146
108
|
SetLayoutDir(self: DIconLayout, direction: number): void;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface DIconLayout {
|
|
150
109
|
/**
|
|
151
110
|
* 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
111
|
* @realm client and menu
|
|
153
112
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceX
|
|
154
113
|
*/
|
|
155
114
|
SetSpaceX(self: DIconLayout, xSpacing: number): void;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface DIconLayout {
|
|
159
115
|
/**
|
|
160
116
|
* 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
117
|
* @realm client and menu
|
|
162
118
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetSpaceY
|
|
163
119
|
*/
|
|
164
120
|
SetSpaceY(self: DIconLayout, ySpacing: number): void;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface DIconLayout {
|
|
168
121
|
/**
|
|
169
122
|
* If set to true, the icon layout will stretch its height to fit all the children.
|
|
170
123
|
*
|
|
@@ -174,9 +127,6 @@ interface DIconLayout {
|
|
|
174
127
|
* @source https://wiki.facepunch.com/gmod/DIconLayout:SetStretchHeight
|
|
175
128
|
*/
|
|
176
129
|
SetStretchHeight(self: DIconLayout, do_stretch: boolean): void;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface DIconLayout {
|
|
180
130
|
/**
|
|
181
131
|
* If set to true, the icon layout will stretch its width to fit all the children.
|
|
182
132
|
*
|
|
@@ -188,3 +138,20 @@ interface DIconLayout {
|
|
|
188
138
|
SetStretchWidth(self: DIconLayout, stretchW: boolean): void;
|
|
189
139
|
}
|
|
190
140
|
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|