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