@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
|
@@ -5,36 +5,42 @@ interface DScrollPanel extends DPanel {
|
|
|
5
5
|
pnlCanvas: Panel;
|
|
6
6
|
/** The vertical scroll bar. */
|
|
7
7
|
VBar: DVScrollBar;
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Parents the passed panel to the DScrollPanel's canvas.
|
|
10
11
|
* @realm client and menu
|
|
11
12
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:AddItem
|
|
12
13
|
*/
|
|
13
14
|
AddItem(self: DScrollPanel, pnl: Panel): void;
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* Returns the canvas ( The panel all child panels are parented to ) of the DScrollPanel.
|
|
16
18
|
* @realm client and menu
|
|
17
19
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:GetCanvas
|
|
18
20
|
*/
|
|
19
21
|
GetCanvas(self: DScrollPanel): Panel;
|
|
22
|
+
|
|
20
23
|
/**
|
|
21
24
|
* Gets the [DScrollPanel](https://wiki.facepunch.com/gmod/DScrollPanel)s padding, set by [DScrollPanel:SetPadding](https://wiki.facepunch.com/gmod/DScrollPanel:SetPadding).
|
|
22
25
|
* @realm client and menu
|
|
23
26
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:GetPadding
|
|
24
27
|
*/
|
|
25
28
|
GetPadding(self: DScrollPanel): number;
|
|
29
|
+
|
|
26
30
|
/**
|
|
27
31
|
* Returns the vertical scroll bar of the panel.
|
|
28
32
|
* @realm client and menu
|
|
29
33
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:GetVBar
|
|
30
34
|
*/
|
|
31
35
|
GetVBar(self: DScrollPanel): DVScrollBar;
|
|
36
|
+
|
|
32
37
|
/**
|
|
33
38
|
* Return the width of the DScrollPanel's canvas.
|
|
34
39
|
* @realm client and menu
|
|
35
40
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:InnerWidth
|
|
36
41
|
*/
|
|
37
42
|
InnerWidth(self: DScrollPanel): number;
|
|
43
|
+
|
|
38
44
|
/**
|
|
39
45
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
46
|
*
|
|
@@ -45,6 +51,7 @@ interface DScrollPanel extends DPanel {
|
|
|
45
51
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:PerformLayoutInternal
|
|
46
52
|
*/
|
|
47
53
|
PerformLayoutInternal(self: DScrollPanel): void;
|
|
54
|
+
|
|
48
55
|
/**
|
|
49
56
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
50
57
|
*
|
|
@@ -55,12 +62,14 @@ interface DScrollPanel extends DPanel {
|
|
|
55
62
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:Rebuild
|
|
56
63
|
*/
|
|
57
64
|
Rebuild(self: DScrollPanel): void;
|
|
65
|
+
|
|
58
66
|
/**
|
|
59
67
|
* Scrolls to the given child
|
|
60
68
|
* @realm client and menu
|
|
61
69
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:ScrollToChild
|
|
62
70
|
*/
|
|
63
71
|
ScrollToChild(self: DScrollPanel, panel: Panel): void;
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
66
75
|
*
|
|
@@ -70,6 +79,7 @@ interface DScrollPanel extends DPanel {
|
|
|
70
79
|
* @source https://wiki.facepunch.com/gmod/DScrollPanel:SetCanvas
|
|
71
80
|
*/
|
|
72
81
|
SetCanvas(self: DScrollPanel, canvas: Panel): void;
|
|
82
|
+
|
|
73
83
|
/**
|
|
74
84
|
* Sets the DScrollPanel's padding. This function appears to be unused.
|
|
75
85
|
* @realm client and menu
|
|
@@ -77,14 +87,3 @@ interface DScrollPanel extends DPanel {
|
|
|
77
87
|
*/
|
|
78
88
|
SetPadding(self: DScrollPanel, padding: number): void;
|
|
79
89
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
package/types/dshape.d.tlua
CHANGED
|
@@ -15,12 +15,14 @@ interface DShape extends DPanel {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/DShape:GetBorderColor
|
|
16
16
|
*/
|
|
17
17
|
GetBorderColor(self: DShape): Color;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Returns the color set to display the shape with.
|
|
20
21
|
* @realm client
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/DShape:GetColor
|
|
22
23
|
*/
|
|
23
24
|
GetColor(self: DShape): Color;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Returns the current type of shape this panel is set to display.
|
|
26
28
|
*
|
|
@@ -30,6 +32,7 @@ interface DShape extends DPanel {
|
|
|
30
32
|
* @source https://wiki.facepunch.com/gmod/DShape:GetType
|
|
31
33
|
*/
|
|
32
34
|
GetType(self: DShape): string;
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Sets the border color of the shape.
|
|
35
38
|
*
|
|
@@ -39,12 +42,14 @@ interface DShape extends DPanel {
|
|
|
39
42
|
* @source https://wiki.facepunch.com/gmod/DShape:SetBorderColor
|
|
40
43
|
*/
|
|
41
44
|
SetBorderColor(self: DShape, clr: Color): void;
|
|
45
|
+
|
|
42
46
|
/**
|
|
43
47
|
* Sets the color to display the shape with.
|
|
44
48
|
* @realm client
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/DShape:SetColor
|
|
46
50
|
*/
|
|
47
51
|
SetColor(self: DShape, clr: Color): void;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Sets the shape to be drawn.
|
|
50
55
|
* @realm client
|
|
@@ -52,10 +57,3 @@ interface DShape extends DPanel {
|
|
|
52
57
|
*/
|
|
53
58
|
SetType(self: DShape, type: string): void;
|
|
54
59
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
@@ -13,18 +13,21 @@ interface DSizeToContents extends Panel {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DSizeToContents:GetSizeX
|
|
14
14
|
*/
|
|
15
15
|
GetSizeX(self: DSizeToContents): boolean;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Returns whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents vertically.
|
|
18
19
|
* @realm client and menu
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DSizeToContents:GetSizeY
|
|
20
21
|
*/
|
|
21
22
|
GetSizeY(self: DSizeToContents): boolean;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Sets whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents horizontally. This is `true` by default.
|
|
24
26
|
* @realm client and menu
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/DSizeToContents:SetSizeX
|
|
26
28
|
*/
|
|
27
29
|
SetSizeX(self: DSizeToContents, sizeX: boolean): void;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Sets whether the [DSizeToContents](https://wiki.facepunch.com/gmod/DSizeToContents) panel should size to contents vertically. This is `true` by default.
|
|
30
33
|
* @realm client and menu
|
|
@@ -32,8 +35,3 @@ interface DSizeToContents extends Panel {
|
|
|
32
35
|
*/
|
|
33
36
|
SetSizeY(self: DSizeToContents, sizeY: boolean): void;
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
package/types/dslider.d.tlua
CHANGED
|
@@ -16,6 +16,7 @@ interface DSlider extends Panel {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DSlider:ConVarXNumberThink
|
|
17
17
|
*/
|
|
18
18
|
ConVarXNumberThink(self: DSlider): void;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
21
22
|
*
|
|
@@ -26,12 +27,14 @@ interface DSlider extends Panel {
|
|
|
26
27
|
* @source https://wiki.facepunch.com/gmod/DSlider:ConVarYNumberThink
|
|
27
28
|
*/
|
|
28
29
|
ConVarYNumberThink(self: DSlider): void;
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Identical to [DSlider:IsEditing](https://wiki.facepunch.com/gmod/DSlider:IsEditing)
|
|
31
33
|
* @realm client and menu
|
|
32
34
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetDragging
|
|
33
35
|
*/
|
|
34
36
|
GetDragging(self: DSlider): boolean;
|
|
37
|
+
|
|
35
38
|
/**
|
|
36
39
|
* Returns the draggable panel's lock on the X axis.
|
|
37
40
|
*
|
|
@@ -41,6 +44,7 @@ interface DSlider extends Panel {
|
|
|
41
44
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetLockX
|
|
42
45
|
*/
|
|
43
46
|
GetLockX(self: DSlider): number;
|
|
47
|
+
|
|
44
48
|
/**
|
|
45
49
|
* Returns the draggable panel's lock on the Y axis.
|
|
46
50
|
*
|
|
@@ -50,6 +54,7 @@ interface DSlider extends Panel {
|
|
|
50
54
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetLockY
|
|
51
55
|
*/
|
|
52
56
|
GetLockY(self: DSlider): number;
|
|
57
|
+
|
|
53
58
|
/**
|
|
54
59
|
* Returns the current notch color, set by [DSlider:SetNotchColor](https://wiki.facepunch.com/gmod/DSlider:SetNotchColor)
|
|
55
60
|
* @realm client and menu
|
|
@@ -57,6 +62,7 @@ interface DSlider extends Panel {
|
|
|
57
62
|
* @deprecated Does not affect anything by default.
|
|
58
63
|
*/
|
|
59
64
|
GetNotchColor(self: DSlider): Color;
|
|
65
|
+
|
|
60
66
|
/**
|
|
61
67
|
* Appears to be non functioning, however is still used by panels such as [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
|
|
62
68
|
*
|
|
@@ -64,6 +70,7 @@ interface DSlider extends Panel {
|
|
|
64
70
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetNotches
|
|
65
71
|
*/
|
|
66
72
|
GetNotches(self: DSlider): number;
|
|
73
|
+
|
|
67
74
|
/**
|
|
68
75
|
* Does nothing.
|
|
69
76
|
*
|
|
@@ -71,6 +78,7 @@ interface DSlider extends Panel {
|
|
|
71
78
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetNumSlider
|
|
72
79
|
*/
|
|
73
80
|
GetNumSlider(self: DSlider): any;
|
|
81
|
+
|
|
74
82
|
/**
|
|
75
83
|
* Returns the target position of the draggable "knob" panel of the slider on the X axis.
|
|
76
84
|
*
|
|
@@ -80,6 +88,7 @@ interface DSlider extends Panel {
|
|
|
80
88
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetSlideX
|
|
81
89
|
*/
|
|
82
90
|
GetSlideX(self: DSlider): number;
|
|
91
|
+
|
|
83
92
|
/**
|
|
84
93
|
* Returns the target position of the draggable "knob" panel of the slider on the Y axis.
|
|
85
94
|
*
|
|
@@ -89,6 +98,7 @@ interface DSlider extends Panel {
|
|
|
89
98
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetSlideY
|
|
90
99
|
*/
|
|
91
100
|
GetSlideY(self: DSlider): number;
|
|
101
|
+
|
|
92
102
|
/**
|
|
93
103
|
* Returns the value set by [DSlider:SetTrapInside](https://wiki.facepunch.com/gmod/DSlider:SetTrapInside).
|
|
94
104
|
*
|
|
@@ -96,12 +106,14 @@ interface DSlider extends Panel {
|
|
|
96
106
|
* @source https://wiki.facepunch.com/gmod/DSlider:GetTrapInside
|
|
97
107
|
*/
|
|
98
108
|
GetTrapInside(self: DSlider): boolean;
|
|
109
|
+
|
|
99
110
|
/**
|
|
100
111
|
* Returns true if this element is being edited by the player.
|
|
101
112
|
* @realm client and menu
|
|
102
113
|
* @source https://wiki.facepunch.com/gmod/DSlider:IsEditing
|
|
103
114
|
*/
|
|
104
115
|
IsEditing(self: DSlider): boolean;
|
|
116
|
+
|
|
105
117
|
/**
|
|
106
118
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
107
119
|
*
|
|
@@ -112,12 +124,14 @@ interface DSlider extends Panel {
|
|
|
112
124
|
* @source https://wiki.facepunch.com/gmod/DSlider:OnValuesChangedInternal
|
|
113
125
|
*/
|
|
114
126
|
OnValuesChangedInternal(self: DSlider): void;
|
|
127
|
+
|
|
115
128
|
/**
|
|
116
129
|
* Sets the background for the slider.
|
|
117
130
|
* @realm client and menu
|
|
118
131
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetBackground
|
|
119
132
|
*/
|
|
120
133
|
SetBackground(self: DSlider, path: string): void;
|
|
134
|
+
|
|
121
135
|
/**
|
|
122
136
|
* Sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) to be set when the slider changes on the X axis.
|
|
123
137
|
*
|
|
@@ -125,6 +139,7 @@ interface DSlider extends Panel {
|
|
|
125
139
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetConVarX
|
|
126
140
|
*/
|
|
127
141
|
SetConVarX(self: DSlider, convar: string): void;
|
|
142
|
+
|
|
128
143
|
/**
|
|
129
144
|
* Sets the [ConVar](https://wiki.facepunch.com/gmod/ConVar) to be set when the slider changes on the Y axis.
|
|
130
145
|
*
|
|
@@ -132,6 +147,7 @@ interface DSlider extends Panel {
|
|
|
132
147
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetConVarY
|
|
133
148
|
*/
|
|
134
149
|
SetConVarY(self: DSlider, convar: string): void;
|
|
150
|
+
|
|
135
151
|
/**
|
|
136
152
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
137
153
|
*
|
|
@@ -142,6 +158,7 @@ interface DSlider extends Panel {
|
|
|
142
158
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetDragging
|
|
143
159
|
*/
|
|
144
160
|
SetDragging(self: DSlider, dragging: boolean): void;
|
|
161
|
+
|
|
145
162
|
/**
|
|
146
163
|
* Does nothing.
|
|
147
164
|
*
|
|
@@ -149,6 +166,7 @@ interface DSlider extends Panel {
|
|
|
149
166
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetImage
|
|
150
167
|
*/
|
|
151
168
|
SetImage(self: DSlider): void;
|
|
169
|
+
|
|
152
170
|
/**
|
|
153
171
|
* Does nothing.
|
|
154
172
|
*
|
|
@@ -156,6 +174,7 @@ interface DSlider extends Panel {
|
|
|
156
174
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetImageColor
|
|
157
175
|
*/
|
|
158
176
|
SetImageColor(self: DSlider): void;
|
|
177
|
+
|
|
159
178
|
/**
|
|
160
179
|
* Sets the lock on the X axis.
|
|
161
180
|
*
|
|
@@ -165,6 +184,7 @@ interface DSlider extends Panel {
|
|
|
165
184
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetLockX
|
|
166
185
|
*/
|
|
167
186
|
SetLockX(self: DSlider, lockX?: number): void;
|
|
187
|
+
|
|
168
188
|
/**
|
|
169
189
|
* Sets the lock on the Y axis.
|
|
170
190
|
*
|
|
@@ -174,6 +194,7 @@ interface DSlider extends Panel {
|
|
|
174
194
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetLockY
|
|
175
195
|
*/
|
|
176
196
|
SetLockY(self: DSlider, lockY?: number): void;
|
|
197
|
+
|
|
177
198
|
/**
|
|
178
199
|
* Sets the current notch color, overriding the color set by the derma skin.
|
|
179
200
|
* @realm client and menu
|
|
@@ -181,6 +202,7 @@ interface DSlider extends Panel {
|
|
|
181
202
|
* @deprecated Does not affect anything by default.
|
|
182
203
|
*/
|
|
183
204
|
SetNotchColor(self: DSlider, clr: Color): void;
|
|
205
|
+
|
|
184
206
|
/**
|
|
185
207
|
* Appears to be non functioning, however is still used by panels such as [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
|
|
186
208
|
*
|
|
@@ -188,6 +210,7 @@ interface DSlider extends Panel {
|
|
|
188
210
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetNotches
|
|
189
211
|
*/
|
|
190
212
|
SetNotches(self: DSlider, notches: number): void;
|
|
213
|
+
|
|
191
214
|
/**
|
|
192
215
|
* Does nothing.
|
|
193
216
|
*
|
|
@@ -195,6 +218,7 @@ interface DSlider extends Panel {
|
|
|
195
218
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetNumSlider
|
|
196
219
|
*/
|
|
197
220
|
SetNumSlider(self: DSlider, slider: any): void;
|
|
221
|
+
|
|
198
222
|
/**
|
|
199
223
|
* Used to position the draggable panel of the slider on the X axis.
|
|
200
224
|
*
|
|
@@ -202,6 +226,7 @@ interface DSlider extends Panel {
|
|
|
202
226
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetSlideX
|
|
203
227
|
*/
|
|
204
228
|
SetSlideX(self: DSlider, x: number): void;
|
|
229
|
+
|
|
205
230
|
/**
|
|
206
231
|
* Used to position the draggable panel of the slider on the Y axis.
|
|
207
232
|
*
|
|
@@ -209,6 +234,7 @@ interface DSlider extends Panel {
|
|
|
209
234
|
* @source https://wiki.facepunch.com/gmod/DSlider:SetSlideY
|
|
210
235
|
*/
|
|
211
236
|
SetSlideY(self: DSlider, y: number): void;
|
|
237
|
+
|
|
212
238
|
/**
|
|
213
239
|
* Makes the slider itself, the "knob", trapped within the bounds of the slider panel. Example:
|
|
214
240
|
*
|
|
@@ -219,31 +245,3 @@ interface DSlider extends Panel {
|
|
|
219
245
|
*/
|
|
220
246
|
SetTrapInside(self: DSlider, trap: boolean): void;
|
|
221
247
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
package/types/dsprite.d.tlua
CHANGED
|
@@ -15,42 +15,49 @@ interface DSprite extends DPanel {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/DSprite:GetColor
|
|
16
16
|
*/
|
|
17
17
|
GetColor(self: DSprite): Color;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Returns the value set by [DSprite:SetHandle](https://wiki.facepunch.com/gmod/DSprite:SetHandle)
|
|
20
21
|
* @realm client
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/DSprite:GetHandle
|
|
22
23
|
*/
|
|
23
24
|
GetHandle(self: DSprite): Vector;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Gets the material the sprite is using.
|
|
26
28
|
* @realm client
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/DSprite:GetMaterial
|
|
28
30
|
*/
|
|
29
31
|
GetMaterial(self: DSprite): IMaterial;
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* Gets the 2D rotation angle of the sprite, in the plane of the screen.
|
|
32
35
|
* @realm client
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/DSprite:GetRotation
|
|
34
37
|
*/
|
|
35
38
|
GetRotation(self: DSprite): number;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Sets the color modifier for the sprite.
|
|
38
42
|
* @realm client
|
|
39
43
|
* @source https://wiki.facepunch.com/gmod/DSprite:SetColor
|
|
40
44
|
*/
|
|
41
45
|
SetColor(self: DSprite, color: Color): void;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Seems to be an unused feature. Does nothing.
|
|
44
49
|
* @realm client
|
|
45
50
|
* @source https://wiki.facepunch.com/gmod/DSprite:SetHandle
|
|
46
51
|
*/
|
|
47
52
|
SetHandle(self: DSprite, vec: Vector): void;
|
|
53
|
+
|
|
48
54
|
/**
|
|
49
55
|
* Sets the source material for the sprite.
|
|
50
56
|
* @realm client
|
|
51
57
|
* @source https://wiki.facepunch.com/gmod/DSprite:SetMaterial
|
|
52
58
|
*/
|
|
53
59
|
SetMaterial(self: DSprite, material: IMaterial): void;
|
|
60
|
+
|
|
54
61
|
/**
|
|
55
62
|
* Sets the 2D rotation angle of the sprite, in the plane of the screen.
|
|
56
63
|
* @realm client
|
|
@@ -58,12 +65,3 @@ interface DSprite extends DPanel {
|
|
|
58
65
|
*/
|
|
59
66
|
SetRotation(self: DSprite, ang: number): void;
|
|
60
67
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
package/types/dtab.d.tlua
CHANGED
|
@@ -15,12 +15,14 @@ interface DTab extends DButton {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/DTab:GetPanel
|
|
16
16
|
*/
|
|
17
17
|
GetPanel(self: DTab): Panel;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* The [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet) this tab belongs to.
|
|
20
21
|
* @realm client and menu
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/DTab:GetPropertySheet
|
|
22
23
|
*/
|
|
23
24
|
GetPropertySheet(self: DTab): Panel;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
26
28
|
*
|
|
@@ -30,12 +32,14 @@ interface DTab extends DButton {
|
|
|
30
32
|
* @source https://wiki.facepunch.com/gmod/DTab:GetTabHeight
|
|
31
33
|
*/
|
|
32
34
|
GetTabHeight(self: DTab): number;
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Returns whether the tab is the currently selected tab of the associated [DPropertySheet](https://wiki.facepunch.com/gmod/DPropertySheet).
|
|
35
38
|
* @realm client and menu
|
|
36
39
|
* @source https://wiki.facepunch.com/gmod/DTab:IsActive
|
|
37
40
|
*/
|
|
38
41
|
IsActive(self: DTab): boolean;
|
|
42
|
+
|
|
39
43
|
/**
|
|
40
44
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
41
45
|
* Used internally by [DTab:Setup](https://wiki.facepunch.com/gmod/DTab:Setup).
|
|
@@ -43,6 +47,7 @@ interface DTab extends DButton {
|
|
|
43
47
|
* @source https://wiki.facepunch.com/gmod/DTab:SetPanel
|
|
44
48
|
*/
|
|
45
49
|
SetPanel(self: DTab, pnl: Panel): void;
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
48
53
|
* Used internally by [DTab:Setup](https://wiki.facepunch.com/gmod/DTab:Setup).
|
|
@@ -50,6 +55,7 @@ interface DTab extends DButton {
|
|
|
50
55
|
* @source https://wiki.facepunch.com/gmod/DTab:SetPropertySheet
|
|
51
56
|
*/
|
|
52
57
|
SetPropertySheet(self: DTab, pnl: Panel): void;
|
|
58
|
+
|
|
53
59
|
/**
|
|
54
60
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
55
61
|
* Used internally by [DPropertySheet:AddSheet](https://wiki.facepunch.com/gmod/DPropertySheet:AddSheet).
|
|
@@ -58,11 +64,3 @@ interface DTab extends DButton {
|
|
|
58
64
|
*/
|
|
59
65
|
Setup(self: DTab, label: string, sheet: Panel, pnl: Panel, icon?: string): void;
|
|
60
66
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|