@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/dlistview.d.tlua
CHANGED
|
@@ -12,36 +12,42 @@ interface DListView extends DPanel {
|
|
|
12
12
|
* @source https://wiki.facepunch.com/gmod/DListView:AddColumn
|
|
13
13
|
*/
|
|
14
14
|
AddColumn(self: DListView, column: string, position?: number): Panel;
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* Adds a line to the list view.
|
|
17
18
|
* @realm client and menu
|
|
18
19
|
* @source https://wiki.facepunch.com/gmod/DListView:AddLine
|
|
19
20
|
*/
|
|
20
21
|
AddLine(self: DListView, ...: any): Panel;
|
|
22
|
+
|
|
21
23
|
/**
|
|
22
24
|
* Clears the current selection in the DListView.
|
|
23
25
|
* @realm client and menu
|
|
24
26
|
* @source https://wiki.facepunch.com/gmod/DListView:ClearSelection
|
|
25
27
|
*/
|
|
26
28
|
ClearSelection(self: DListView): void;
|
|
29
|
+
|
|
27
30
|
/**
|
|
28
31
|
* Gets the width of a column.
|
|
29
32
|
* @realm client and menu
|
|
30
33
|
* @source https://wiki.facepunch.com/gmod/DListView:ColumnWidth
|
|
31
34
|
*/
|
|
32
35
|
ColumnWidth(self: DListView, column: number): number;
|
|
36
|
+
|
|
33
37
|
/**
|
|
34
38
|
* Creates the lines and gets the height of the contents, in a DListView.
|
|
35
39
|
* @realm client and menu
|
|
36
40
|
* @source https://wiki.facepunch.com/gmod/DListView:DataLayout
|
|
37
41
|
*/
|
|
38
42
|
DataLayout(self: DListView): number;
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* Removes the scrollbar.
|
|
41
46
|
* @realm client and menu
|
|
42
47
|
* @source https://wiki.facepunch.com/gmod/DListView:DisableScrollbar
|
|
43
48
|
*/
|
|
44
49
|
DisableScrollbar(self: DListView): void;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
47
53
|
*
|
|
@@ -52,12 +58,14 @@ interface DListView extends DPanel {
|
|
|
52
58
|
* @source https://wiki.facepunch.com/gmod/DListView:FixColumnsLayout
|
|
53
59
|
*/
|
|
54
60
|
FixColumnsLayout(self: DListView): void;
|
|
61
|
+
|
|
55
62
|
/**
|
|
56
63
|
* Gets the canvas.
|
|
57
64
|
* @realm client and menu
|
|
58
65
|
* @source https://wiki.facepunch.com/gmod/DListView:GetCanvas
|
|
59
66
|
*/
|
|
60
67
|
GetCanvas(self: DListView): Panel;
|
|
68
|
+
|
|
61
69
|
/**
|
|
62
70
|
* Returns the height of the data of the [DListView](https://wiki.facepunch.com/gmod/DListView).
|
|
63
71
|
*
|
|
@@ -67,6 +75,7 @@ interface DListView extends DPanel {
|
|
|
67
75
|
* @source https://wiki.facepunch.com/gmod/DListView:GetDataHeight
|
|
68
76
|
*/
|
|
69
77
|
GetDataHeight(self: DListView): number;
|
|
78
|
+
|
|
70
79
|
/**
|
|
71
80
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
72
81
|
*
|
|
@@ -77,6 +86,7 @@ interface DListView extends DPanel {
|
|
|
77
86
|
* @source https://wiki.facepunch.com/gmod/DListView:GetDirty
|
|
78
87
|
*/
|
|
79
88
|
GetDirty(self: DListView): boolean;
|
|
89
|
+
|
|
80
90
|
/**
|
|
81
91
|
* Returns the height of the header of the [DListView](https://wiki.facepunch.com/gmod/DListView).
|
|
82
92
|
*
|
|
@@ -86,12 +96,14 @@ interface DListView extends DPanel {
|
|
|
86
96
|
* @source https://wiki.facepunch.com/gmod/DListView:GetHeaderHeight
|
|
87
97
|
*/
|
|
88
98
|
GetHeaderHeight(self: DListView): number;
|
|
99
|
+
|
|
89
100
|
/**
|
|
90
101
|
* Returns whether the header line should be visible on not.
|
|
91
102
|
* @realm client and menu
|
|
92
103
|
* @source https://wiki.facepunch.com/gmod/DListView:GetHideHeaders
|
|
93
104
|
*/
|
|
94
105
|
GetHideHeaders(self: DListView): boolean;
|
|
106
|
+
|
|
95
107
|
/**
|
|
96
108
|
* Returns the height of [DListView:GetCanvas](https://wiki.facepunch.com/gmod/DListView:GetCanvas).
|
|
97
109
|
*
|
|
@@ -101,18 +113,21 @@ interface DListView extends DPanel {
|
|
|
101
113
|
* @source https://wiki.facepunch.com/gmod/DListView:GetInnerTall
|
|
102
114
|
*/
|
|
103
115
|
GetInnerTall(self: DListView): number;
|
|
116
|
+
|
|
104
117
|
/**
|
|
105
118
|
* Gets the [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) at the given index.
|
|
106
119
|
* @realm client and menu
|
|
107
120
|
* @source https://wiki.facepunch.com/gmod/DListView:GetLine
|
|
108
121
|
*/
|
|
109
122
|
GetLine(self: DListView, id: number): Panel;
|
|
123
|
+
|
|
110
124
|
/**
|
|
111
125
|
* Gets all of the lines added to the DListView.
|
|
112
126
|
* @realm client and menu
|
|
113
127
|
* @source https://wiki.facepunch.com/gmod/DListView:GetLines
|
|
114
128
|
*/
|
|
115
129
|
GetLines(self: DListView): table;
|
|
130
|
+
|
|
116
131
|
/**
|
|
117
132
|
* Returns whether multiple lines can be selected or not.
|
|
118
133
|
*
|
|
@@ -122,12 +137,14 @@ interface DListView extends DPanel {
|
|
|
122
137
|
* @source https://wiki.facepunch.com/gmod/DListView:GetMultiSelect
|
|
123
138
|
*/
|
|
124
139
|
GetMultiSelect(self: DListView): boolean;
|
|
140
|
+
|
|
125
141
|
/**
|
|
126
142
|
* Gets all of the lines that are currently selected.
|
|
127
143
|
* @realm client and menu
|
|
128
144
|
* @source https://wiki.facepunch.com/gmod/DListView:GetSelected
|
|
129
145
|
*/
|
|
130
146
|
GetSelected(self: DListView): table;
|
|
147
|
+
|
|
131
148
|
/**
|
|
132
149
|
* Gets the currently selected [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) index.
|
|
133
150
|
*
|
|
@@ -137,6 +154,7 @@ interface DListView extends DPanel {
|
|
|
137
154
|
* @source https://wiki.facepunch.com/gmod/DListView:GetSelectedLine
|
|
138
155
|
*/
|
|
139
156
|
GetSelectedLine(self: DListView): (number, Panel);
|
|
157
|
+
|
|
140
158
|
/**
|
|
141
159
|
* Returns whether sorting of columns by clicking their headers is allowed or not.
|
|
142
160
|
*
|
|
@@ -146,6 +164,7 @@ interface DListView extends DPanel {
|
|
|
146
164
|
* @source https://wiki.facepunch.com/gmod/DListView:GetSortable
|
|
147
165
|
*/
|
|
148
166
|
GetSortable(self: DListView): boolean;
|
|
167
|
+
|
|
149
168
|
/**
|
|
150
169
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
151
170
|
*
|
|
@@ -156,6 +175,7 @@ interface DListView extends DPanel {
|
|
|
156
175
|
* @source https://wiki.facepunch.com/gmod/DListView:GetSortedID
|
|
157
176
|
*/
|
|
158
177
|
GetSortedID(self: DListView, lineId: number): number;
|
|
178
|
+
|
|
159
179
|
/**
|
|
160
180
|
* **INTERNAL**: Use [DListView:OnRowSelected](https://wiki.facepunch.com/gmod/DListView:OnRowSelected) instead!
|
|
161
181
|
*
|
|
@@ -166,6 +186,7 @@ interface DListView extends DPanel {
|
|
|
166
186
|
* @source https://wiki.facepunch.com/gmod/DListView:OnClickLine
|
|
167
187
|
*/
|
|
168
188
|
OnClickLine(self: DListView, line: Panel, isSelected: boolean): void;
|
|
189
|
+
|
|
169
190
|
/**
|
|
170
191
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
171
192
|
*
|
|
@@ -176,24 +197,28 @@ interface DListView extends DPanel {
|
|
|
176
197
|
* @source https://wiki.facepunch.com/gmod/DListView:OnRequestResize
|
|
177
198
|
*/
|
|
178
199
|
OnRequestResize(self: DListView, column: Panel, size: number): void;
|
|
200
|
+
|
|
179
201
|
/**
|
|
180
202
|
* Removes a line from the list view.
|
|
181
203
|
* @realm client and menu
|
|
182
204
|
* @source https://wiki.facepunch.com/gmod/DListView:RemoveLine
|
|
183
205
|
*/
|
|
184
206
|
RemoveLine(self: DListView, line: number): void;
|
|
207
|
+
|
|
185
208
|
/**
|
|
186
209
|
* Selects the line at the first index of the DListView if one has been added.
|
|
187
210
|
* @realm client and menu
|
|
188
211
|
* @source https://wiki.facepunch.com/gmod/DListView:SelectFirstItem
|
|
189
212
|
*/
|
|
190
213
|
SelectFirstItem(self: DListView): void;
|
|
214
|
+
|
|
191
215
|
/**
|
|
192
216
|
* Selects a line in the listview.
|
|
193
217
|
* @realm client and menu
|
|
194
218
|
* @source https://wiki.facepunch.com/gmod/DListView:SelectItem
|
|
195
219
|
*/
|
|
196
220
|
SelectItem(self: DListView, Line: Panel): void;
|
|
221
|
+
|
|
197
222
|
/**
|
|
198
223
|
* Sets the height of all lines of the [DListView](https://wiki.facepunch.com/gmod/DListView) except for the header line.
|
|
199
224
|
*
|
|
@@ -203,6 +228,7 @@ interface DListView extends DPanel {
|
|
|
203
228
|
* @source https://wiki.facepunch.com/gmod/DListView:SetDataHeight
|
|
204
229
|
*/
|
|
205
230
|
SetDataHeight(self: DListView, height: number): void;
|
|
231
|
+
|
|
206
232
|
/**
|
|
207
233
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
208
234
|
*
|
|
@@ -213,6 +239,7 @@ interface DListView extends DPanel {
|
|
|
213
239
|
* @source https://wiki.facepunch.com/gmod/DListView:SetDirty
|
|
214
240
|
*/
|
|
215
241
|
SetDirty(self: DListView, isDirty: boolean): void;
|
|
242
|
+
|
|
216
243
|
/**
|
|
217
244
|
* Sets the height of the header line of the [DListView](https://wiki.facepunch.com/gmod/DListView).
|
|
218
245
|
*
|
|
@@ -222,18 +249,21 @@ interface DListView extends DPanel {
|
|
|
222
249
|
* @source https://wiki.facepunch.com/gmod/DListView:SetHeaderHeight
|
|
223
250
|
*/
|
|
224
251
|
SetHeaderHeight(self: DListView, height: number): void;
|
|
252
|
+
|
|
225
253
|
/**
|
|
226
254
|
* Sets whether the header line should be visible on not.
|
|
227
255
|
* @realm client and menu
|
|
228
256
|
* @source https://wiki.facepunch.com/gmod/DListView:SetHideHeaders
|
|
229
257
|
*/
|
|
230
258
|
SetHideHeaders(self: DListView, hide: boolean): void;
|
|
259
|
+
|
|
231
260
|
/**
|
|
232
261
|
* Sets whether multiple lines can be selected by the user by using the Ctrl or Shift keys. When set to false, only one line can be selected.
|
|
233
262
|
* @realm client and menu
|
|
234
263
|
* @source https://wiki.facepunch.com/gmod/DListView:SetMultiSelect
|
|
235
264
|
*/
|
|
236
265
|
SetMultiSelect(self: DListView, allowMultiSelect: boolean): void;
|
|
266
|
+
|
|
237
267
|
/**
|
|
238
268
|
* Enables/disables the sorting of columns by clicking.
|
|
239
269
|
* **NOTE**: This will only affect columns that are created after this function is called. Existing columns will be unaffected.
|
|
@@ -243,12 +273,14 @@ interface DListView extends DPanel {
|
|
|
243
273
|
* @source https://wiki.facepunch.com/gmod/DListView:SetSortable
|
|
244
274
|
*/
|
|
245
275
|
SetSortable(self: DListView, isSortable: boolean): void;
|
|
276
|
+
|
|
246
277
|
/**
|
|
247
278
|
* Sorts the items in the specified column.
|
|
248
279
|
* @realm client and menu
|
|
249
280
|
* @source https://wiki.facepunch.com/gmod/DListView:SortByColumn
|
|
250
281
|
*/
|
|
251
282
|
SortByColumn(self: DListView, columnIndex: number, descending?: boolean): void;
|
|
283
|
+
|
|
252
284
|
/**
|
|
253
285
|
* Sorts the list based on given columns.
|
|
254
286
|
*
|
|
@@ -259,37 +291,3 @@ interface DListView extends DPanel {
|
|
|
259
291
|
*/
|
|
260
292
|
SortByColumns(self: DListView, column1?: number, descrending1?: boolean, column2?: number, descrending2?: boolean, column3?: number, descrending3?: boolean, column4?: number, descrending4?: boolean): void;
|
|
261
293
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
@@ -16,12 +16,14 @@ interface DListView_Column extends Panel {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetColumnID
|
|
17
17
|
*/
|
|
18
18
|
GetColumnID(self: DListView_Column): number;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Returns whether the column is sorted in descending order or not.
|
|
21
22
|
* @realm client and menu
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetDescending
|
|
23
24
|
*/
|
|
24
25
|
GetDescending(self: DListView_Column): boolean;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Returns the fixed width of this column.
|
|
27
29
|
*
|
|
@@ -29,30 +31,35 @@ interface DListView_Column extends Panel {
|
|
|
29
31
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetFixedWidth
|
|
30
32
|
*/
|
|
31
33
|
GetFixedWidth(self: DListView_Column): number;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Returns the maximum width set with [DListView_Column:SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth).
|
|
34
37
|
* @realm client and menu
|
|
35
38
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetMaxWidth
|
|
36
39
|
*/
|
|
37
40
|
GetMaxWidth(self: DListView_Column): number;
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* Returns the minimum width set with [DListView_Column:SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth).
|
|
40
44
|
* @realm client and menu
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetMinWidth
|
|
42
46
|
*/
|
|
43
47
|
GetMinWidth(self: DListView_Column): number;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Returns the text alignment for the column
|
|
46
51
|
* @realm client and menu
|
|
47
52
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:GetTextAlign
|
|
48
53
|
*/
|
|
49
54
|
GetTextAlign(self: DListView_Column): number;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* Resizes the column, additionally adjusting the size of the column to the right, if any.
|
|
52
58
|
* @realm client and menu
|
|
53
59
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:ResizeColumn
|
|
54
60
|
*/
|
|
55
61
|
ResizeColumn(self: DListView_Column, size: number): void;
|
|
62
|
+
|
|
56
63
|
/**
|
|
57
64
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
58
65
|
* Sets the index used for this column.
|
|
@@ -60,12 +67,14 @@ interface DListView_Column extends Panel {
|
|
|
60
67
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:SetColumnID
|
|
61
68
|
*/
|
|
62
69
|
SetColumnID(self: DListView_Column, index: number): void;
|
|
70
|
+
|
|
63
71
|
/**
|
|
64
72
|
* Sets whether the column is sorted in descending order or not.
|
|
65
73
|
* @realm client and menu
|
|
66
74
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:SetDescending
|
|
67
75
|
*/
|
|
68
76
|
SetDescending(self: DListView_Column, desc: boolean): void;
|
|
77
|
+
|
|
69
78
|
/**
|
|
70
79
|
* Sets the fixed width of the column.
|
|
71
80
|
* **NOTE**: Internally this will set [SetMinWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth) and [SetMaxWidth](https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth) to the value provided
|
|
@@ -75,18 +84,21 @@ interface DListView_Column extends Panel {
|
|
|
75
84
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:SetFixedWidth
|
|
76
85
|
*/
|
|
77
86
|
SetFixedWidth(self: DListView_Column, width: number): void;
|
|
87
|
+
|
|
78
88
|
/**
|
|
79
89
|
* Sets the maximum width of a column.
|
|
80
90
|
* @realm client and menu
|
|
81
91
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:SetMaxWidth
|
|
82
92
|
*/
|
|
83
93
|
SetMaxWidth(self: DListView_Column, width: number): void;
|
|
94
|
+
|
|
84
95
|
/**
|
|
85
96
|
* Sets the minimum width of a column.
|
|
86
97
|
* @realm client and menu
|
|
87
98
|
* @source https://wiki.facepunch.com/gmod/DListView_Column:SetMinWidth
|
|
88
99
|
*/
|
|
89
100
|
SetMinWidth(self: DListView_Column, width: number): void;
|
|
101
|
+
|
|
90
102
|
/**
|
|
91
103
|
* Sets the text alignment for the column
|
|
92
104
|
* @realm client and menu
|
|
@@ -94,17 +106,3 @@ interface DListView_Column extends Panel {
|
|
|
94
106
|
*/
|
|
95
107
|
SetTextAlign(self: DListView_Column, alignment: number): void;
|
|
96
108
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
@@ -20,12 +20,14 @@ interface DListView_Line extends Panel {
|
|
|
20
20
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:DataLayout
|
|
21
21
|
*/
|
|
22
22
|
DataLayout(self: DListView_Line, pnl: DListView): void;
|
|
23
|
+
|
|
23
24
|
/**
|
|
24
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.
|
|
25
26
|
* @realm client and menu
|
|
26
27
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetAltLine
|
|
27
28
|
*/
|
|
28
29
|
GetAltLine(self: DListView_Line): boolean;
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Gets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
|
|
31
33
|
*
|
|
@@ -35,18 +37,21 @@ interface DListView_Line extends Panel {
|
|
|
35
37
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetColumnText
|
|
36
38
|
*/
|
|
37
39
|
GetColumnText(self: DListView_Line, column: number): string;
|
|
40
|
+
|
|
38
41
|
/**
|
|
39
42
|
* Returns the ID of this line, set automatically in [DListView:AddLine](https://wiki.facepunch.com/gmod/DListView:AddLine).
|
|
40
43
|
* @realm client and menu
|
|
41
44
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetID
|
|
42
45
|
*/
|
|
43
46
|
GetID(self: DListView_Line): number;
|
|
47
|
+
|
|
44
48
|
/**
|
|
45
49
|
* Returns the parent [DListView](https://wiki.facepunch.com/gmod/DListView) of this line.
|
|
46
50
|
* @realm client and menu
|
|
47
51
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetListView
|
|
48
52
|
*/
|
|
49
53
|
GetListView(self: DListView_Line): DListView;
|
|
54
|
+
|
|
50
55
|
/**
|
|
51
56
|
* Returns the data stored on given cell of this line.
|
|
52
57
|
*
|
|
@@ -55,12 +60,14 @@ interface DListView_Line extends Panel {
|
|
|
55
60
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:GetSortValue
|
|
56
61
|
*/
|
|
57
62
|
GetSortValue(self: DListView_Line, column: number): any;
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* Returns whether this line is selected.
|
|
60
66
|
* @realm client and menu
|
|
61
67
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:IsLineSelected
|
|
62
68
|
*/
|
|
63
69
|
IsLineSelected(self: DListView_Line): boolean;
|
|
70
|
+
|
|
64
71
|
/**
|
|
65
72
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
66
73
|
*
|
|
@@ -69,12 +76,14 @@ interface DListView_Line extends Panel {
|
|
|
69
76
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetAltLine
|
|
70
77
|
*/
|
|
71
78
|
SetAltLine(self: DListView_Line, alt: boolean): void;
|
|
79
|
+
|
|
72
80
|
/**
|
|
73
81
|
* Sets the string held in the specified column of a [DListView_Line](https://wiki.facepunch.com/gmod/DListView_Line) panel.
|
|
74
82
|
* @realm client and menu
|
|
75
83
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetColumnText
|
|
76
84
|
*/
|
|
77
85
|
SetColumnText(self: DListView_Line, column: number, value: string): DLabel;
|
|
86
|
+
|
|
78
87
|
/**
|
|
79
88
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
80
89
|
*
|
|
@@ -84,6 +93,7 @@ interface DListView_Line extends Panel {
|
|
|
84
93
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetID
|
|
85
94
|
*/
|
|
86
95
|
SetID(self: DListView_Line, id: number): void;
|
|
96
|
+
|
|
87
97
|
/**
|
|
88
98
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
89
99
|
*
|
|
@@ -93,6 +103,7 @@ interface DListView_Line extends Panel {
|
|
|
93
103
|
* @source https://wiki.facepunch.com/gmod/DListView_Line:SetListView
|
|
94
104
|
*/
|
|
95
105
|
SetListView(self: DListView_Line, pnl: DListView): void;
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* Allows you to store data per column.
|
|
98
109
|
*
|
|
@@ -102,16 +113,3 @@ interface DListView_Line extends Panel {
|
|
|
102
113
|
*/
|
|
103
114
|
SetSortValue(self: DListView_Line, column: number, data: any): void;
|
|
104
115
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|