@tlua/gmod 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/cusercmd.d.tlua
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* Can be modified during [GM:CreateMove](https://wiki.facepunch.com/gmod/GM:CreateMove), [GM:StartCommand](https://wiki.facepunch.com/gmod/GM:StartCommand) and used in read only with [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) and [Player:GetCurrentCommand](https://wiki.facepunch.com/gmod/Player:GetCurrentCommand).
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/CUserCmd
|
|
8
8
|
*/
|
|
9
|
-
interface CUserCmd {}
|
|
10
|
-
|
|
11
9
|
interface CUserCmd {
|
|
12
10
|
/**
|
|
13
11
|
* Adds a single key to the active buttons bitflag. See also [CUserCmd:SetButtons](https://wiki.facepunch.com/gmod/CUserCmd:SetButtons).
|
|
@@ -16,9 +14,7 @@ interface CUserCmd {
|
|
|
16
14
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:AddKey
|
|
17
15
|
*/
|
|
18
16
|
AddKey(self: CUserCmd, key: number): void;
|
|
19
|
-
}
|
|
20
17
|
|
|
21
|
-
interface CUserCmd {
|
|
22
18
|
/**
|
|
23
19
|
* Removes all keys from the command.
|
|
24
20
|
*
|
|
@@ -29,9 +25,7 @@ interface CUserCmd {
|
|
|
29
25
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:ClearButtons
|
|
30
26
|
*/
|
|
31
27
|
ClearButtons(self: CUserCmd): void;
|
|
32
|
-
}
|
|
33
28
|
|
|
34
|
-
interface CUserCmd {
|
|
35
29
|
/**
|
|
36
30
|
* Clears the movement from the command.
|
|
37
31
|
*
|
|
@@ -41,9 +35,7 @@ interface CUserCmd {
|
|
|
41
35
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:ClearMovement
|
|
42
36
|
*/
|
|
43
37
|
ClearMovement(self: CUserCmd): void;
|
|
44
|
-
}
|
|
45
38
|
|
|
46
|
-
interface CUserCmd {
|
|
47
39
|
/**
|
|
48
40
|
* Returns an increasing number representing the index of the user cmd.
|
|
49
41
|
*
|
|
@@ -54,90 +46,70 @@ interface CUserCmd {
|
|
|
54
46
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:CommandNumber
|
|
55
47
|
*/
|
|
56
48
|
CommandNumber(self: CUserCmd): number;
|
|
57
|
-
}
|
|
58
49
|
|
|
59
|
-
interface CUserCmd {
|
|
60
50
|
/**
|
|
61
51
|
* Returns a bitflag indicating which buttons are pressed.
|
|
62
52
|
* @realm shared
|
|
63
53
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetButtons
|
|
64
54
|
*/
|
|
65
55
|
GetButtons(self: CUserCmd): number;
|
|
66
|
-
}
|
|
67
56
|
|
|
68
|
-
interface CUserCmd {
|
|
69
57
|
/**
|
|
70
58
|
* The speed the client wishes to move forward with, negative if the clients wants to move backwards.
|
|
71
59
|
* @realm shared
|
|
72
60
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetForwardMove
|
|
73
61
|
*/
|
|
74
62
|
GetForwardMove(self: CUserCmd): number;
|
|
75
|
-
}
|
|
76
63
|
|
|
77
|
-
interface CUserCmd {
|
|
78
64
|
/**
|
|
79
65
|
* Gets the current impulse from the client, usually 0. [See impulses list](https://developer.valvesoftware.com/wiki/Impulse) and some [GMod specific impulses](https://wiki.facepunch.com/gmod/CUserCmd:SetImpulse).
|
|
80
66
|
* @realm shared
|
|
81
67
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetImpulse
|
|
82
68
|
*/
|
|
83
69
|
GetImpulse(self: CUserCmd): number;
|
|
84
|
-
}
|
|
85
70
|
|
|
86
|
-
interface CUserCmd {
|
|
87
71
|
/**
|
|
88
72
|
* Returns the scroll delta as whole number.
|
|
89
73
|
* @realm shared
|
|
90
74
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseWheel
|
|
91
75
|
*/
|
|
92
76
|
GetMouseWheel(self: CUserCmd): number;
|
|
93
|
-
}
|
|
94
77
|
|
|
95
|
-
interface CUserCmd {
|
|
96
78
|
/**
|
|
97
79
|
* Returns the delta of the angular horizontal mouse movement of the player.
|
|
98
80
|
* @realm shared
|
|
99
81
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseX
|
|
100
82
|
*/
|
|
101
83
|
GetMouseX(self: CUserCmd): number;
|
|
102
|
-
}
|
|
103
84
|
|
|
104
|
-
interface CUserCmd {
|
|
105
85
|
/**
|
|
106
86
|
* Returns the delta of the angular vertical mouse movement of the player.
|
|
107
87
|
* @realm shared
|
|
108
88
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetMouseY
|
|
109
89
|
*/
|
|
110
90
|
GetMouseY(self: CUserCmd): number;
|
|
111
|
-
}
|
|
112
91
|
|
|
113
|
-
interface CUserCmd {
|
|
114
92
|
/**
|
|
115
93
|
* The speed the client wishes to move sideways with, positive if it wants to move right, negative if it wants to move left.
|
|
116
94
|
* @realm shared
|
|
117
95
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetSideMove
|
|
118
96
|
*/
|
|
119
97
|
GetSideMove(self: CUserCmd): number;
|
|
120
|
-
}
|
|
121
98
|
|
|
122
|
-
interface CUserCmd {
|
|
123
99
|
/**
|
|
124
100
|
* The speed the client wishes to move up with, negative if the clients wants to move down.
|
|
125
101
|
* @realm shared
|
|
126
102
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetUpMove
|
|
127
103
|
*/
|
|
128
104
|
GetUpMove(self: CUserCmd): number;
|
|
129
|
-
}
|
|
130
105
|
|
|
131
|
-
interface CUserCmd {
|
|
132
106
|
/**
|
|
133
107
|
* Gets the direction the player is looking in.
|
|
134
108
|
* @realm shared
|
|
135
109
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:GetViewAngles
|
|
136
110
|
*/
|
|
137
111
|
GetViewAngles(self: CUserCmd): Angle;
|
|
138
|
-
}
|
|
139
112
|
|
|
140
|
-
interface CUserCmd {
|
|
141
113
|
/**
|
|
142
114
|
* When players are not sending usercommands to the server (often due to lag), their last usercommand will be executed multiple times as a backup. This function returns true if that is happening.
|
|
143
115
|
*
|
|
@@ -147,18 +119,14 @@ interface CUserCmd {
|
|
|
147
119
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:IsForced
|
|
148
120
|
*/
|
|
149
121
|
IsForced(self: CUserCmd): boolean;
|
|
150
|
-
}
|
|
151
122
|
|
|
152
|
-
interface CUserCmd {
|
|
153
123
|
/**
|
|
154
124
|
* Returns true if the specified button(s) is pressed.
|
|
155
125
|
* @realm shared
|
|
156
126
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:KeyDown
|
|
157
127
|
*/
|
|
158
128
|
KeyDown(self: CUserCmd, key: number): boolean;
|
|
159
|
-
}
|
|
160
129
|
|
|
161
|
-
interface CUserCmd {
|
|
162
130
|
/**
|
|
163
131
|
* Removes a key bit from the current key bitflag.
|
|
164
132
|
*
|
|
@@ -167,9 +135,7 @@ interface CUserCmd {
|
|
|
167
135
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:RemoveKey
|
|
168
136
|
*/
|
|
169
137
|
RemoveKey(self: CUserCmd, button: number): void;
|
|
170
|
-
}
|
|
171
138
|
|
|
172
|
-
interface CUserCmd {
|
|
173
139
|
/**
|
|
174
140
|
* Forces the associated player to select a weapon. This is used internally in the default HL2 weapon selection HUD.
|
|
175
141
|
*
|
|
@@ -182,9 +148,7 @@ interface CUserCmd {
|
|
|
182
148
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SelectWeapon
|
|
183
149
|
*/
|
|
184
150
|
SelectWeapon(self: CUserCmd, weapon: Weapon): void;
|
|
185
|
-
}
|
|
186
151
|
|
|
187
|
-
interface CUserCmd {
|
|
188
152
|
/**
|
|
189
153
|
* Sets the buttons as a bitflag. See also [CUserCmd:GetButtons](https://wiki.facepunch.com/gmod/CUserCmd:GetButtons).
|
|
190
154
|
*
|
|
@@ -195,9 +159,7 @@ interface CUserCmd {
|
|
|
195
159
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetButtons
|
|
196
160
|
*/
|
|
197
161
|
SetButtons(self: CUserCmd, buttons: number): void;
|
|
198
|
-
}
|
|
199
162
|
|
|
200
|
-
interface CUserCmd {
|
|
201
163
|
/**
|
|
202
164
|
* Sets speed the client wishes to move forward with, negative if the clients wants to move backwards.
|
|
203
165
|
*
|
|
@@ -207,9 +169,7 @@ interface CUserCmd {
|
|
|
207
169
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetForwardMove
|
|
208
170
|
*/
|
|
209
171
|
SetForwardMove(self: CUserCmd, speed: number): void;
|
|
210
|
-
}
|
|
211
172
|
|
|
212
|
-
interface CUserCmd {
|
|
213
173
|
/**
|
|
214
174
|
* Sets the impulse command to be sent to the server.
|
|
215
175
|
*
|
|
@@ -226,18 +186,14 @@ interface CUserCmd {
|
|
|
226
186
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetImpulse
|
|
227
187
|
*/
|
|
228
188
|
SetImpulse(self: CUserCmd, impulse: number): void;
|
|
229
|
-
}
|
|
230
189
|
|
|
231
|
-
interface CUserCmd {
|
|
232
190
|
/**
|
|
233
191
|
* Sets the scroll delta.
|
|
234
192
|
* @realm shared
|
|
235
193
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseWheel
|
|
236
194
|
*/
|
|
237
195
|
SetMouseWheel(self: CUserCmd, speed: number): void;
|
|
238
|
-
}
|
|
239
196
|
|
|
240
|
-
interface CUserCmd {
|
|
241
197
|
/**
|
|
242
198
|
* Sets the delta of the angular horizontal mouse movement of the player.
|
|
243
199
|
*
|
|
@@ -247,9 +203,7 @@ interface CUserCmd {
|
|
|
247
203
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseX
|
|
248
204
|
*/
|
|
249
205
|
SetMouseX(self: CUserCmd, speed: number): void;
|
|
250
|
-
}
|
|
251
206
|
|
|
252
|
-
interface CUserCmd {
|
|
253
207
|
/**
|
|
254
208
|
* Sets the delta of the angular vertical mouse movement of the player.
|
|
255
209
|
*
|
|
@@ -259,9 +213,7 @@ interface CUserCmd {
|
|
|
259
213
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetMouseY
|
|
260
214
|
*/
|
|
261
215
|
SetMouseY(self: CUserCmd, speed: number): void;
|
|
262
|
-
}
|
|
263
216
|
|
|
264
|
-
interface CUserCmd {
|
|
265
217
|
/**
|
|
266
218
|
* Sets speed the client wishes to move sidewards with, positive to move right, negative to move left.
|
|
267
219
|
*
|
|
@@ -271,9 +223,7 @@ interface CUserCmd {
|
|
|
271
223
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetSideMove
|
|
272
224
|
*/
|
|
273
225
|
SetSideMove(self: CUserCmd, speed: number): void;
|
|
274
|
-
}
|
|
275
226
|
|
|
276
|
-
interface CUserCmd {
|
|
277
227
|
/**
|
|
278
228
|
* Sets speed the client wishes to move upwards with, negative to move down.
|
|
279
229
|
*
|
|
@@ -285,9 +235,7 @@ interface CUserCmd {
|
|
|
285
235
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetUpMove
|
|
286
236
|
*/
|
|
287
237
|
SetUpMove(self: CUserCmd, speed: number): void;
|
|
288
|
-
}
|
|
289
238
|
|
|
290
|
-
interface CUserCmd {
|
|
291
239
|
/**
|
|
292
240
|
* Sets the direction the client wants to move in.
|
|
293
241
|
*
|
|
@@ -300,9 +248,7 @@ interface CUserCmd {
|
|
|
300
248
|
* @source https://wiki.facepunch.com/gmod/CUserCmd:SetViewAngles
|
|
301
249
|
*/
|
|
302
250
|
SetViewAngles(self: CUserCmd, viewAngle: Angle): void;
|
|
303
|
-
}
|
|
304
251
|
|
|
305
|
-
interface CUserCmd {
|
|
306
252
|
/**
|
|
307
253
|
* Returns tick count since joining the server.
|
|
308
254
|
*
|
|
@@ -317,4 +263,3 @@ interface CUserCmd {
|
|
|
317
263
|
*/
|
|
318
264
|
TickCount(self: CUserCmd): number;
|
|
319
265
|
}
|
|
320
|
-
|
package/types/cvars.d.tlua
CHANGED
|
@@ -18,36 +18,28 @@ interface CvarsLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/cvars.AddChangeCallback
|
|
19
19
|
*/
|
|
20
20
|
AddChangeCallback(name: string, callback: (convar: string, oldValue: string, newValue: string) => void, identifier?: string): void;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface CvarsLib {
|
|
24
22
|
/**
|
|
25
23
|
* Retrieves console variable as a boolean.
|
|
26
24
|
* @realm shared and menu
|
|
27
25
|
* @source https://wiki.facepunch.com/gmod/cvars.Bool
|
|
28
26
|
*/
|
|
29
27
|
Bool(cvar: string, _default?: boolean): boolean;
|
|
30
|
-
}
|
|
31
28
|
|
|
32
|
-
interface CvarsLib {
|
|
33
29
|
/**
|
|
34
30
|
* Returns a table of the given [ConVar](https://wiki.facepunch.com/gmod/ConVar)s callbacks.
|
|
35
31
|
* @realm shared and menu
|
|
36
32
|
* @source https://wiki.facepunch.com/gmod/cvars.GetConVarCallbacks
|
|
37
33
|
*/
|
|
38
34
|
GetConVarCallbacks(name: string, createIfNotFound?: boolean): table;
|
|
39
|
-
}
|
|
40
35
|
|
|
41
|
-
interface CvarsLib {
|
|
42
36
|
/**
|
|
43
37
|
* Retrieves console variable as a number.
|
|
44
38
|
* @realm shared and menu
|
|
45
39
|
* @source https://wiki.facepunch.com/gmod/cvars.Number
|
|
46
40
|
*/
|
|
47
41
|
Number(cvar: string, _default?: any): number;
|
|
48
|
-
}
|
|
49
42
|
|
|
50
|
-
interface CvarsLib {
|
|
51
43
|
/**
|
|
52
44
|
* **INTERNAL**: You are probably looking for [cvars.AddChangeCallback](https://wiki.facepunch.com/gmod/cvars.AddChangeCallback).
|
|
53
45
|
*
|
|
@@ -58,18 +50,14 @@ interface CvarsLib {
|
|
|
58
50
|
* @source https://wiki.facepunch.com/gmod/cvars.OnConVarChanged
|
|
59
51
|
*/
|
|
60
52
|
OnConVarChanged(name: string, oldVal: string, newVal: string): void;
|
|
61
|
-
}
|
|
62
53
|
|
|
63
|
-
interface CvarsLib {
|
|
64
54
|
/**
|
|
65
55
|
* Removes a callback for a convar using the the callback's identifier. The identifier should be the third argument specified for [cvars.AddChangeCallback](https://wiki.facepunch.com/gmod/cvars.AddChangeCallback).
|
|
66
56
|
* @realm shared and menu
|
|
67
57
|
* @source https://wiki.facepunch.com/gmod/cvars.RemoveChangeCallback
|
|
68
58
|
*/
|
|
69
59
|
RemoveChangeCallback(name: string, indentifier: string): void;
|
|
70
|
-
}
|
|
71
60
|
|
|
72
|
-
interface CvarsLib {
|
|
73
61
|
/**
|
|
74
62
|
* Retrieves console variable as a string.
|
|
75
63
|
* @realm shared and menu
|
|
@@ -77,4 +65,3 @@ interface CvarsLib {
|
|
|
77
65
|
*/
|
|
78
66
|
String(cvar: string, _default?: any): string;
|
|
79
67
|
}
|
|
80
|
-
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
* @realm client
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel
|
|
12
12
|
*/
|
|
13
|
-
interface DAdjustableModelPanel extends DModelPanel {
|
|
14
|
-
|
|
15
|
-
interface DAdjustableModelPanel {
|
|
13
|
+
interface DAdjustableModelPanel extends DModelPanel {
|
|
16
14
|
/**
|
|
17
15
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
18
16
|
* Used by the panel to perform mouse capture operations when adjusting the model.
|
|
@@ -20,9 +18,7 @@ interface DAdjustableModelPanel {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:CaptureMouse
|
|
21
19
|
*/
|
|
22
20
|
CaptureMouse(self: DAdjustableModelPanel): void;
|
|
23
|
-
}
|
|
24
21
|
|
|
25
|
-
interface DAdjustableModelPanel {
|
|
26
22
|
/**
|
|
27
23
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
28
24
|
* Used to adjust the perspective in the model panel via the keyboard, when the right mouse button is used.
|
|
@@ -30,9 +26,7 @@ interface DAdjustableModelPanel {
|
|
|
30
26
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:FirstPersonControls
|
|
31
27
|
*/
|
|
32
28
|
FirstPersonControls(self: DAdjustableModelPanel): void;
|
|
33
|
-
}
|
|
34
29
|
|
|
35
|
-
interface DAdjustableModelPanel {
|
|
36
30
|
/**
|
|
37
31
|
* Gets whether mouse and keyboard-based adjustment of the perspective has been enabled. See [DAdjustableModelPanel:SetFirstPerson](https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetFirstPerson) for more information.
|
|
38
32
|
*
|
|
@@ -42,9 +36,7 @@ interface DAdjustableModelPanel {
|
|
|
42
36
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:GetFirstPerson
|
|
43
37
|
*/
|
|
44
38
|
GetFirstPerson(self: DAdjustableModelPanel): boolean;
|
|
45
|
-
}
|
|
46
39
|
|
|
47
|
-
interface DAdjustableModelPanel {
|
|
48
40
|
/**
|
|
49
41
|
* Returns the movement speed multiplier set by [DAdjustableModelPanel:SetMovementScale](https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetMovementScale).
|
|
50
42
|
*
|
|
@@ -54,9 +46,7 @@ interface DAdjustableModelPanel {
|
|
|
54
46
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:GetMovementScale
|
|
55
47
|
*/
|
|
56
48
|
GetMovementScale(self: DAdjustableModelPanel): number;
|
|
57
|
-
}
|
|
58
49
|
|
|
59
|
-
interface DAdjustableModelPanel {
|
|
60
50
|
/**
|
|
61
51
|
* Enables mouse and keyboard-based adjustment of the perspective.
|
|
62
52
|
*
|
|
@@ -68,9 +58,7 @@ interface DAdjustableModelPanel {
|
|
|
68
58
|
* @source https://wiki.facepunch.com/gmod/DAdjustableModelPanel:SetFirstPerson
|
|
69
59
|
*/
|
|
70
60
|
SetFirstPerson(self: DAdjustableModelPanel, enable: boolean): void;
|
|
71
|
-
}
|
|
72
61
|
|
|
73
|
-
interface DAdjustableModelPanel {
|
|
74
62
|
/**
|
|
75
63
|
* Sets the movement speed multiplier. Currently this only affects first person camera controls.
|
|
76
64
|
* @realm client
|
|
@@ -78,4 +66,3 @@ interface DAdjustableModelPanel {
|
|
|
78
66
|
*/
|
|
79
67
|
SetMovementScale(self: DAdjustableModelPanel, arg0: number): void;
|
|
80
68
|
}
|
|
81
|
-
|
package/types/dalphabar.d.tlua
CHANGED
|
@@ -5,18 +5,14 @@
|
|
|
5
5
|
* @realm client and menu
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DAlphaBar
|
|
7
7
|
*/
|
|
8
|
-
interface DAlphaBar extends DPanel {
|
|
9
|
-
|
|
10
|
-
interface DAlphaBar {
|
|
8
|
+
interface DAlphaBar extends DPanel {
|
|
11
9
|
/**
|
|
12
10
|
* Returns the base color of the alpha bar. This is the color for which the alpha channel is being modified. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
13
11
|
* @realm client and menu
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/DAlphaBar:GetBarColor
|
|
15
13
|
*/
|
|
16
14
|
GetBarColor(self: DAlphaBar): Color;
|
|
17
|
-
}
|
|
18
15
|
|
|
19
|
-
interface DAlphaBar {
|
|
20
16
|
/**
|
|
21
17
|
* Sets the base color of the alpha bar. This is the color for which the alpha channel is being modified. An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
22
18
|
* @realm client and menu
|
|
@@ -24,4 +20,3 @@ interface DAlphaBar {
|
|
|
24
20
|
*/
|
|
25
21
|
SetBarColor(self: DAlphaBar, clr: Color): void;
|
|
26
22
|
}
|
|
27
|
-
|
package/types/dbinder.d.tlua
CHANGED
|
@@ -5,27 +5,21 @@
|
|
|
5
5
|
* @realm client
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DBinder
|
|
7
7
|
*/
|
|
8
|
-
interface DBinder extends DButton {
|
|
9
|
-
|
|
10
|
-
interface DBinder {
|
|
8
|
+
interface DBinder extends DButton {
|
|
11
9
|
/**
|
|
12
10
|
* Gets the code of the key currently bound by the DBinder. Same as [DBinder:GetValue](https://wiki.facepunch.com/gmod/DBinder:GetValue). An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc)
|
|
13
11
|
* @realm client
|
|
14
12
|
* @source https://wiki.facepunch.com/gmod/DBinder:GetSelectedNumber
|
|
15
13
|
*/
|
|
16
14
|
GetSelectedNumber(self: DBinder): number;
|
|
17
|
-
}
|
|
18
15
|
|
|
19
|
-
interface DBinder {
|
|
20
16
|
/**
|
|
21
17
|
* Sets the current key bound by the [DBinder](https://wiki.facepunch.com/gmod/DBinder), and updates the button's text as well as the [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
22
18
|
* @realm client
|
|
23
19
|
* @source https://wiki.facepunch.com/gmod/DBinder:SetSelectedNumber
|
|
24
20
|
*/
|
|
25
21
|
SetSelectedNumber(self: DBinder, keyCode: number): void;
|
|
26
|
-
}
|
|
27
22
|
|
|
28
|
-
interface DBinder {
|
|
29
23
|
/**
|
|
30
24
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
31
25
|
* Used to set the text of the DBinder to the current key binding, or `NONE`.
|
|
@@ -34,4 +28,3 @@ interface DBinder {
|
|
|
34
28
|
*/
|
|
35
29
|
UpdateText(self: DBinder): void;
|
|
36
30
|
}
|
|
37
|
-
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* @realm client
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/DBubbleContainer
|
|
7
7
|
*/
|
|
8
|
-
interface DBubbleContainer extends DPanel {
|
|
9
|
-
|
|
10
|
-
interface DBubbleContainer {
|
|
8
|
+
interface DBubbleContainer extends DPanel {
|
|
11
9
|
/**
|
|
12
10
|
* Sets the speech bubble position and size along with the dialog point position.
|
|
13
11
|
* @realm client
|
|
@@ -15,4 +13,3 @@ interface DBubbleContainer {
|
|
|
15
13
|
*/
|
|
16
14
|
OpenForPos(self: DBubbleContainer, x: number, y: number, w: number, h: number): void;
|
|
17
15
|
}
|
|
18
|
-
|
package/types/dbutton.d.tlua
CHANGED
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
* @realm client and menu
|
|
9
9
|
* @source https://wiki.facepunch.com/gmod/DButton
|
|
10
10
|
*/
|
|
11
|
-
interface DButton extends DLabel {
|
|
12
|
-
|
|
13
|
-
interface DButton {
|
|
11
|
+
interface DButton extends DLabel {
|
|
14
12
|
/**
|
|
15
13
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that returns value set by [DButton:SetDrawBorder](https://wiki.facepunch.com/gmod/DButton:SetDrawBorder). See that page for more info.
|
|
16
14
|
*
|
|
@@ -18,18 +16,14 @@ interface DButton {
|
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/DButton:GetDrawBorder
|
|
19
17
|
*/
|
|
20
18
|
GetDrawBorder(self: DButton): boolean;
|
|
21
|
-
}
|
|
22
19
|
|
|
23
|
-
interface DButton {
|
|
24
20
|
/**
|
|
25
21
|
* Returns true if the DButton is currently depressed (a user is clicking on it).
|
|
26
22
|
* @realm client and menu
|
|
27
23
|
* @source https://wiki.facepunch.com/gmod/DButton:IsDown
|
|
28
24
|
*/
|
|
29
25
|
IsDown(self: DButton): boolean;
|
|
30
|
-
}
|
|
31
26
|
|
|
32
|
-
interface DButton {
|
|
33
27
|
/**
|
|
34
28
|
* Sets a console command to be called when the button is clicked.
|
|
35
29
|
*
|
|
@@ -39,9 +33,7 @@ interface DButton {
|
|
|
39
33
|
* @source https://wiki.facepunch.com/gmod/DButton:SetConsoleCommand
|
|
40
34
|
*/
|
|
41
35
|
SetConsoleCommand(self: DButton, command: string, args?: string): void;
|
|
42
|
-
}
|
|
43
36
|
|
|
44
|
-
interface DButton {
|
|
45
37
|
/**
|
|
46
38
|
* Does absolutely nothing at all. Default value is automatically set to true.
|
|
47
39
|
*
|
|
@@ -49,18 +41,14 @@ interface DButton {
|
|
|
49
41
|
* @source https://wiki.facepunch.com/gmod/DButton:SetDrawBorder
|
|
50
42
|
*/
|
|
51
43
|
SetDrawBorder(self: DButton, draw: boolean): void;
|
|
52
|
-
}
|
|
53
44
|
|
|
54
|
-
interface DButton {
|
|
55
45
|
/**
|
|
56
46
|
* Sets an image to be displayed as the button's background. Alias of [DButton:SetImage](https://wiki.facepunch.com/gmod/DButton:SetImage)
|
|
57
47
|
* @realm client and menu
|
|
58
48
|
* @source https://wiki.facepunch.com/gmod/DButton:SetIcon
|
|
59
49
|
*/
|
|
60
50
|
SetIcon(self: DButton, img?: string): void;
|
|
61
|
-
}
|
|
62
51
|
|
|
63
|
-
interface DButton {
|
|
64
52
|
/**
|
|
65
53
|
* Sets an image to be displayed as the button's background.
|
|
66
54
|
*
|
|
@@ -72,9 +60,7 @@ interface DButton {
|
|
|
72
60
|
* @source https://wiki.facepunch.com/gmod/DButton:SetImage
|
|
73
61
|
*/
|
|
74
62
|
SetImage(self: DButton, img?: string): void;
|
|
75
|
-
}
|
|
76
63
|
|
|
77
|
-
interface DButton {
|
|
78
64
|
/**
|
|
79
65
|
* Sets an image to be displayed as the button's background.
|
|
80
66
|
*
|
|
@@ -85,4 +71,3 @@ interface DButton {
|
|
|
85
71
|
*/
|
|
86
72
|
SetMaterial(self: DButton, img?: IMaterial): void;
|
|
87
73
|
}
|
|
88
|
-
|
package/types/dcheckbox.d.tlua
CHANGED
|
@@ -6,36 +6,28 @@
|
|
|
6
6
|
* @realm client and menu
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/DCheckBox
|
|
8
8
|
*/
|
|
9
|
-
interface DCheckBox extends DButton {
|
|
10
|
-
|
|
11
|
-
interface DCheckBox {
|
|
9
|
+
interface DCheckBox extends DButton {
|
|
12
10
|
/**
|
|
13
11
|
* Calls [DCheckBox:Toggle](https://wiki.facepunch.com/gmod/DCheckBox:Toggle)
|
|
14
12
|
* @realm client and menu
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:DoClick
|
|
16
14
|
*/
|
|
17
15
|
DoClick(self: DCheckBox): void;
|
|
18
|
-
}
|
|
19
16
|
|
|
20
|
-
interface DCheckBox {
|
|
21
17
|
/**
|
|
22
18
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the checked state of the checkbox.
|
|
23
19
|
* @realm client and menu
|
|
24
20
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:GetChecked
|
|
25
21
|
*/
|
|
26
22
|
GetChecked(self: DCheckBox): boolean;
|
|
27
|
-
}
|
|
28
23
|
|
|
29
|
-
interface DCheckBox {
|
|
30
24
|
/**
|
|
31
25
|
* Returns whether the state of the checkbox is being edited. This means whether the user is currently clicking (mouse-down) on the checkbox, and applies to both the left and right mouse buttons.
|
|
32
26
|
* @realm client and menu
|
|
33
27
|
* @source https://wiki.facepunch.com/gmod/DCheckBox:IsEditing
|
|
34
28
|
*/
|
|
35
29
|
IsEditing(self: DCheckBox): boolean;
|
|
36
|
-
}
|
|
37
30
|
|
|
38
|
-
interface DCheckBox {
|
|
39
31
|
/**
|
|
40
32
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the checked state of the checkbox. Does not call the checkbox's [DCheckBox:OnChange](https://wiki.facepunch.com/gmod/DCheckBox:OnChange) and [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged) methods, unlike [DCheckBox:SetValue](https://wiki.facepunch.com/gmod/DCheckBox:SetValue).
|
|
41
33
|
* @realm client and menu
|
|
@@ -43,4 +35,3 @@ interface DCheckBox {
|
|
|
43
35
|
*/
|
|
44
36
|
SetChecked(self: DCheckBox, checked: boolean): void;
|
|
45
37
|
}
|
|
46
|
-
|
|
@@ -3,27 +3,21 @@
|
|
|
3
3
|
interface DCheckBoxLabel extends Panel {
|
|
4
4
|
Button: DCheckBox;
|
|
5
5
|
Label: DLabel;
|
|
6
|
-
}
|
|
7
6
|
|
|
8
|
-
interface DCheckBoxLabel {
|
|
9
7
|
/**
|
|
10
8
|
* Gets the checked state of the checkbox. This calls the checkbox's [DCheckBox:GetChecked](https://wiki.facepunch.com/gmod/DCheckBox:GetChecked) function.
|
|
11
9
|
* @realm client and menu
|
|
12
10
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetChecked
|
|
13
11
|
*/
|
|
14
12
|
GetChecked(self: DCheckBoxLabel): boolean;
|
|
15
|
-
}
|
|
16
13
|
|
|
17
|
-
interface DCheckBoxLabel {
|
|
18
14
|
/**
|
|
19
15
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that gets the indentation of the element on the X axis. See also [DCheckBoxLabel:SetIndent](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent)
|
|
20
16
|
* @realm client and menu
|
|
21
17
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:GetIndent
|
|
22
18
|
*/
|
|
23
19
|
GetIndent(self: DCheckBoxLabel): number;
|
|
24
|
-
}
|
|
25
20
|
|
|
26
|
-
interface DCheckBoxLabel {
|
|
27
21
|
/**
|
|
28
22
|
* Sets the color of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel)'s text to the bright text color defined in the skin.
|
|
29
23
|
*
|
|
@@ -31,18 +25,14 @@ interface DCheckBoxLabel {
|
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetBright
|
|
32
26
|
*/
|
|
33
27
|
SetBright(self: DCheckBoxLabel, bright: boolean): void;
|
|
34
|
-
}
|
|
35
28
|
|
|
36
|
-
interface DCheckBoxLabel {
|
|
37
29
|
/**
|
|
38
30
|
* Sets the checked state of the checkbox. Does not call [DCheckBoxLabel:OnChange](https://wiki.facepunch.com/gmod/DCheckBoxLabel:OnChange) or [Panel:ConVarChanged](https://wiki.facepunch.com/gmod/Panel:ConVarChanged), unlike [DCheckBoxLabel:SetValue](https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetValue).
|
|
39
31
|
* @realm client and menu
|
|
40
32
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetChecked
|
|
41
33
|
*/
|
|
42
34
|
SetChecked(self: DCheckBoxLabel, checked: boolean): void;
|
|
43
|
-
}
|
|
44
35
|
|
|
45
|
-
interface DCheckBoxLabel {
|
|
46
36
|
/**
|
|
47
37
|
* Sets the text of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel) to be dark colored in accordance with the currently active Derma skin.
|
|
48
38
|
*
|
|
@@ -50,36 +40,28 @@ interface DCheckBoxLabel {
|
|
|
50
40
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetDark
|
|
51
41
|
*/
|
|
52
42
|
SetDark(self: DCheckBoxLabel, darkify: boolean): void;
|
|
53
|
-
}
|
|
54
43
|
|
|
55
|
-
interface DCheckBoxLabel {
|
|
56
44
|
/**
|
|
57
45
|
* Sets the font of the text part of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
58
46
|
* @realm client and menu
|
|
59
47
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetFont
|
|
60
48
|
*/
|
|
61
49
|
SetFont(self: DCheckBoxLabel, font: string): void;
|
|
62
|
-
}
|
|
63
50
|
|
|
64
|
-
interface DCheckBoxLabel {
|
|
65
51
|
/**
|
|
66
52
|
* An [Global.AccessorFunc](https://wiki.facepunch.com/gmod/Global.AccessorFunc) that sets the indentation of the element on the X axis.
|
|
67
53
|
* @realm client and menu
|
|
68
54
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetIndent
|
|
69
55
|
*/
|
|
70
56
|
SetIndent(self: DCheckBoxLabel, ident: number): void;
|
|
71
|
-
}
|
|
72
57
|
|
|
73
|
-
interface DCheckBoxLabel {
|
|
74
58
|
/**
|
|
75
59
|
* Sets the text color for the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
76
60
|
* @realm client and menu
|
|
77
61
|
* @source https://wiki.facepunch.com/gmod/DCheckBoxLabel:SetTextColor
|
|
78
62
|
*/
|
|
79
63
|
SetTextColor(self: DCheckBoxLabel, color: Color): void;
|
|
80
|
-
}
|
|
81
64
|
|
|
82
|
-
interface DCheckBoxLabel {
|
|
83
65
|
/**
|
|
84
66
|
* Toggles the checked state of the [DCheckBoxLabel](https://wiki.facepunch.com/gmod/DCheckBoxLabel).
|
|
85
67
|
* @realm client and menu
|
|
@@ -87,4 +69,3 @@ interface DCheckBoxLabel {
|
|
|
87
69
|
*/
|
|
88
70
|
Toggle(self: DCheckBoxLabel): void;
|
|
89
71
|
}
|
|
90
|
-
|