@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
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
* @realm client and menu
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/DListView_Line
|
|
11
11
|
*/
|
|
12
|
-
interface DListView_Line extends Panel {
|
|
13
|
-
|
|
14
|
-
interface DListView_Line {
|
|
12
|
+
interface DListView_Line extends Panel {
|
|
15
13
|
/**
|
|
16
14
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
17
15
|
*
|
|
@@ -22,18 +20,14 @@ interface DListView_Line {
|
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:DataLayout
|
|
23
21
|
*/
|
|
24
22
|
DataLayout(self: DListView_Line, pnl: DListView): void;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface DListView_Line {
|
|
28
24
|
/**
|
|
29
25
|
* Returns whether this line is odd or even in the list. This is internally used (and set) to change the looks of every other line.
|
|
30
26
|
* @realm client and menu
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetAltLine
|
|
32
28
|
*/
|
|
33
29
|
GetAltLine(self: DListView_Line): boolean;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface DListView_Line {
|
|
37
31
|
/**
|
|
38
32
|
* Gets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
|
|
39
33
|
*
|
|
@@ -43,27 +37,21 @@ interface DListView_Line {
|
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetColumnText
|
|
44
38
|
*/
|
|
45
39
|
GetColumnText(self: DListView_Line, column: number): string;
|
|
46
|
-
}
|
|
47
40
|
|
|
48
|
-
interface DListView_Line {
|
|
49
41
|
/**
|
|
50
42
|
* Returns the ID of this line, set automatically in [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
|
|
51
43
|
* @realm client and menu
|
|
52
44
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetID
|
|
53
45
|
*/
|
|
54
46
|
GetID(self: DListView_Line): number;
|
|
55
|
-
}
|
|
56
47
|
|
|
57
|
-
interface DListView_Line {
|
|
58
48
|
/**
|
|
59
49
|
* Returns the parent [DListView](https://wiki.facepunch.com/gmod/DListView) of this line.
|
|
60
50
|
* @realm client and menu
|
|
61
51
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetListView
|
|
62
52
|
*/
|
|
63
53
|
GetListView(self: DListView_Line): DListView;
|
|
64
|
-
}
|
|
65
54
|
|
|
66
|
-
interface DListView_Line {
|
|
67
55
|
/**
|
|
68
56
|
* Returns the data stored on given cell of this line.
|
|
69
57
|
*
|
|
@@ -72,18 +60,14 @@ interface DListView_Line {
|
|
|
72
60
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetSortValue
|
|
73
61
|
*/
|
|
74
62
|
GetSortValue(self: DListView_Line, column: number): any;
|
|
75
|
-
}
|
|
76
63
|
|
|
77
|
-
interface DListView_Line {
|
|
78
64
|
/**
|
|
79
65
|
* Returns whether this line is selected.
|
|
80
66
|
* @realm client and menu
|
|
81
67
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:IsLineSelected
|
|
82
68
|
*/
|
|
83
69
|
IsLineSelected(self: DListView_Line): boolean;
|
|
84
|
-
}
|
|
85
70
|
|
|
86
|
-
interface DListView_Line {
|
|
87
71
|
/**
|
|
88
72
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
89
73
|
*
|
|
@@ -92,18 +76,14 @@ interface DListView_Line {
|
|
|
92
76
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetAltLine
|
|
93
77
|
*/
|
|
94
78
|
SetAltLine(self: DListView_Line, alt: boolean): void;
|
|
95
|
-
}
|
|
96
79
|
|
|
97
|
-
interface DListView_Line {
|
|
98
80
|
/**
|
|
99
81
|
* Sets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
|
|
100
82
|
* @realm client and menu
|
|
101
83
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetColumnText
|
|
102
84
|
*/
|
|
103
85
|
SetColumnText(self: DListView_Line, column: number, value: string): DLabel;
|
|
104
|
-
}
|
|
105
86
|
|
|
106
|
-
interface DListView_Line {
|
|
107
87
|
/**
|
|
108
88
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
109
89
|
*
|
|
@@ -113,9 +93,7 @@ interface DListView_Line {
|
|
|
113
93
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetID
|
|
114
94
|
*/
|
|
115
95
|
SetID(self: DListView_Line, id: number): void;
|
|
116
|
-
}
|
|
117
96
|
|
|
118
|
-
interface DListView_Line {
|
|
119
97
|
/**
|
|
120
98
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
121
99
|
*
|
|
@@ -125,9 +103,7 @@ interface DListView_Line {
|
|
|
125
103
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetListView
|
|
126
104
|
*/
|
|
127
105
|
SetListView(self: DListView_Line, pnl: DListView): void;
|
|
128
|
-
}
|
|
129
106
|
|
|
130
|
-
interface DListView_Line {
|
|
131
107
|
/**
|
|
132
108
|
* Allows you to store data per column.
|
|
133
109
|
*
|
|
@@ -137,4 +113,3 @@ interface DListView_Line {
|
|
|
137
113
|
*/
|
|
138
114
|
SetSortValue(self: DListView_Line, column: number, data: any): void;
|
|
139
115
|
}
|
|
140
|
-
|
package/types/dmenu.d.tlua
CHANGED
|
@@ -5,18 +5,14 @@
|
|
|
5
5
|
* @realm client and menu
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DMenu
|
|
7
7
|
*/
|
|
8
|
-
interface DMenu extends DScrollPanel {
|
|
9
|
-
|
|
10
|
-
interface DMenu {
|
|
8
|
+
interface DMenu extends DScrollPanel {
|
|
11
9
|
/**
|
|
12
10
|
* Creates a [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) and adds it as an option into the menu. Checking and unchecking the option will alter the given console variable's value.
|
|
13
11
|
* @realm client and menu
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddCVar
|
|
15
13
|
*/
|
|
16
14
|
AddCVar(self: DMenu, strText: string, convar: string, on: string, off: string, funcFunction?: (pnl: Panel) => void): Panel;
|
|
17
|
-
}
|
|
18
15
|
|
|
19
|
-
interface DMenu {
|
|
20
16
|
/**
|
|
21
17
|
* Add an option to the DMenu.
|
|
22
18
|
* @realm client
|
|
@@ -24,10 +20,7 @@ interface DMenu {
|
|
|
24
20
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddOption
|
|
25
21
|
*/
|
|
26
22
|
AddOption(self: DMenu, name: string, func?: function): DMenuOption;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
23
|
|
|
30
|
-
interface DMenu {
|
|
31
24
|
/**
|
|
32
25
|
* Adds a panel to the DMenu as if it were an option. This invokes
|
|
33
26
|
* DScrollPanel:AddItem and will not create a new panel if a class name is
|
|
@@ -37,19 +30,14 @@ interface DMenu {
|
|
|
37
30
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddPanel
|
|
38
31
|
*/
|
|
39
32
|
AddPanel<T extends Panel>(self: DMenu, pnl: T): void;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
33
|
|
|
43
|
-
interface DMenu {
|
|
44
34
|
/**
|
|
45
35
|
* Adds a horizontal line spacer.
|
|
46
36
|
* @realm client and menu
|
|
47
37
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddSpacer
|
|
48
38
|
*/
|
|
49
39
|
AddSpacer(self: DMenu): void;
|
|
50
|
-
}
|
|
51
40
|
|
|
52
|
-
interface DMenu {
|
|
53
41
|
/**
|
|
54
42
|
* Add a sub menu to the DMenu.
|
|
55
43
|
* @realm client
|
|
@@ -57,10 +45,7 @@ interface DMenu {
|
|
|
57
45
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddSubMenu
|
|
58
46
|
*/
|
|
59
47
|
AddSubMenu(self: DMenu, Name: string, func?: function): (DMenu, DMenuOption);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
48
|
|
|
63
|
-
interface DMenu {
|
|
64
49
|
/**
|
|
65
50
|
* Clears all highlights made by [DMenu:HighlightItem](https://wiki.facepunch.com/gmod/DMenu:HighlightItem).
|
|
66
51
|
*
|
|
@@ -70,9 +55,7 @@ interface DMenu {
|
|
|
70
55
|
* @source https://wiki.facepunch.com/gmod/DMenu:ClearHighlights
|
|
71
56
|
*/
|
|
72
57
|
ClearHighlights(self: DMenu): void;
|
|
73
|
-
}
|
|
74
58
|
|
|
75
|
-
interface DMenu {
|
|
76
59
|
/**
|
|
77
60
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
78
61
|
*
|
|
@@ -83,9 +66,7 @@ interface DMenu {
|
|
|
83
66
|
* @source https://wiki.facepunch.com/gmod/DMenu:CloseSubMenu
|
|
84
67
|
*/
|
|
85
68
|
CloseSubMenu(self: DMenu, menu: Panel): void;
|
|
86
|
-
}
|
|
87
69
|
|
|
88
|
-
interface DMenu {
|
|
89
70
|
/**
|
|
90
71
|
* Set by [DMenu:SetDeleteSelf](https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf)
|
|
91
72
|
*
|
|
@@ -93,9 +74,7 @@ interface DMenu {
|
|
|
93
74
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDeleteSelf
|
|
94
75
|
*/
|
|
95
76
|
GetDeleteSelf(self: DMenu): boolean;
|
|
96
|
-
}
|
|
97
77
|
|
|
98
|
-
interface DMenu {
|
|
99
78
|
/**
|
|
100
79
|
* Returns the value set by [DMenu:SetDrawBorder](https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder).
|
|
101
80
|
*
|
|
@@ -103,9 +82,7 @@ interface DMenu {
|
|
|
103
82
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDrawBorder
|
|
104
83
|
*/
|
|
105
84
|
GetDrawBorder(self: DMenu): boolean;
|
|
106
|
-
}
|
|
107
85
|
|
|
108
|
-
interface DMenu {
|
|
109
86
|
/**
|
|
110
87
|
* Returns whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color or not.
|
|
111
88
|
*
|
|
@@ -115,27 +92,21 @@ interface DMenu {
|
|
|
115
92
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDrawColumn
|
|
116
93
|
*/
|
|
117
94
|
GetDrawColumn(self: DMenu): boolean;
|
|
118
|
-
}
|
|
119
95
|
|
|
120
|
-
interface DMenu {
|
|
121
96
|
/**
|
|
122
97
|
* Returns the maximum height of the [DMenu](https://wiki.facepunch.com/gmod/DMenu).
|
|
123
98
|
* @realm client and menu
|
|
124
99
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetMaxHeight
|
|
125
100
|
*/
|
|
126
101
|
GetMaxHeight(self: DMenu): number;
|
|
127
|
-
}
|
|
128
102
|
|
|
129
|
-
interface DMenu {
|
|
130
103
|
/**
|
|
131
104
|
* Returns the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu) in pixels
|
|
132
105
|
* @realm client and menu
|
|
133
106
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetMinimumWidth
|
|
134
107
|
*/
|
|
135
108
|
GetMinimumWidth(self: DMenu): number;
|
|
136
|
-
}
|
|
137
109
|
|
|
138
|
-
interface DMenu {
|
|
139
110
|
/**
|
|
140
111
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
141
112
|
*
|
|
@@ -148,9 +119,7 @@ interface DMenu {
|
|
|
148
119
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetOpenSubMenu
|
|
149
120
|
*/
|
|
150
121
|
GetOpenSubMenu(self: DMenu): Panel;
|
|
151
|
-
}
|
|
152
122
|
|
|
153
|
-
interface DMenu {
|
|
154
123
|
/**
|
|
155
124
|
* Highlights selected item in the [DMenu](https://wiki.facepunch.com/gmod/DMenu) by setting the item's key "Highlight" to true.
|
|
156
125
|
*
|
|
@@ -160,36 +129,28 @@ interface DMenu {
|
|
|
160
129
|
* @source https://wiki.facepunch.com/gmod/DMenu:HighlightItem
|
|
161
130
|
*/
|
|
162
131
|
HighlightItem(self: DMenu, item: Panel): void;
|
|
163
|
-
}
|
|
164
132
|
|
|
165
|
-
interface DMenu {
|
|
166
133
|
/**
|
|
167
134
|
* Opens the [DMenu](https://wiki.facepunch.com/gmod/DMenu) at given position.
|
|
168
135
|
* @realm client and menu
|
|
169
136
|
* @source https://wiki.facepunch.com/gmod/DMenu:Open
|
|
170
137
|
*/
|
|
171
138
|
Open(self: DMenu, x?: number, y?: number, skipanimation?: any, ownerpanel?: Panel): void;
|
|
172
|
-
}
|
|
173
139
|
|
|
174
|
-
interface DMenu {
|
|
175
140
|
/**
|
|
176
141
|
* Closes any active sub menus, and opens a new one.
|
|
177
142
|
* @realm client and menu
|
|
178
143
|
* @source https://wiki.facepunch.com/gmod/DMenu:OpenSubMenu
|
|
179
144
|
*/
|
|
180
145
|
OpenSubMenu(self: DMenu, item: Panel, menu?: Panel): void;
|
|
181
|
-
}
|
|
182
146
|
|
|
183
|
-
interface DMenu {
|
|
184
147
|
/**
|
|
185
148
|
* Called when a option has been selected
|
|
186
149
|
* @realm client and menu
|
|
187
150
|
* @source https://wiki.facepunch.com/gmod/DMenu:OptionSelected
|
|
188
151
|
*/
|
|
189
152
|
OptionSelected(self: DMenu, option: Panel, optionText: string): void;
|
|
190
|
-
}
|
|
191
153
|
|
|
192
|
-
interface DMenu {
|
|
193
154
|
/**
|
|
194
155
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
195
156
|
*
|
|
@@ -200,9 +161,7 @@ interface DMenu {
|
|
|
200
161
|
* @source https://wiki.facepunch.com/gmod/DMenu:OptionSelectedInternal
|
|
201
162
|
*/
|
|
202
163
|
OptionSelectedInternal(self: DMenu, option: Panel): void;
|
|
203
|
-
}
|
|
204
164
|
|
|
205
|
-
interface DMenu {
|
|
206
165
|
/**
|
|
207
166
|
* Set to true by default. IF set to true, the menu will be deleted when it is closed, not simply hidden.
|
|
208
167
|
*
|
|
@@ -212,9 +171,7 @@ interface DMenu {
|
|
|
212
171
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf
|
|
213
172
|
*/
|
|
214
173
|
SetDeleteSelf(self: DMenu, newState: boolean): void;
|
|
215
|
-
}
|
|
216
174
|
|
|
217
|
-
interface DMenu {
|
|
218
175
|
/**
|
|
219
176
|
* Does nothing.
|
|
220
177
|
*
|
|
@@ -222,36 +179,28 @@ interface DMenu {
|
|
|
222
179
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder
|
|
223
180
|
*/
|
|
224
181
|
SetDrawBorder(self: DMenu, bool: boolean): void;
|
|
225
|
-
}
|
|
226
182
|
|
|
227
|
-
interface DMenu {
|
|
228
183
|
/**
|
|
229
184
|
* Sets whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color.
|
|
230
185
|
* @realm client and menu
|
|
231
186
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDrawColumn
|
|
232
187
|
*/
|
|
233
188
|
SetDrawColumn(self: DMenu, draw: boolean): void;
|
|
234
|
-
}
|
|
235
189
|
|
|
236
|
-
interface DMenu {
|
|
237
190
|
/**
|
|
238
191
|
* Sets the maximum height the [DMenu](https://wiki.facepunch.com/gmod/DMenu) can have. If the height of all menu items exceed this value, a scroll bar will be automatically added.
|
|
239
192
|
* @realm client and menu
|
|
240
193
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetMaxHeight
|
|
241
194
|
*/
|
|
242
195
|
SetMaxHeight(self: DMenu, maxHeight: number): void;
|
|
243
|
-
}
|
|
244
196
|
|
|
245
|
-
interface DMenu {
|
|
246
197
|
/**
|
|
247
198
|
* Sets the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu). The menu will be stretched to match the given value.
|
|
248
199
|
* @realm client and menu
|
|
249
200
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetMinimumWidth
|
|
250
201
|
*/
|
|
251
202
|
SetMinimumWidth(self: DMenu, minWidth: number): void;
|
|
252
|
-
}
|
|
253
203
|
|
|
254
|
-
interface DMenu {
|
|
255
204
|
/**
|
|
256
205
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
257
206
|
*
|
|
@@ -263,4 +212,3 @@ interface DMenu {
|
|
|
263
212
|
*/
|
|
264
213
|
SetOpenSubMenu(self: DMenu, item: Panel): void;
|
|
265
214
|
}
|
|
266
|
-
|
package/types/dmenubar.d.tlua
CHANGED
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* @realm client and menu
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DMenuBar
|
|
7
7
|
*/
|
|
8
|
-
interface DMenuBar extends DPanel {
|
|
9
|
-
|
|
10
|
-
interface DMenuBar {
|
|
8
|
+
interface DMenuBar extends DPanel {
|
|
11
9
|
/**
|
|
12
10
|
* Creates a new menu panel on the menu bar.
|
|
13
11
|
* @realm client
|
|
@@ -15,10 +13,7 @@ interface DMenuBar {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/DMenuBar:AddMenu
|
|
16
14
|
*/
|
|
17
15
|
AddMenu(self: DMenuBar, label: string): DMenu;
|
|
18
|
-
}
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
interface DMenuBar {
|
|
22
17
|
/**
|
|
23
18
|
* Retrieves or creates a menu panel on the menu bar.
|
|
24
19
|
* @realm client
|
|
@@ -26,10 +21,7 @@ interface DMenuBar {
|
|
|
26
21
|
* @source https://wiki.facepunch.com/gmod/DMenuBar:AddOrGetMenu
|
|
27
22
|
*/
|
|
28
23
|
AddOrGetMenu(self: DMenuBar, label: string): DMenu;
|
|
29
|
-
}
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
interface DMenuBar {
|
|
33
25
|
/**
|
|
34
26
|
* Returns the currently opened menu, if any.
|
|
35
27
|
* @realm client
|
|
@@ -38,5 +30,3 @@ interface DMenuBar {
|
|
|
38
30
|
*/
|
|
39
31
|
GetOpenMenu(self: DMenuBar): DMenu | nil;
|
|
40
32
|
}
|
|
41
|
-
|
|
42
|
-
|
package/types/dmenuoption.d.tlua
CHANGED
|
@@ -9,45 +9,35 @@
|
|
|
9
9
|
* @realm client and menu
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/DMenuOption
|
|
11
11
|
*/
|
|
12
|
-
interface DMenuOption extends DButton {
|
|
13
|
-
|
|
14
|
-
interface DMenuOption {
|
|
12
|
+
interface DMenuOption extends DButton {
|
|
15
13
|
/**
|
|
16
14
|
* Creates a sub [DMenu](https://wiki.facepunch.com/gmod/DMenu) and returns it. Has no duplicate call protection.
|
|
17
15
|
* @realm client and menu
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:AddSubMenu
|
|
19
17
|
*/
|
|
20
18
|
AddSubMenu(self: DMenuOption): Panel;
|
|
21
|
-
}
|
|
22
19
|
|
|
23
|
-
interface DMenuOption {
|
|
24
20
|
/**
|
|
25
21
|
* Returns the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
|
|
26
22
|
* @realm client and menu
|
|
27
23
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetChecked
|
|
28
24
|
*/
|
|
29
25
|
GetChecked(self: DMenuOption): boolean;
|
|
30
|
-
}
|
|
31
26
|
|
|
32
|
-
interface DMenuOption {
|
|
33
27
|
/**
|
|
34
28
|
* Returns whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
|
|
35
29
|
* @realm client and menu
|
|
36
30
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable
|
|
37
31
|
*/
|
|
38
32
|
GetIsCheckable(self: DMenuOption): boolean;
|
|
39
|
-
}
|
|
40
33
|
|
|
41
|
-
interface DMenuOption {
|
|
42
34
|
/**
|
|
43
35
|
* Returns which [DMenu](https://wiki.facepunch.com/gmod/DMenu) this option belongs.
|
|
44
36
|
* @realm client and menu
|
|
45
37
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetMenu
|
|
46
38
|
*/
|
|
47
39
|
GetMenu(self: DMenuOption): Panel;
|
|
48
|
-
}
|
|
49
40
|
|
|
50
|
-
interface DMenuOption {
|
|
51
41
|
/**
|
|
52
42
|
* Returns whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button, set by [DMenuOption:SetRadio](https://wiki.facepunch.com/gmod/DMenuOption:SetRadio).
|
|
53
43
|
*
|
|
@@ -55,18 +45,14 @@ interface DMenuOption {
|
|
|
55
45
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetRadio
|
|
56
46
|
*/
|
|
57
47
|
GetRadio(self: DMenuOption): boolean;
|
|
58
|
-
}
|
|
59
48
|
|
|
60
|
-
interface DMenuOption {
|
|
61
49
|
/**
|
|
62
50
|
* Called whenever the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption)'s checked state changes.
|
|
63
51
|
* @realm client and menu
|
|
64
52
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:OnChecked
|
|
65
53
|
*/
|
|
66
54
|
OnChecked(self: DMenuOption, checked: boolean): void;
|
|
67
|
-
}
|
|
68
55
|
|
|
69
|
-
interface DMenuOption {
|
|
70
56
|
/**
|
|
71
57
|
* Sets the checked state of the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
|
|
72
58
|
*
|
|
@@ -76,9 +62,7 @@ interface DMenuOption {
|
|
|
76
62
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetChecked
|
|
77
63
|
*/
|
|
78
64
|
SetChecked(self: DMenuOption, checked: boolean): void;
|
|
79
|
-
}
|
|
80
65
|
|
|
81
|
-
interface DMenuOption {
|
|
82
66
|
/**
|
|
83
67
|
* Sets whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
|
|
84
68
|
*
|
|
@@ -87,9 +71,7 @@ interface DMenuOption {
|
|
|
87
71
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetIsCheckable
|
|
88
72
|
*/
|
|
89
73
|
SetIsCheckable(self: DMenuOption, checkable: boolean): void;
|
|
90
|
-
}
|
|
91
74
|
|
|
92
|
-
interface DMenuOption {
|
|
93
75
|
/**
|
|
94
76
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
95
77
|
* Used to set the [DMenu](https://wiki.facepunch.com/gmod/DMenu) for this option.
|
|
@@ -97,9 +79,7 @@ interface DMenuOption {
|
|
|
97
79
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetMenu
|
|
98
80
|
*/
|
|
99
81
|
SetMenu(self: DMenuOption, pnl: Panel): void;
|
|
100
|
-
}
|
|
101
82
|
|
|
102
|
-
interface DMenuOption {
|
|
103
83
|
/**
|
|
104
84
|
* Sets whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button.
|
|
105
85
|
*
|
|
@@ -109,9 +89,7 @@ interface DMenuOption {
|
|
|
109
89
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetRadio
|
|
110
90
|
*/
|
|
111
91
|
SetRadio(self: DMenuOption, checked: boolean): void;
|
|
112
|
-
}
|
|
113
92
|
|
|
114
|
-
interface DMenuOption {
|
|
115
93
|
/**
|
|
116
94
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
117
95
|
*
|
|
@@ -122,9 +100,7 @@ interface DMenuOption {
|
|
|
122
100
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetSubMenu
|
|
123
101
|
*/
|
|
124
102
|
SetSubMenu(self: DMenuOption, menu: Panel): void;
|
|
125
|
-
}
|
|
126
103
|
|
|
127
|
-
interface DMenuOption {
|
|
128
104
|
/**
|
|
129
105
|
* Toggles the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption). Does not respect [DMenuOption:GetIsCheckable](https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable).
|
|
130
106
|
* @realm client and menu
|
|
@@ -132,4 +108,3 @@ interface DMenuOption {
|
|
|
132
108
|
*/
|
|
133
109
|
ToggleCheck(self: DMenuOption): void;
|
|
134
110
|
}
|
|
135
|
-
|
|
@@ -15,45 +15,35 @@
|
|
|
15
15
|
* @realm client
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar
|
|
17
17
|
*/
|
|
18
|
-
interface DMenuOptionCVar extends DMenuOption {
|
|
19
|
-
|
|
20
|
-
interface DMenuOptionCVar {
|
|
18
|
+
interface DMenuOptionCVar extends DMenuOption {
|
|
21
19
|
/**
|
|
22
20
|
* Returns the [console variable](https://wiki.facepunch.com/gmod/ConVars) used by the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar).
|
|
23
21
|
* @realm client
|
|
24
22
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetConVar
|
|
25
23
|
*/
|
|
26
24
|
GetConVar(self: DMenuOptionCVar): string;
|
|
27
|
-
}
|
|
28
25
|
|
|
29
|
-
interface DMenuOptionCVar {
|
|
30
26
|
/**
|
|
31
27
|
* Returns the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is not checked.
|
|
32
28
|
* @realm client
|
|
33
29
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOff
|
|
34
30
|
*/
|
|
35
31
|
GetValueOff(self: DMenuOptionCVar): string;
|
|
36
|
-
}
|
|
37
32
|
|
|
38
|
-
interface DMenuOptionCVar {
|
|
39
33
|
/**
|
|
40
34
|
* Return the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is checked.
|
|
41
35
|
* @realm client
|
|
42
36
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOn
|
|
43
37
|
*/
|
|
44
38
|
GetValueOn(self: DMenuOptionCVar): string;
|
|
45
|
-
}
|
|
46
39
|
|
|
47
|
-
interface DMenuOptionCVar {
|
|
48
40
|
/**
|
|
49
41
|
* Sets the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is not checked.
|
|
50
42
|
* @realm client
|
|
51
43
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:SetValueOff
|
|
52
44
|
*/
|
|
53
45
|
SetValueOff(self: DMenuOptionCVar, value: string): void;
|
|
54
|
-
}
|
|
55
46
|
|
|
56
|
-
interface DMenuOptionCVar {
|
|
57
47
|
/**
|
|
58
48
|
* Sets the value of the [console variable](https://wiki.facepunch.com/gmod/ConVars) when the [DMenuOptionCVar](https://wiki.facepunch.com/gmod/DMenuOptionCVar) is checked.
|
|
59
49
|
* @realm client
|
|
@@ -61,4 +51,3 @@ interface DMenuOptionCVar {
|
|
|
61
51
|
*/
|
|
62
52
|
SetValueOn(self: DMenuOptionCVar, value: string): void;
|
|
63
53
|
}
|
|
64
|
-
|