@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
|
@@ -18,6 +18,7 @@ interface DNumberScratch extends DImageButton {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:DrawNotches
|
|
19
19
|
*/
|
|
20
20
|
DrawNotches(self: DNumberScratch, level: number, x: number, y: number, w: number, h: number, range: number, value: number, min: number, max: number): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
23
24
|
*
|
|
@@ -28,18 +29,21 @@ interface DNumberScratch extends DImageButton {
|
|
|
28
29
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:DrawScreen
|
|
29
30
|
*/
|
|
30
31
|
DrawScreen(self: DNumberScratch, x: number, y: number, w: number, h: number): void;
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Returns whether this panel is active or not, i.e. if the player is currently changing its value.
|
|
33
35
|
* @realm client and menu
|
|
34
36
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetActive
|
|
35
37
|
*/
|
|
36
38
|
GetActive(self: DNumberScratch): boolean;
|
|
39
|
+
|
|
37
40
|
/**
|
|
38
41
|
* Returns the desired amount of numbers after the decimal point.
|
|
39
42
|
* @realm client and menu
|
|
40
43
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetDecimals
|
|
41
44
|
*/
|
|
42
45
|
GetDecimals(self: DNumberScratch): number;
|
|
46
|
+
|
|
43
47
|
/**
|
|
44
48
|
* Returns the real value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a number.
|
|
45
49
|
*
|
|
@@ -49,6 +53,7 @@ interface DNumberScratch extends DImageButton {
|
|
|
49
53
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetFloatValue
|
|
50
54
|
*/
|
|
51
55
|
GetFloatValue(self: DNumberScratch): number;
|
|
56
|
+
|
|
52
57
|
/**
|
|
53
58
|
* Returns the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a fraction, a value between 0 and 1 where 0 is the minimum and 1 is the maximum value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch).
|
|
54
59
|
*
|
|
@@ -61,30 +66,35 @@ interface DNumberScratch extends DImageButton {
|
|
|
61
66
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetFraction
|
|
62
67
|
*/
|
|
63
68
|
GetFraction(self: DNumberScratch): number;
|
|
69
|
+
|
|
64
70
|
/**
|
|
65
71
|
* Returns the maximum value that can be selected on the number scratch
|
|
66
72
|
* @realm client and menu
|
|
67
73
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetMax
|
|
68
74
|
*/
|
|
69
75
|
GetMax(self: DNumberScratch): number;
|
|
76
|
+
|
|
70
77
|
/**
|
|
71
78
|
* Returns the minimum value that can be selected on the number scratch
|
|
72
79
|
* @realm client and menu
|
|
73
80
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetMin
|
|
74
81
|
*/
|
|
75
82
|
GetMin(self: DNumberScratch): number;
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* Returns the range of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch). Basically max value - min value.
|
|
78
86
|
* @realm client and menu
|
|
79
87
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetRange
|
|
80
88
|
*/
|
|
81
89
|
GetRange(self: DNumberScratch): number;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Returns whether the scratch window should be visible or not.
|
|
84
93
|
* @realm client and menu
|
|
85
94
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetShouldDrawScreen
|
|
86
95
|
*/
|
|
87
96
|
GetShouldDrawScreen(self: DNumberScratch): boolean;
|
|
97
|
+
|
|
88
98
|
/**
|
|
89
99
|
* Returns the real value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a string.
|
|
90
100
|
*
|
|
@@ -94,24 +104,28 @@ interface DNumberScratch extends DImageButton {
|
|
|
94
104
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetTextValue
|
|
95
105
|
*/
|
|
96
106
|
GetTextValue(self: DNumberScratch): string;
|
|
107
|
+
|
|
97
108
|
/**
|
|
98
109
|
* Returns the zoom level of the scratch window
|
|
99
110
|
* @realm client and menu
|
|
100
111
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:GetZoom
|
|
101
112
|
*/
|
|
102
113
|
GetZoom(self: DNumberScratch): number;
|
|
114
|
+
|
|
103
115
|
/**
|
|
104
116
|
* Returns the ideal zoom level for the panel based on the [DNumberScratch:GetRange](https://wiki.facepunch.com/gmod/DNumberScratch:GetRange).
|
|
105
117
|
* @realm client and menu
|
|
106
118
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:IdealZoom
|
|
107
119
|
*/
|
|
108
120
|
IdealZoom(self: DNumberScratch): number;
|
|
121
|
+
|
|
109
122
|
/**
|
|
110
123
|
* Returns whether the player is currently editing the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch).
|
|
111
124
|
* @realm client and menu
|
|
112
125
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:IsEditing
|
|
113
126
|
*/
|
|
114
127
|
IsEditing(self: DNumberScratch): boolean;
|
|
128
|
+
|
|
115
129
|
/**
|
|
116
130
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
117
131
|
*
|
|
@@ -122,6 +136,7 @@ interface DNumberScratch extends DImageButton {
|
|
|
122
136
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:LockCursor
|
|
123
137
|
*/
|
|
124
138
|
LockCursor(self: DNumberScratch): void;
|
|
139
|
+
|
|
125
140
|
/**
|
|
126
141
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
127
142
|
*
|
|
@@ -132,6 +147,7 @@ interface DNumberScratch extends DImageButton {
|
|
|
132
147
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:PaintScratchWindow
|
|
133
148
|
*/
|
|
134
149
|
PaintScratchWindow(self: DNumberScratch): void;
|
|
150
|
+
|
|
135
151
|
/**
|
|
136
152
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
137
153
|
*
|
|
@@ -144,12 +160,14 @@ interface DNumberScratch extends DImageButton {
|
|
|
144
160
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetActive
|
|
145
161
|
*/
|
|
146
162
|
SetActive(self: DNumberScratch, active: boolean): void;
|
|
163
|
+
|
|
147
164
|
/**
|
|
148
165
|
* Sets the desired amount of numbers after the decimal point.
|
|
149
166
|
* @realm client and menu
|
|
150
167
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetDecimals
|
|
151
168
|
*/
|
|
152
169
|
SetDecimals(self: DNumberScratch, decimals: number): void;
|
|
170
|
+
|
|
153
171
|
/**
|
|
154
172
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
155
173
|
*
|
|
@@ -162,24 +180,28 @@ interface DNumberScratch extends DImageButton {
|
|
|
162
180
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetFloatValue
|
|
163
181
|
*/
|
|
164
182
|
SetFloatValue(self: DNumberScratch, val: number): void;
|
|
183
|
+
|
|
165
184
|
/**
|
|
166
185
|
* Sets the value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) as a fraction, a value between 0 and 1 where 0 is the minimum and 1 is the maximum value of the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch)
|
|
167
186
|
* @realm client and menu
|
|
168
187
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetFraction
|
|
169
188
|
*/
|
|
170
189
|
SetFraction(self: DNumberScratch, frac: number): void;
|
|
190
|
+
|
|
171
191
|
/**
|
|
172
192
|
* Sets the max value that can be selected on the number scratch
|
|
173
193
|
* @realm client and menu
|
|
174
194
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetMax
|
|
175
195
|
*/
|
|
176
196
|
SetMax(self: DNumberScratch, max: number): void;
|
|
197
|
+
|
|
177
198
|
/**
|
|
178
199
|
* Sets the minimum value that can be selected on the number scratch.
|
|
179
200
|
* @realm client and menu
|
|
180
201
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetMin
|
|
181
202
|
*/
|
|
182
203
|
SetMin(self: DNumberScratch, min: number): void;
|
|
204
|
+
|
|
183
205
|
/**
|
|
184
206
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
185
207
|
*
|
|
@@ -190,12 +212,14 @@ interface DNumberScratch extends DImageButton {
|
|
|
190
212
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetShouldDrawScreen
|
|
191
213
|
*/
|
|
192
214
|
SetShouldDrawScreen(self: DNumberScratch, shouldDraw: boolean): void;
|
|
215
|
+
|
|
193
216
|
/**
|
|
194
217
|
* Sets the zoom level of the scratch panel.
|
|
195
218
|
* @realm client and menu
|
|
196
219
|
* @source https://wiki.facepunch.com/gmod/DNumberScratch:SetZoom
|
|
197
220
|
*/
|
|
198
221
|
SetZoom(self: DNumberScratch, zoom: number): void;
|
|
222
|
+
|
|
199
223
|
/**
|
|
200
224
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
201
225
|
*
|
|
@@ -207,29 +231,3 @@ interface DNumberScratch extends DImageButton {
|
|
|
207
231
|
*/
|
|
208
232
|
UpdateConVar(self: DNumberScratch): void;
|
|
209
233
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
package/types/dnumberwang.d.tlua
CHANGED
|
@@ -12,6 +12,7 @@ interface DNumberWang extends DTextEntry {
|
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetDecimals
|
|
13
13
|
*/
|
|
14
14
|
GetDecimals(self: DNumberWang): number;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Returns whatever is set by [DNumberWang:SetFloatValue](https://wiki.facepunch.com/gmod/DNumberWang:SetFloatValue) or 0.
|
|
17
18
|
*
|
|
@@ -19,30 +20,35 @@ interface DNumberWang extends DTextEntry {
|
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetFloatValue
|
|
20
21
|
*/
|
|
21
22
|
GetFloatValue(self: DNumberWang): number;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns a fraction representing the current number selector value to number selector min/max range ratio. If argument `val` is supplied, that number will be computed instead.
|
|
24
26
|
* @realm client and menu
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetFraction
|
|
26
28
|
*/
|
|
27
29
|
GetFraction(self: DNumberWang, val: number): void;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Returns interval at which the up and down buttons change the current value.
|
|
30
33
|
* @realm client and menu
|
|
31
34
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetInterval
|
|
32
35
|
*/
|
|
33
36
|
GetInterval(self: DNumberWang): number;
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Returns the maximum numeric value allowed by the number selector.
|
|
36
40
|
* @realm client and menu
|
|
37
41
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetMax
|
|
38
42
|
*/
|
|
39
43
|
GetMax(self: DNumberWang): number;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* Returns the minimum numeric value allowed by the number selector.
|
|
42
47
|
* @realm client and menu
|
|
43
48
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetMin
|
|
44
49
|
*/
|
|
45
50
|
GetMin(self: DNumberWang): number;
|
|
51
|
+
|
|
46
52
|
/**
|
|
47
53
|
* This function returns the panel it is used on.
|
|
48
54
|
*
|
|
@@ -50,18 +56,21 @@ interface DNumberWang extends DTextEntry {
|
|
|
50
56
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:GetTextArea
|
|
51
57
|
*/
|
|
52
58
|
GetTextArea(self: DNumberWang): Panel;
|
|
59
|
+
|
|
53
60
|
/**
|
|
54
61
|
* Hides the number selector arrows.
|
|
55
62
|
* @realm client and menu
|
|
56
63
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:HideWang
|
|
57
64
|
*/
|
|
58
65
|
HideWang(self: DNumberWang): void;
|
|
66
|
+
|
|
59
67
|
/**
|
|
60
68
|
* Sets the amount of decimal places allowed in the number selector.
|
|
61
69
|
* @realm client and menu
|
|
62
70
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetDecimals
|
|
63
71
|
*/
|
|
64
72
|
SetDecimals(self: DNumberWang, num: number): void;
|
|
73
|
+
|
|
65
74
|
/**
|
|
66
75
|
* Appears to do nothing.
|
|
67
76
|
*
|
|
@@ -69,30 +78,35 @@ interface DNumberWang extends DTextEntry {
|
|
|
69
78
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetFloatValue
|
|
70
79
|
*/
|
|
71
80
|
SetFloatValue(self: DNumberWang, val: number): void;
|
|
81
|
+
|
|
72
82
|
/**
|
|
73
83
|
* Sets the value of the number selector based on the given fraction number.
|
|
74
84
|
* @realm client and menu
|
|
75
85
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetFraction
|
|
76
86
|
*/
|
|
77
87
|
SetFraction(self: DNumberWang, val: number): void;
|
|
88
|
+
|
|
78
89
|
/**
|
|
79
90
|
* Sets interval at which the up and down buttons change the current value.
|
|
80
91
|
* @realm client and menu
|
|
81
92
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetInterval
|
|
82
93
|
*/
|
|
83
94
|
SetInterval(self: DNumberWang, min: number): void;
|
|
95
|
+
|
|
84
96
|
/**
|
|
85
97
|
* Sets the maximum numeric value allowed by the number selector.
|
|
86
98
|
* @realm client and menu
|
|
87
99
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetMax
|
|
88
100
|
*/
|
|
89
101
|
SetMax(self: DNumberWang, max: number): void;
|
|
102
|
+
|
|
90
103
|
/**
|
|
91
104
|
* Sets the minimum numeric value allowed by the number selector.
|
|
92
105
|
* @realm client and menu
|
|
93
106
|
* @source https://wiki.facepunch.com/gmod/DNumberWang:SetMin
|
|
94
107
|
*/
|
|
95
108
|
SetMin(self: DNumberWang, min: number): void;
|
|
109
|
+
|
|
96
110
|
/**
|
|
97
111
|
* Sets the minimum and maximum value allowed by the number selector.
|
|
98
112
|
* @realm client and menu
|
|
@@ -100,19 +114,3 @@ interface DNumberWang extends DTextEntry {
|
|
|
100
114
|
*/
|
|
101
115
|
SetMinMax(self: DNumberWang, min: number, max: number): void;
|
|
102
116
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
package/types/dnumpad.d.tlua
CHANGED
package/types/dnumslider.d.tlua
CHANGED
|
@@ -9,48 +9,56 @@ interface DNumSlider extends Panel {
|
|
|
9
9
|
Slider: DSlider;
|
|
10
10
|
/** The number scratch panel. */
|
|
11
11
|
Scratch: DNumberScratch;
|
|
12
|
+
|
|
12
13
|
/**
|
|
13
14
|
* Returns the amount of numbers after the decimal point.
|
|
14
15
|
* @realm client and menu
|
|
15
16
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetDecimals
|
|
16
17
|
*/
|
|
17
18
|
GetDecimals(self: DNumSlider): number;
|
|
19
|
+
|
|
18
20
|
/**
|
|
19
21
|
* Returns the default value of the slider, if one was set by [DNumSlider:SetDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue)
|
|
20
22
|
* @realm client and menu
|
|
21
23
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetDefaultValue
|
|
22
24
|
*/
|
|
23
25
|
GetDefaultValue(self: DNumSlider): number;
|
|
26
|
+
|
|
24
27
|
/**
|
|
25
28
|
* Returns the maximum value of the slider
|
|
26
29
|
* @realm client and menu
|
|
27
30
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetMax
|
|
28
31
|
*/
|
|
29
32
|
GetMax(self: DNumSlider): number;
|
|
33
|
+
|
|
30
34
|
/**
|
|
31
35
|
* Returns the minimum value of the slider
|
|
32
36
|
* @realm client and menu
|
|
33
37
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetMin
|
|
34
38
|
*/
|
|
35
39
|
GetMin(self: DNumSlider): number;
|
|
40
|
+
|
|
36
41
|
/**
|
|
37
42
|
* Returns the range of the slider, basically maximum value - minimum value.
|
|
38
43
|
* @realm client and menu
|
|
39
44
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetRange
|
|
40
45
|
*/
|
|
41
46
|
GetRange(self: DNumSlider): number;
|
|
47
|
+
|
|
42
48
|
/**
|
|
43
49
|
* Returns the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry) component of the slider.
|
|
44
50
|
* @realm client and menu
|
|
45
51
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:GetTextArea
|
|
46
52
|
*/
|
|
47
53
|
GetTextArea(self: DNumSlider): Panel;
|
|
54
|
+
|
|
48
55
|
/**
|
|
49
56
|
* Returns true if either the [DTextEntry](https://wiki.facepunch.com/gmod/DTextEntry), the [DSlider](https://wiki.facepunch.com/gmod/DSlider) or the [DNumberScratch](https://wiki.facepunch.com/gmod/DNumberScratch) are being edited.
|
|
50
57
|
* @realm client and menu
|
|
51
58
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:IsEditing
|
|
52
59
|
*/
|
|
53
60
|
IsEditing(self: DNumSlider): boolean;
|
|
61
|
+
|
|
54
62
|
/**
|
|
55
63
|
* Resets the slider to the default value, if one was set by [DNumSlider:SetDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue).
|
|
56
64
|
*
|
|
@@ -60,6 +68,7 @@ interface DNumSlider extends Panel {
|
|
|
60
68
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:ResetToDefaultValue
|
|
61
69
|
*/
|
|
62
70
|
ResetToDefaultValue(self: DNumSlider): void;
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* Calls [DLabel:SetDark](https://wiki.facepunch.com/gmod/DLabel:SetDark) on the [DLabel](https://wiki.facepunch.com/gmod/DLabel) part of the [DNumSlider](https://wiki.facepunch.com/gmod/DNumSlider).
|
|
65
74
|
*
|
|
@@ -67,6 +76,7 @@ interface DNumSlider extends Panel {
|
|
|
67
76
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetDark
|
|
68
77
|
*/
|
|
69
78
|
SetDark(self: DNumSlider, dark: boolean): void;
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
* Sets the desired amount of numbers after the decimal point.
|
|
72
82
|
* **NOTE**: This doesn't affect values passed to [DNumSlider:OnValueChanged](https://wiki.facepunch.com/gmod/DNumSlider:OnValueChanged).
|
|
@@ -79,30 +89,35 @@ interface DNumSlider extends Panel {
|
|
|
79
89
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetDecimals
|
|
80
90
|
*/
|
|
81
91
|
SetDecimals(self: DNumSlider, decimals: number): void;
|
|
92
|
+
|
|
82
93
|
/**
|
|
83
94
|
* Sets the default value of the slider, to be used by [DNumSlider:ResetToDefaultValue](https://wiki.facepunch.com/gmod/DNumSlider:ResetToDefaultValue) or by middle mouse clicking the draggable knob of the slider.
|
|
84
95
|
* @realm client and menu
|
|
85
96
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetDefaultValue
|
|
86
97
|
*/
|
|
87
98
|
SetDefaultValue(self: DNumSlider, _default: number): void;
|
|
99
|
+
|
|
88
100
|
/**
|
|
89
101
|
* Sets the maximum value for the slider.
|
|
90
102
|
* @realm client and menu
|
|
91
103
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetMax
|
|
92
104
|
*/
|
|
93
105
|
SetMax(self: DNumSlider, max: number): void;
|
|
106
|
+
|
|
94
107
|
/**
|
|
95
108
|
* Sets the minimum value for the slider
|
|
96
109
|
* @realm client and menu
|
|
97
110
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetMin
|
|
98
111
|
*/
|
|
99
112
|
SetMin(self: DNumSlider, min: number): void;
|
|
113
|
+
|
|
100
114
|
/**
|
|
101
115
|
* Sets the minimum and the maximum value of the slider.
|
|
102
116
|
* @realm client and menu
|
|
103
117
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:SetMinMax
|
|
104
118
|
*/
|
|
105
119
|
SetMinMax(self: DNumSlider, min: number, max: number): void;
|
|
120
|
+
|
|
106
121
|
/**
|
|
107
122
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
108
123
|
*
|
|
@@ -110,6 +125,7 @@ interface DNumSlider extends Panel {
|
|
|
110
125
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:TranslateSliderValues
|
|
111
126
|
*/
|
|
112
127
|
TranslateSliderValues(self: DNumSlider, x: number, y: number): (number, number);
|
|
128
|
+
|
|
113
129
|
/**
|
|
114
130
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
115
131
|
* Updates visual notches on the slider.
|
|
@@ -117,6 +133,7 @@ interface DNumSlider extends Panel {
|
|
|
117
133
|
* @source https://wiki.facepunch.com/gmod/DNumSlider:UpdateNotches
|
|
118
134
|
*/
|
|
119
135
|
UpdateNotches(self: DNumSlider): void;
|
|
136
|
+
|
|
120
137
|
/**
|
|
121
138
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
122
139
|
* Called when the value has been changed. This will also be called when the user manually changes the value through the text panel.
|
|
@@ -128,21 +145,3 @@ interface DNumSlider extends Panel {
|
|
|
128
145
|
*/
|
|
129
146
|
ValueChanged(self: DNumSlider, value: number): void;
|
|
130
147
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
package/types/dpanel.d.tlua
CHANGED
|
@@ -16,6 +16,7 @@ interface DPanel extends Panel {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DPanel:GetBackgroundColor
|
|
17
17
|
*/
|
|
18
18
|
GetBackgroundColor(self: DPanel): Color;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Returns whether or not the panel is disabled.
|
|
21
22
|
*
|
|
@@ -26,6 +27,7 @@ interface DPanel extends Panel {
|
|
|
26
27
|
* @deprecated Use Panel:IsEnabled.
|
|
27
28
|
*/
|
|
28
29
|
GetDisabled(self: DPanel): boolean;
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Returns whether or not the panel background is being drawn. Alias of [DPanel:GetPaintBackground](https://wiki.facepunch.com/gmod/DPanel:GetPaintBackground).
|
|
31
33
|
* @realm client and menu
|
|
@@ -33,6 +35,7 @@ interface DPanel extends Panel {
|
|
|
33
35
|
* @deprecated You should use DPanel:GetPaintBackground instead.
|
|
34
36
|
*/
|
|
35
37
|
GetDrawBackground(self: DPanel): boolean;
|
|
38
|
+
|
|
36
39
|
/**
|
|
37
40
|
* Used internally by [DMenu](https://wiki.facepunch.com/gmod/DMenu).
|
|
38
41
|
*
|
|
@@ -44,24 +47,28 @@ interface DPanel extends Panel {
|
|
|
44
47
|
* @source https://wiki.facepunch.com/gmod/DPanel:GetIsMenu
|
|
45
48
|
*/
|
|
46
49
|
GetIsMenu(self: DPanel): boolean;
|
|
50
|
+
|
|
47
51
|
/**
|
|
48
52
|
* Returns whether or not the panel background is being drawn.
|
|
49
53
|
* @realm client and menu
|
|
50
54
|
* @source https://wiki.facepunch.com/gmod/DPanel:GetPaintBackground
|
|
51
55
|
*/
|
|
52
56
|
GetPaintBackground(self: DPanel): boolean;
|
|
57
|
+
|
|
53
58
|
/**
|
|
54
59
|
* Does nothing. Returns value set by [DPanel:SetTabbingDisabled](https://wiki.facepunch.com/gmod/DPanel:SetTabbingDisabled).
|
|
55
60
|
* @realm client and menu
|
|
56
61
|
* @source https://wiki.facepunch.com/gmod/DPanel:GetTabbingDisabled
|
|
57
62
|
*/
|
|
58
63
|
GetTabbingDisabled(self: DPanel): boolean;
|
|
64
|
+
|
|
59
65
|
/**
|
|
60
66
|
* Sets the background color of the panel.
|
|
61
67
|
* @realm client and menu
|
|
62
68
|
* @source https://wiki.facepunch.com/gmod/DPanel:SetBackgroundColor
|
|
63
69
|
*/
|
|
64
70
|
SetBackgroundColor(self: DPanel, color: Color): void;
|
|
71
|
+
|
|
65
72
|
/**
|
|
66
73
|
* Sets whether or not to disable the panel.
|
|
67
74
|
*
|
|
@@ -72,6 +79,7 @@ interface DPanel extends Panel {
|
|
|
72
79
|
* @deprecated Use Panel:SetEnabled instead.
|
|
73
80
|
*/
|
|
74
81
|
SetDisabled(self: DPanel, disabled: boolean): void;
|
|
82
|
+
|
|
75
83
|
/**
|
|
76
84
|
* Sets whether or not to draw the panel background. Alias of [DPanel:SetPaintBackground](https://wiki.facepunch.com/gmod/DPanel:SetPaintBackground).
|
|
77
85
|
* @realm client and menu
|
|
@@ -79,6 +87,7 @@ interface DPanel extends Panel {
|
|
|
79
87
|
* @deprecated You should use DPanel:SetPaintBackground instead.
|
|
80
88
|
*/
|
|
81
89
|
SetDrawBackground(self: DPanel, draw: boolean): void;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Used internally by [DMenu](https://wiki.facepunch.com/gmod/DMenu).
|
|
84
93
|
*
|
|
@@ -91,18 +100,21 @@ interface DPanel extends Panel {
|
|
|
91
100
|
* @source https://wiki.facepunch.com/gmod/DPanel:SetIsMenu
|
|
92
101
|
*/
|
|
93
102
|
SetIsMenu(self: DPanel, isMenu: boolean): void;
|
|
103
|
+
|
|
94
104
|
/**
|
|
95
105
|
* Sets whether or not to paint/draw the panel background.
|
|
96
106
|
* @realm client and menu
|
|
97
107
|
* @source https://wiki.facepunch.com/gmod/DPanel:SetPaintBackground
|
|
98
108
|
*/
|
|
99
109
|
SetPaintBackground(self: DPanel, paint: boolean): void;
|
|
110
|
+
|
|
100
111
|
/**
|
|
101
112
|
* Does nothing.
|
|
102
113
|
* @realm client and menu
|
|
103
114
|
* @source https://wiki.facepunch.com/gmod/DPanel:SetTabbingDisabled
|
|
104
115
|
*/
|
|
105
116
|
SetTabbingDisabled(self: DPanel, draw: boolean): void;
|
|
117
|
+
|
|
106
118
|
/**
|
|
107
119
|
* Does nothing.
|
|
108
120
|
*
|
|
@@ -111,17 +123,3 @@ interface DPanel extends Panel {
|
|
|
111
123
|
*/
|
|
112
124
|
UpdateColours(self: DPanel): void;
|
|
113
125
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
package/types/dpanellist.d.tlua
CHANGED
|
@@ -3,48 +3,56 @@
|
|
|
3
3
|
interface DPanelList extends DPanel {
|
|
4
4
|
Items: Panel[];
|
|
5
5
|
VBar: DVScrollBar;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* Adds a existing panel to the end of [DPanelList](https://wiki.facepunch.com/gmod/DPanelList).
|
|
8
9
|
* @realm client and menu
|
|
9
10
|
* @source https://wiki.facepunch.com/gmod/DPanelList:AddItem
|
|
10
11
|
*/
|
|
11
12
|
AddItem(self: DPanelList, pnl: Panel, state?: string): void;
|
|
13
|
+
|
|
12
14
|
/**
|
|
13
15
|
* Removes all items.
|
|
14
16
|
* @realm client and menu
|
|
15
17
|
* @source https://wiki.facepunch.com/gmod/DPanelList:CleanList
|
|
16
18
|
*/
|
|
17
19
|
CleanList(self: DPanelList): void;
|
|
20
|
+
|
|
18
21
|
/**
|
|
19
22
|
* Enables/creates the vertical scroll bar so that the panel list can be scrolled through.
|
|
20
23
|
* @realm client and menu
|
|
21
24
|
* @source https://wiki.facepunch.com/gmod/DPanelList:EnableVerticalScrollbar
|
|
22
25
|
*/
|
|
23
26
|
EnableVerticalScrollbar(self: DPanelList): void;
|
|
27
|
+
|
|
24
28
|
/**
|
|
25
29
|
* Returns all panels has added by [DPanelList:AddItem](https://wiki.facepunch.com/gmod/DPanelList:AddItem)
|
|
26
30
|
* @realm client and menu
|
|
27
31
|
* @source https://wiki.facepunch.com/gmod/DPanelList:GetItems
|
|
28
32
|
*/
|
|
29
33
|
GetItems(self: DPanelList): table;
|
|
34
|
+
|
|
30
35
|
/**
|
|
31
36
|
* Returns offset of list items from the panel borders set by [DPanelList:SetPadding](https://wiki.facepunch.com/gmod/DPanelList:SetPadding)
|
|
32
37
|
* @realm client and menu
|
|
33
38
|
* @source https://wiki.facepunch.com/gmod/DPanelList:GetPadding
|
|
34
39
|
*/
|
|
35
40
|
GetPadding(self: DPanelList): number;
|
|
41
|
+
|
|
36
42
|
/**
|
|
37
43
|
* Returns distance between list items set by [DPanelList:SetSpacing](https://wiki.facepunch.com/gmod/DPanelList:SetSpacing)
|
|
38
44
|
* @realm client and menu
|
|
39
45
|
* @source https://wiki.facepunch.com/gmod/DPanelList:GetSpacing
|
|
40
46
|
*/
|
|
41
47
|
GetSpacing(self: DPanelList): number;
|
|
48
|
+
|
|
42
49
|
/**
|
|
43
50
|
* Insert given panel at the top of the list.
|
|
44
51
|
* @realm client and menu
|
|
45
52
|
* @source https://wiki.facepunch.com/gmod/DPanelList:InsertAtTop
|
|
46
53
|
*/
|
|
47
54
|
InsertAtTop(self: DPanelList, insert: Panel, strLineState: string): void;
|
|
55
|
+
|
|
48
56
|
/**
|
|
49
57
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
50
58
|
*
|
|
@@ -54,18 +62,21 @@ interface DPanelList extends DPanel {
|
|
|
54
62
|
* @source https://wiki.facepunch.com/gmod/DPanelList:Rebuild
|
|
55
63
|
*/
|
|
56
64
|
Rebuild(self: DPanelList): void;
|
|
65
|
+
|
|
57
66
|
/**
|
|
58
67
|
* Sets the [DPanelList](https://wiki.facepunch.com/gmod/DPanelList) to size its height to its contents. This is set to false by default.
|
|
59
68
|
* @realm client and menu
|
|
60
69
|
* @source https://wiki.facepunch.com/gmod/DPanelList:SetAutoSize
|
|
61
70
|
*/
|
|
62
71
|
SetAutoSize(self: DPanelList, shouldSizeToContents: boolean): void;
|
|
72
|
+
|
|
63
73
|
/**
|
|
64
74
|
* Sets the offset of the lists items from the panel borders
|
|
65
75
|
* @realm client and menu
|
|
66
76
|
* @source https://wiki.facepunch.com/gmod/DPanelList:SetPadding
|
|
67
77
|
*/
|
|
68
78
|
SetPadding(self: DPanelList, Offset: number): void;
|
|
79
|
+
|
|
69
80
|
/**
|
|
70
81
|
* Sets distance between list items
|
|
71
82
|
* @realm client and menu
|
|
@@ -73,15 +84,3 @@ interface DPanelList extends DPanel {
|
|
|
73
84
|
*/
|
|
74
85
|
SetSpacing(self: DPanelList, Distance: number): void;
|
|
75
86
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|