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