@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
package/types/dmenu.d.tlua
CHANGED
|
@@ -12,6 +12,7 @@ interface DMenu extends DScrollPanel {
|
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddCVar
|
|
13
13
|
*/
|
|
14
14
|
AddCVar(self: DMenu, strText: string, convar: string, on: string, off: string, funcFunction?: (pnl: Panel) => void): Panel;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Add an option to the DMenu.
|
|
17
18
|
* @realm client
|
|
@@ -19,6 +20,7 @@ interface DMenu extends DScrollPanel {
|
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddOption
|
|
20
21
|
*/
|
|
21
22
|
AddOption(self: DMenu, name: string, func?: function): DMenuOption;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Adds a panel to the DMenu as if it were an option. This invokes
|
|
24
26
|
* DScrollPanel:AddItem and will not create a new panel if a class name is
|
|
@@ -28,12 +30,14 @@ interface DMenu extends DScrollPanel {
|
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddPanel
|
|
29
31
|
*/
|
|
30
32
|
AddPanel<T extends Panel>(self: DMenu, pnl: T): void;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Adds a horizontal line spacer.
|
|
33
36
|
* @realm client and menu
|
|
34
37
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddSpacer
|
|
35
38
|
*/
|
|
36
39
|
AddSpacer(self: DMenu): void;
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
42
|
* Add a sub menu to the DMenu.
|
|
39
43
|
* @realm client
|
|
@@ -41,6 +45,7 @@ interface DMenu extends DScrollPanel {
|
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/DMenu:AddSubMenu
|
|
42
46
|
*/
|
|
43
47
|
AddSubMenu(self: DMenu, Name: string, func?: function): (DMenu, DMenuOption);
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Clears all highlights made by [DMenu:HighlightItem](https://wiki.facepunch.com/gmod/DMenu:HighlightItem).
|
|
46
51
|
*
|
|
@@ -50,6 +55,7 @@ interface DMenu extends DScrollPanel {
|
|
|
50
55
|
* @source https://wiki.facepunch.com/gmod/DMenu:ClearHighlights
|
|
51
56
|
*/
|
|
52
57
|
ClearHighlights(self: DMenu): void;
|
|
58
|
+
|
|
53
59
|
/**
|
|
54
60
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
55
61
|
*
|
|
@@ -60,6 +66,7 @@ interface DMenu extends DScrollPanel {
|
|
|
60
66
|
* @source https://wiki.facepunch.com/gmod/DMenu:CloseSubMenu
|
|
61
67
|
*/
|
|
62
68
|
CloseSubMenu(self: DMenu, menu: Panel): void;
|
|
69
|
+
|
|
63
70
|
/**
|
|
64
71
|
* Set by [DMenu:SetDeleteSelf](https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf)
|
|
65
72
|
*
|
|
@@ -67,6 +74,7 @@ interface DMenu extends DScrollPanel {
|
|
|
67
74
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDeleteSelf
|
|
68
75
|
*/
|
|
69
76
|
GetDeleteSelf(self: DMenu): boolean;
|
|
77
|
+
|
|
70
78
|
/**
|
|
71
79
|
* Returns the value set by [DMenu:SetDrawBorder](https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder).
|
|
72
80
|
*
|
|
@@ -74,6 +82,7 @@ interface DMenu extends DScrollPanel {
|
|
|
74
82
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDrawBorder
|
|
75
83
|
*/
|
|
76
84
|
GetDrawBorder(self: DMenu): boolean;
|
|
85
|
+
|
|
77
86
|
/**
|
|
78
87
|
* Returns whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color or not.
|
|
79
88
|
*
|
|
@@ -83,18 +92,21 @@ interface DMenu extends DScrollPanel {
|
|
|
83
92
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetDrawColumn
|
|
84
93
|
*/
|
|
85
94
|
GetDrawColumn(self: DMenu): boolean;
|
|
95
|
+
|
|
86
96
|
/**
|
|
87
97
|
* Returns the maximum height of the [DMenu](https://wiki.facepunch.com/gmod/DMenu).
|
|
88
98
|
* @realm client and menu
|
|
89
99
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetMaxHeight
|
|
90
100
|
*/
|
|
91
101
|
GetMaxHeight(self: DMenu): number;
|
|
102
|
+
|
|
92
103
|
/**
|
|
93
104
|
* Returns the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu) in pixels
|
|
94
105
|
* @realm client and menu
|
|
95
106
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetMinimumWidth
|
|
96
107
|
*/
|
|
97
108
|
GetMinimumWidth(self: DMenu): number;
|
|
109
|
+
|
|
98
110
|
/**
|
|
99
111
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
100
112
|
*
|
|
@@ -107,6 +119,7 @@ interface DMenu extends DScrollPanel {
|
|
|
107
119
|
* @source https://wiki.facepunch.com/gmod/DMenu:GetOpenSubMenu
|
|
108
120
|
*/
|
|
109
121
|
GetOpenSubMenu(self: DMenu): Panel;
|
|
122
|
+
|
|
110
123
|
/**
|
|
111
124
|
* Highlights selected item in the [DMenu](https://wiki.facepunch.com/gmod/DMenu) by setting the item's key "Highlight" to true.
|
|
112
125
|
*
|
|
@@ -116,24 +129,28 @@ interface DMenu extends DScrollPanel {
|
|
|
116
129
|
* @source https://wiki.facepunch.com/gmod/DMenu:HighlightItem
|
|
117
130
|
*/
|
|
118
131
|
HighlightItem(self: DMenu, item: Panel): void;
|
|
132
|
+
|
|
119
133
|
/**
|
|
120
134
|
* Opens the [DMenu](https://wiki.facepunch.com/gmod/DMenu) at given position.
|
|
121
135
|
* @realm client and menu
|
|
122
136
|
* @source https://wiki.facepunch.com/gmod/DMenu:Open
|
|
123
137
|
*/
|
|
124
138
|
Open(self: DMenu, x?: number, y?: number, skipanimation?: any, ownerpanel?: Panel): void;
|
|
139
|
+
|
|
125
140
|
/**
|
|
126
141
|
* Closes any active sub menus, and opens a new one.
|
|
127
142
|
* @realm client and menu
|
|
128
143
|
* @source https://wiki.facepunch.com/gmod/DMenu:OpenSubMenu
|
|
129
144
|
*/
|
|
130
145
|
OpenSubMenu(self: DMenu, item: Panel, menu?: Panel): void;
|
|
146
|
+
|
|
131
147
|
/**
|
|
132
148
|
* Called when a option has been selected
|
|
133
149
|
* @realm client and menu
|
|
134
150
|
* @source https://wiki.facepunch.com/gmod/DMenu:OptionSelected
|
|
135
151
|
*/
|
|
136
152
|
OptionSelected(self: DMenu, option: Panel, optionText: string): void;
|
|
153
|
+
|
|
137
154
|
/**
|
|
138
155
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
139
156
|
*
|
|
@@ -144,6 +161,7 @@ interface DMenu extends DScrollPanel {
|
|
|
144
161
|
* @source https://wiki.facepunch.com/gmod/DMenu:OptionSelectedInternal
|
|
145
162
|
*/
|
|
146
163
|
OptionSelectedInternal(self: DMenu, option: Panel): void;
|
|
164
|
+
|
|
147
165
|
/**
|
|
148
166
|
* Set to true by default. IF set to true, the menu will be deleted when it is closed, not simply hidden.
|
|
149
167
|
*
|
|
@@ -153,6 +171,7 @@ interface DMenu extends DScrollPanel {
|
|
|
153
171
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDeleteSelf
|
|
154
172
|
*/
|
|
155
173
|
SetDeleteSelf(self: DMenu, newState: boolean): void;
|
|
174
|
+
|
|
156
175
|
/**
|
|
157
176
|
* Does nothing.
|
|
158
177
|
*
|
|
@@ -160,24 +179,28 @@ interface DMenu extends DScrollPanel {
|
|
|
160
179
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDrawBorder
|
|
161
180
|
*/
|
|
162
181
|
SetDrawBorder(self: DMenu, bool: boolean): void;
|
|
182
|
+
|
|
163
183
|
/**
|
|
164
184
|
* Sets whether the [DMenu](https://wiki.facepunch.com/gmod/DMenu) should draw the icon column with a different color.
|
|
165
185
|
* @realm client and menu
|
|
166
186
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetDrawColumn
|
|
167
187
|
*/
|
|
168
188
|
SetDrawColumn(self: DMenu, draw: boolean): void;
|
|
189
|
+
|
|
169
190
|
/**
|
|
170
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.
|
|
171
192
|
* @realm client and menu
|
|
172
193
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetMaxHeight
|
|
173
194
|
*/
|
|
174
195
|
SetMaxHeight(self: DMenu, maxHeight: number): void;
|
|
196
|
+
|
|
175
197
|
/**
|
|
176
198
|
* Sets the minimum width of the [DMenu](https://wiki.facepunch.com/gmod/DMenu). The menu will be stretched to match the given value.
|
|
177
199
|
* @realm client and menu
|
|
178
200
|
* @source https://wiki.facepunch.com/gmod/DMenu:SetMinimumWidth
|
|
179
201
|
*/
|
|
180
202
|
SetMinimumWidth(self: DMenu, minWidth: number): void;
|
|
203
|
+
|
|
181
204
|
/**
|
|
182
205
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
183
206
|
*
|
|
@@ -189,31 +212,3 @@ interface DMenu extends DScrollPanel {
|
|
|
189
212
|
*/
|
|
190
213
|
SetOpenSubMenu(self: DMenu, item: Panel): void;
|
|
191
214
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
package/types/dmenubar.d.tlua
CHANGED
|
@@ -13,6 +13,7 @@ interface DMenuBar extends DPanel {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DMenuBar:AddMenu
|
|
14
14
|
*/
|
|
15
15
|
AddMenu(self: DMenuBar, label: string): DMenu;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Retrieves or creates a menu panel on the menu bar.
|
|
18
19
|
* @realm client
|
|
@@ -20,6 +21,7 @@ interface DMenuBar extends DPanel {
|
|
|
20
21
|
* @source https://wiki.facepunch.com/gmod/DMenuBar:AddOrGetMenu
|
|
21
22
|
*/
|
|
22
23
|
AddOrGetMenu(self: DMenuBar, label: string): DMenu;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Returns the currently opened menu, if any.
|
|
25
27
|
* @realm client
|
|
@@ -28,10 +30,3 @@ interface DMenuBar extends DPanel {
|
|
|
28
30
|
*/
|
|
29
31
|
GetOpenMenu(self: DMenuBar): DMenu | nil;
|
|
30
32
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
package/types/dmenuoption.d.tlua
CHANGED
|
@@ -16,24 +16,28 @@ interface DMenuOption extends DButton {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:AddSubMenu
|
|
17
17
|
*/
|
|
18
18
|
AddSubMenu(self: DMenuOption): Panel;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Returns the checked state of [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
|
|
21
22
|
* @realm client and menu
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetChecked
|
|
23
24
|
*/
|
|
24
25
|
GetChecked(self: DMenuOption): boolean;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Returns whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
|
|
27
29
|
* @realm client and menu
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetIsCheckable
|
|
29
31
|
*/
|
|
30
32
|
GetIsCheckable(self: DMenuOption): boolean;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Returns which [DMenu](https://wiki.facepunch.com/gmod/DMenu) this option belongs.
|
|
33
36
|
* @realm client and menu
|
|
34
37
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetMenu
|
|
35
38
|
*/
|
|
36
39
|
GetMenu(self: DMenuOption): Panel;
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
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).
|
|
39
43
|
*
|
|
@@ -41,12 +45,14 @@ interface DMenuOption extends DButton {
|
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:GetRadio
|
|
42
46
|
*/
|
|
43
47
|
GetRadio(self: DMenuOption): boolean;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Called whenever the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption)'s checked state changes.
|
|
46
51
|
* @realm client and menu
|
|
47
52
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:OnChecked
|
|
48
53
|
*/
|
|
49
54
|
OnChecked(self: DMenuOption, checked: boolean): void;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* Sets the checked state of the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption).
|
|
52
58
|
*
|
|
@@ -56,6 +62,7 @@ interface DMenuOption extends DButton {
|
|
|
56
62
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetChecked
|
|
57
63
|
*/
|
|
58
64
|
SetChecked(self: DMenuOption, checked: boolean): void;
|
|
65
|
+
|
|
59
66
|
/**
|
|
60
67
|
* Sets whether the [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) is a checkbox option or a normal button option.
|
|
61
68
|
*
|
|
@@ -64,6 +71,7 @@ interface DMenuOption extends DButton {
|
|
|
64
71
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetIsCheckable
|
|
65
72
|
*/
|
|
66
73
|
SetIsCheckable(self: DMenuOption, checkable: boolean): void;
|
|
74
|
+
|
|
67
75
|
/**
|
|
68
76
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
69
77
|
* Used to set the [DMenu](https://wiki.facepunch.com/gmod/DMenu) for this option.
|
|
@@ -71,6 +79,7 @@ interface DMenuOption extends DButton {
|
|
|
71
79
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetMenu
|
|
72
80
|
*/
|
|
73
81
|
SetMenu(self: DMenuOption, pnl: Panel): void;
|
|
82
|
+
|
|
74
83
|
/**
|
|
75
84
|
* Sets whether this [DMenuOption](https://wiki.facepunch.com/gmod/DMenuOption) should act like a radio button.
|
|
76
85
|
*
|
|
@@ -80,6 +89,7 @@ interface DMenuOption extends DButton {
|
|
|
80
89
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetRadio
|
|
81
90
|
*/
|
|
82
91
|
SetRadio(self: DMenuOption, checked: boolean): void;
|
|
92
|
+
|
|
83
93
|
/**
|
|
84
94
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
85
95
|
*
|
|
@@ -90,6 +100,7 @@ interface DMenuOption extends DButton {
|
|
|
90
100
|
* @source https://wiki.facepunch.com/gmod/DMenuOption:SetSubMenu
|
|
91
101
|
*/
|
|
92
102
|
SetSubMenu(self: DMenuOption, menu: Panel): void;
|
|
103
|
+
|
|
93
104
|
/**
|
|
94
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).
|
|
95
106
|
* @realm client and menu
|
|
@@ -97,16 +108,3 @@ interface DMenuOption extends DButton {
|
|
|
97
108
|
*/
|
|
98
109
|
ToggleCheck(self: DMenuOption): void;
|
|
99
110
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
@@ -22,24 +22,28 @@ interface DMenuOptionCVar extends DMenuOption {
|
|
|
22
22
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetConVar
|
|
23
23
|
*/
|
|
24
24
|
GetConVar(self: DMenuOptionCVar): string;
|
|
25
|
+
|
|
25
26
|
/**
|
|
26
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.
|
|
27
28
|
* @realm client
|
|
28
29
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOff
|
|
29
30
|
*/
|
|
30
31
|
GetValueOff(self: DMenuOptionCVar): string;
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
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.
|
|
33
35
|
* @realm client
|
|
34
36
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:GetValueOn
|
|
35
37
|
*/
|
|
36
38
|
GetValueOn(self: DMenuOptionCVar): string;
|
|
39
|
+
|
|
37
40
|
/**
|
|
38
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.
|
|
39
42
|
* @realm client
|
|
40
43
|
* @source https://wiki.facepunch.com/gmod/DMenuOptionCVar:SetValueOff
|
|
41
44
|
*/
|
|
42
45
|
SetValueOff(self: DMenuOptionCVar, value: string): void;
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
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.
|
|
45
49
|
* @realm client
|
|
@@ -47,9 +51,3 @@ interface DMenuOptionCVar extends DMenuOption {
|
|
|
47
51
|
*/
|
|
48
52
|
SetValueOn(self: DMenuOptionCVar, value: string): void;
|
|
49
53
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
package/types/dmodelpanel.d.tlua
CHANGED
|
@@ -13,72 +13,84 @@ interface DModelPanel extends DButton {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:DrawModel
|
|
14
14
|
*/
|
|
15
15
|
DrawModel(self: DModelPanel): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Returns the ambient lighting used on the rendered entity.
|
|
18
19
|
* @realm client
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAmbientLight
|
|
20
21
|
*/
|
|
21
22
|
GetAmbientLight(self: DModelPanel): Color;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns the animation speed of the panel entity, see [DModelPanel:SetAnimSpeed](https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed).
|
|
24
26
|
* @realm client
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimSpeed
|
|
26
28
|
*/
|
|
27
29
|
GetAnimSpeed(self: DModelPanel): number;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Returns whether or not the panel entity should be animated when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) function is called.
|
|
30
33
|
* @realm client
|
|
31
34
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetAnimated
|
|
32
35
|
*/
|
|
33
36
|
GetAnimated(self: DModelPanel): boolean;
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Returns the position of the model viewing camera.
|
|
36
40
|
* @realm client
|
|
37
41
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetCamPos
|
|
38
42
|
*/
|
|
39
43
|
GetCamPos(self: DModelPanel): Vector;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* Returns the entity being rendered by the model panel.
|
|
42
47
|
* @realm client
|
|
43
48
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetEntity
|
|
44
49
|
*/
|
|
45
50
|
GetEntity(self: DModelPanel): CSEnt;
|
|
51
|
+
|
|
46
52
|
/**
|
|
47
53
|
* Returns the FOV (field of view) the camera is using.
|
|
48
54
|
* @realm client
|
|
49
55
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetFOV
|
|
50
56
|
*/
|
|
51
57
|
GetFOV(self: DModelPanel): number;
|
|
58
|
+
|
|
52
59
|
/**
|
|
53
60
|
* Returns the angles of the model viewing camera. Is **nil** until changed with [DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng).
|
|
54
61
|
* @realm client
|
|
55
62
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAng
|
|
56
63
|
*/
|
|
57
64
|
GetLookAng(self: DModelPanel): Angle;
|
|
65
|
+
|
|
58
66
|
/**
|
|
59
67
|
* Returns the position the viewing camera is pointing toward.
|
|
60
68
|
* @realm client
|
|
61
69
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetLookAt
|
|
62
70
|
*/
|
|
63
71
|
GetLookAt(self: DModelPanel): Vector;
|
|
72
|
+
|
|
64
73
|
/**
|
|
65
74
|
* Gets the model of the rendered entity.
|
|
66
75
|
* @realm client
|
|
67
76
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:GetModel
|
|
68
77
|
*/
|
|
69
78
|
GetModel(self: DModelPanel): string;
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
* This function is used in [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity). It will progress the animation, set using [Entity:SetSequence](https://wiki.facepunch.com/gmod/Entity:SetSequence). By default, it is the walking animation.
|
|
72
82
|
* @realm client
|
|
73
83
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation
|
|
74
84
|
*/
|
|
75
85
|
RunAnimation(self: DModelPanel): void;
|
|
86
|
+
|
|
76
87
|
/**
|
|
77
88
|
* Sets the ambient lighting used on the rendered entity.
|
|
78
89
|
* @realm client
|
|
79
90
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAmbientLight
|
|
80
91
|
*/
|
|
81
92
|
SetAmbientLight(self: DModelPanel, color: Color): void;
|
|
93
|
+
|
|
82
94
|
/**
|
|
83
95
|
* Sets the speed used by [DModelPanel:RunAnimation](https://wiki.facepunch.com/gmod/DModelPanel:RunAnimation) to advance frame on an entity sequence.
|
|
84
96
|
*
|
|
@@ -89,24 +101,28 @@ interface DModelPanel extends DButton {
|
|
|
89
101
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimSpeed
|
|
90
102
|
*/
|
|
91
103
|
SetAnimSpeed(self: DModelPanel, animSpeed: number): void;
|
|
104
|
+
|
|
92
105
|
/**
|
|
93
106
|
* Sets whether or not to animate the entity when the default [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) is called.
|
|
94
107
|
* @realm client
|
|
95
108
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetAnimated
|
|
96
109
|
*/
|
|
97
110
|
SetAnimated(self: DModelPanel, animated: boolean): void;
|
|
111
|
+
|
|
98
112
|
/**
|
|
99
113
|
* Sets the position of the camera.
|
|
100
114
|
* @realm client
|
|
101
115
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetCamPos
|
|
102
116
|
*/
|
|
103
117
|
SetCamPos(self: DModelPanel, pos: Vector): void;
|
|
118
|
+
|
|
104
119
|
/**
|
|
105
120
|
* Sets the directional lighting used on the rendered entity.
|
|
106
121
|
* @realm client
|
|
107
122
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetDirectionalLight
|
|
108
123
|
*/
|
|
109
124
|
SetDirectionalLight(self: DModelPanel, direction: number, color: Color): void;
|
|
125
|
+
|
|
110
126
|
/**
|
|
111
127
|
* Sets the entity to be rendered by the model panel.
|
|
112
128
|
*
|
|
@@ -117,24 +133,28 @@ interface DModelPanel extends DButton {
|
|
|
117
133
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetEntity
|
|
118
134
|
*/
|
|
119
135
|
SetEntity(self: DModelPanel, ent: Entity): void;
|
|
136
|
+
|
|
120
137
|
/**
|
|
121
138
|
* Sets the panel camera's FOV (field of view).
|
|
122
139
|
* @realm client
|
|
123
140
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetFOV
|
|
124
141
|
*/
|
|
125
142
|
SetFOV(self: DModelPanel, fov: number): void;
|
|
143
|
+
|
|
126
144
|
/**
|
|
127
145
|
* Sets the angles of the camera.
|
|
128
146
|
* @realm client
|
|
129
147
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng
|
|
130
148
|
*/
|
|
131
149
|
SetLookAng(self: DModelPanel, ang: Angle): void;
|
|
150
|
+
|
|
132
151
|
/**
|
|
133
152
|
* Makes the panel's camera face the given position. Basically sets the camera's angles ([DModelPanel:SetLookAng](https://wiki.facepunch.com/gmod/DModelPanel:SetLookAng)) after doing some math.
|
|
134
153
|
* @realm client
|
|
135
154
|
* @source https://wiki.facepunch.com/gmod/DModelPanel:SetLookAt
|
|
136
155
|
*/
|
|
137
156
|
SetLookAt(self: DModelPanel, pos: Vector): void;
|
|
157
|
+
|
|
138
158
|
/**
|
|
139
159
|
* Runs a [Global.ClientsideScene](https://wiki.facepunch.com/gmod/Global.ClientsideScene) on the panel's entity.
|
|
140
160
|
* @realm client
|
|
@@ -142,25 +162,3 @@ interface DModelPanel extends DButton {
|
|
|
142
162
|
*/
|
|
143
163
|
StartScene(self: DModelPanel, path: string): void;
|
|
144
164
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
package/types/dnotify.d.tlua
CHANGED
|
@@ -12,18 +12,21 @@ interface DNotify extends Panel {
|
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DNotify:AddItem
|
|
13
13
|
*/
|
|
14
14
|
AddItem(self: DNotify, pnl: Panel, lifeLength?: number): void;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Returns the current alignment of this notification panel. Set by [DNotify:SetAlignment](https://wiki.facepunch.com/gmod/DNotify:SetAlignment).
|
|
17
18
|
* @realm client
|
|
18
19
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetAlignment
|
|
19
20
|
*/
|
|
20
21
|
GetAlignment(self: DNotify): number;
|
|
22
|
+
|
|
21
23
|
/**
|
|
22
24
|
* Returns all the items added with [DNotify:AddItem](https://wiki.facepunch.com/gmod/DNotify:AddItem).
|
|
23
25
|
* @realm client
|
|
24
26
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetItems
|
|
25
27
|
*/
|
|
26
28
|
GetItems(self: DNotify): table;
|
|
29
|
+
|
|
27
30
|
/**
|
|
28
31
|
* Returns the display time in seconds of the DNotify. This is set with
|
|
29
32
|
* [DNotify:SetLife](https://wiki.facepunch.com/gmod/DNotify:SetLife).
|
|
@@ -32,30 +35,35 @@ interface DNotify extends Panel {
|
|
|
32
35
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetLife
|
|
33
36
|
*/
|
|
34
37
|
GetLife(self: DNotify): number;
|
|
38
|
+
|
|
35
39
|
/**
|
|
36
40
|
* Returns the spacing between items set by [DNotify:SetSpacing](https://wiki.facepunch.com/gmod/DNotify:SetSpacing).
|
|
37
41
|
* @realm client
|
|
38
42
|
* @source https://wiki.facepunch.com/gmod/DNotify:GetSpacing
|
|
39
43
|
*/
|
|
40
44
|
GetSpacing(self: DNotify): number;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Sets the alignment of the child panels in the notification
|
|
43
48
|
* @realm client
|
|
44
49
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetAlignment
|
|
45
50
|
*/
|
|
46
51
|
SetAlignment(self: DNotify, alignment: number): void;
|
|
52
|
+
|
|
47
53
|
/**
|
|
48
54
|
* Sets the display time in seconds for the DNotify.
|
|
49
55
|
* @realm client
|
|
50
56
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetLife
|
|
51
57
|
*/
|
|
52
58
|
SetLife(self: DNotify, time: number): void;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* Sets the spacing between child elements of the notification panel.
|
|
55
62
|
* @realm client
|
|
56
63
|
* @source https://wiki.facepunch.com/gmod/DNotify:SetSpacing
|
|
57
64
|
*/
|
|
58
65
|
SetSpacing(self: DNotify, spacing: number): void;
|
|
66
|
+
|
|
59
67
|
/**
|
|
60
68
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
61
69
|
* Used internally to position and fade in/out its [DNotify:GetItems](https://wiki.facepunch.com/gmod/DNotify:GetItems).
|
|
@@ -64,13 +72,3 @@ interface DNotify extends Panel {
|
|
|
64
72
|
*/
|
|
65
73
|
Shuffle(self: DNotify): void;
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|