@tlua/gmod 1.0.3 → 1.0.5
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/index.d.tlua +1 -0
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +8 -17
- package/types/hook_events.d.tlua +2412 -0
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/tool.d.tlua
CHANGED
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
* You can find the hooks [here](https://wiki.facepunch.com/gmod/TOOL_Hooks), and members [here](https://wiki.facepunch.com/gmod/Structures/TOOL).
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/Tool
|
|
8
8
|
*/
|
|
9
|
-
interface Tool {}
|
|
10
|
-
interface TOOL extends Tool {}
|
|
11
|
-
|
|
12
9
|
interface Tool {
|
|
13
10
|
/**
|
|
14
11
|
* Called when [WEAPON:Deploy](https://wiki.facepunch.com/gmod/WEAPON:Deploy) of the toolgun is called.
|
|
@@ -18,18 +15,12 @@ interface Tool {
|
|
|
18
15
|
* @source https://wiki.facepunch.com/gmod/TOOL:Deploy
|
|
19
16
|
*/
|
|
20
17
|
Deploy(self: Tool): boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface Tool {
|
|
24
18
|
/**
|
|
25
19
|
* Called when [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) of the toolgun is called, only when the user has this tool selected.
|
|
26
20
|
* @realm client
|
|
27
21
|
* @source https://wiki.facepunch.com/gmod/TOOL:DrawHUD
|
|
28
22
|
*/
|
|
29
23
|
DrawHUD(self: Tool): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface Tool {
|
|
33
24
|
/**
|
|
34
25
|
* Called after the default tool screen has been drawn from [WEAPON:RenderScreen](https://wiki.facepunch.com/gmod/WEAPON:RenderScreen).
|
|
35
26
|
*
|
|
@@ -42,63 +33,42 @@ interface Tool {
|
|
|
42
33
|
* @source https://wiki.facepunch.com/gmod/TOOL:DrawToolScreen
|
|
43
34
|
*/
|
|
44
35
|
DrawToolScreen(self: Tool, width: number, height: number): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Tool {
|
|
48
36
|
/**
|
|
49
37
|
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called, only when the user has this tool selected.
|
|
50
38
|
* @realm client
|
|
51
39
|
* @source https://wiki.facepunch.com/gmod/TOOL:FreezeMovement
|
|
52
40
|
*/
|
|
53
41
|
FreezeMovement(self: Tool): boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface Tool {
|
|
57
42
|
/**
|
|
58
43
|
* Called when [WEAPON:Holster](https://wiki.facepunch.com/gmod/WEAPON:Holster) of the toolgun is called, when switching between different toolguns.
|
|
59
44
|
* @realm shared
|
|
60
45
|
* @source https://wiki.facepunch.com/gmod/TOOL:Holster
|
|
61
46
|
*/
|
|
62
47
|
Holster(self: Tool): void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface Tool {
|
|
66
48
|
/**
|
|
67
49
|
* Called when the user left clicks with the tool.
|
|
68
50
|
* @realm shared
|
|
69
51
|
* @source https://wiki.facepunch.com/gmod/TOOL:LeftClick
|
|
70
52
|
*/
|
|
71
53
|
LeftClick(self: Tool, tr: TraceResult): boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface Tool {
|
|
75
54
|
/**
|
|
76
55
|
* Called when the user presses the reload key with the tool out.
|
|
77
56
|
* @realm shared
|
|
78
57
|
* @source https://wiki.facepunch.com/gmod/TOOL:Reload
|
|
79
58
|
*/
|
|
80
59
|
Reload(self: Tool, tr: TraceResult): boolean;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface Tool {
|
|
84
60
|
/**
|
|
85
61
|
* Called when the user right clicks with the tool.
|
|
86
62
|
* @realm shared
|
|
87
63
|
* @source https://wiki.facepunch.com/gmod/TOOL:RightClick
|
|
88
64
|
*/
|
|
89
65
|
RightClick(self: Tool, tr: TraceResult): boolean;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface Tool {
|
|
93
66
|
/**
|
|
94
67
|
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called. This only happens when the tool gun is currently equipped/selected by the player and the selected tool is this tool.
|
|
95
68
|
* @realm shared
|
|
96
69
|
* @source https://wiki.facepunch.com/gmod/TOOL:Think
|
|
97
70
|
*/
|
|
98
71
|
Think(self: Tool): void;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
interface Tool {
|
|
102
72
|
/**
|
|
103
73
|
* Called when the tool's control panel needs to be rebuilt.
|
|
104
74
|
*
|
|
@@ -108,10 +78,6 @@ interface Tool {
|
|
|
108
78
|
* @source https://wiki.facepunch.com/gmod/TOOL.BuildCPanel
|
|
109
79
|
*/
|
|
110
80
|
BuildCPanel(panel: ControlPanel): void;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
interface Tool {
|
|
115
81
|
/**
|
|
116
82
|
* Returns whether the tool is allowed to be used or not. This function ignores the [SANDBOX:CanTool](https://wiki.facepunch.com/gmod/SANDBOX:CanTool) hook.
|
|
117
83
|
*
|
|
@@ -121,18 +87,12 @@ interface Tool {
|
|
|
121
87
|
* @source https://wiki.facepunch.com/gmod/Tool:Allowed
|
|
122
88
|
*/
|
|
123
89
|
Allowed(self: Tool): boolean;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface Tool {
|
|
127
90
|
/**
|
|
128
91
|
* Builds a list of all ConVars set via the ClientConVar variable on the [Structures/TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) and their default values. This is used for the preset system.
|
|
129
92
|
* @realm shared
|
|
130
93
|
* @source https://wiki.facepunch.com/gmod/Tool:BuildConVarList
|
|
131
94
|
*/
|
|
132
95
|
BuildConVarList(self: Tool): table;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
interface Tool {
|
|
136
96
|
/**
|
|
137
97
|
* **INTERNAL**: This is called automatically for most toolgun actions so you shouldn't need to use it.
|
|
138
98
|
*
|
|
@@ -143,18 +103,12 @@ interface Tool {
|
|
|
143
103
|
* @source https://wiki.facepunch.com/gmod/Tool:CheckObjects
|
|
144
104
|
*/
|
|
145
105
|
CheckObjects(self: Tool): void;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
interface Tool {
|
|
149
106
|
/**
|
|
150
107
|
* Clears all objects previously set with [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
151
108
|
* @realm shared
|
|
152
109
|
* @source https://wiki.facepunch.com/gmod/Tool:ClearObjects
|
|
153
110
|
*/
|
|
154
111
|
ClearObjects(self: Tool): void;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
interface Tool {
|
|
158
112
|
/**
|
|
159
113
|
* **INTERNAL**: This is called automatically for all tools.
|
|
160
114
|
*
|
|
@@ -164,9 +118,6 @@ interface Tool {
|
|
|
164
118
|
* @source https://wiki.facepunch.com/gmod/Tool:Create
|
|
165
119
|
*/
|
|
166
120
|
Create(self: Tool): Tool;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
interface Tool {
|
|
170
121
|
/**
|
|
171
122
|
* **INTERNAL**: This is called automatically for all tools.
|
|
172
123
|
*
|
|
@@ -177,63 +128,42 @@ interface Tool {
|
|
|
177
128
|
* @source https://wiki.facepunch.com/gmod/Tool:CreateConVars
|
|
178
129
|
*/
|
|
179
130
|
CreateConVars(self: Tool): void;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface Tool {
|
|
183
131
|
/**
|
|
184
132
|
* Retrieves a physics bone number previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
185
133
|
* @realm shared
|
|
186
134
|
* @source https://wiki.facepunch.com/gmod/Tool:GetBone
|
|
187
135
|
*/
|
|
188
136
|
GetBone(self: Tool, id: number): number;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
interface Tool {
|
|
192
137
|
/**
|
|
193
138
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a [boolean](https://wiki.facepunch.com/gmod/boolean).
|
|
194
139
|
* @realm shared
|
|
195
140
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientBool
|
|
196
141
|
*/
|
|
197
142
|
GetClientBool(self: Tool, name: string, _default?: boolean): number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface Tool {
|
|
201
143
|
/**
|
|
202
144
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) as a [string](https://wiki.facepunch.com/gmod/string).
|
|
203
145
|
* @realm shared
|
|
204
146
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientInfo
|
|
205
147
|
*/
|
|
206
148
|
GetClientInfo(self: Tool, name: string): string;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
interface Tool {
|
|
210
149
|
/**
|
|
211
150
|
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar)'s value as a [number](https://wiki.facepunch.com/gmod/number).
|
|
212
151
|
* @realm shared
|
|
213
152
|
* @source https://wiki.facepunch.com/gmod/Tool:GetClientNumber
|
|
214
153
|
*/
|
|
215
154
|
GetClientNumber(self: Tool, name: string, _default?: number): number;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
interface Tool {
|
|
219
155
|
/**
|
|
220
156
|
* Retrieves an Entity previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
221
157
|
* @realm shared
|
|
222
158
|
* @source https://wiki.facepunch.com/gmod/Tool:GetEnt
|
|
223
159
|
*/
|
|
224
160
|
GetEnt(self: Tool, id: number): Entity;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
interface Tool {
|
|
228
161
|
/**
|
|
229
162
|
* Returns a language key based on this tool's name and the current stage it is on.
|
|
230
163
|
* @realm shared
|
|
231
164
|
* @source https://wiki.facepunch.com/gmod/Tool:GetHelpText
|
|
232
165
|
*/
|
|
233
166
|
GetHelpText(self: Tool): string;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
interface Tool {
|
|
237
167
|
/**
|
|
238
168
|
* Retrieves an local vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
239
169
|
* See also [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos).
|
|
@@ -242,45 +172,30 @@ interface Tool {
|
|
|
242
172
|
* @source https://wiki.facepunch.com/gmod/Tool:GetLocalPos
|
|
243
173
|
*/
|
|
244
174
|
GetLocalPos(self: Tool, id: number): Vector;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface Tool {
|
|
248
175
|
/**
|
|
249
176
|
* Returns the name of the current tool mode.
|
|
250
177
|
* @realm shared
|
|
251
178
|
* @source https://wiki.facepunch.com/gmod/Tool:GetMode
|
|
252
179
|
*/
|
|
253
180
|
GetMode(self: Tool): string;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
interface Tool {
|
|
257
181
|
/**
|
|
258
182
|
* Retrieves an normal vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
259
183
|
* @realm shared
|
|
260
184
|
* @source https://wiki.facepunch.com/gmod/Tool:GetNormal
|
|
261
185
|
*/
|
|
262
186
|
GetNormal(self: Tool, id: number): Vector;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface Tool {
|
|
266
187
|
/**
|
|
267
188
|
* Returns the current operation of the tool set by [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
|
|
268
189
|
* @realm shared
|
|
269
190
|
* @source https://wiki.facepunch.com/gmod/Tool:GetOperation
|
|
270
191
|
*/
|
|
271
192
|
GetOperation(self: Tool): number;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
interface Tool {
|
|
275
193
|
/**
|
|
276
194
|
* Returns the owner of this tool.
|
|
277
195
|
* @realm shared
|
|
278
196
|
* @source https://wiki.facepunch.com/gmod/Tool:GetOwner
|
|
279
197
|
*/
|
|
280
198
|
GetOwner(self: Tool): Player;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
interface Tool {
|
|
284
199
|
/**
|
|
285
200
|
* Retrieves an [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
286
201
|
* See also [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt).
|
|
@@ -289,9 +204,6 @@ interface Tool {
|
|
|
289
204
|
* @source https://wiki.facepunch.com/gmod/Tool:GetPhys
|
|
290
205
|
*/
|
|
291
206
|
GetPhys(self: Tool, id: number): PhysObj;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
interface Tool {
|
|
295
207
|
/**
|
|
296
208
|
* Retrieves a vector previously stored using Tool:SetObject. See also
|
|
297
209
|
* Tool:GetLocalPos.
|
|
@@ -299,10 +211,6 @@ interface Tool {
|
|
|
299
211
|
* @source https://wiki.facepunch.com/gmod/Tool:GetPos
|
|
300
212
|
*/
|
|
301
213
|
GetPos(self: Tool, id?: number): Vector;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
interface Tool {
|
|
306
214
|
/**
|
|
307
215
|
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
308
216
|
* @realm shared
|
|
@@ -310,9 +218,6 @@ interface Tool {
|
|
|
310
218
|
* @deprecated Use Tool:GetWeapon instead.
|
|
311
219
|
*/
|
|
312
220
|
GetSWEP(self: Tool): Weapon;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
interface Tool {
|
|
316
221
|
/**
|
|
317
222
|
* Attempts to grab a serverside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
318
223
|
* This will not do anything on client, despite the function being defined shared.
|
|
@@ -321,27 +226,18 @@ interface Tool {
|
|
|
321
226
|
* @source https://wiki.facepunch.com/gmod/Tool:GetServerInfo
|
|
322
227
|
*/
|
|
323
228
|
GetServerInfo(self: Tool, name: string): string;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
interface Tool {
|
|
327
229
|
/**
|
|
328
230
|
* Returns the current stage of the tool set by [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
329
231
|
* @realm shared
|
|
330
232
|
* @source https://wiki.facepunch.com/gmod/Tool:GetStage
|
|
331
233
|
*/
|
|
332
234
|
GetStage(self: Tool): number;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
interface Tool {
|
|
336
235
|
/**
|
|
337
236
|
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
338
237
|
* @realm shared
|
|
339
238
|
* @source https://wiki.facepunch.com/gmod/Tool:GetWeapon
|
|
340
239
|
*/
|
|
341
240
|
GetWeapon(self: Tool): Weapon;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
interface Tool {
|
|
345
241
|
/**
|
|
346
242
|
* Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.
|
|
347
243
|
*
|
|
@@ -351,9 +247,6 @@ interface Tool {
|
|
|
351
247
|
* @source https://wiki.facepunch.com/gmod/Tool:MakeGhostEntity
|
|
352
248
|
*/
|
|
353
249
|
MakeGhostEntity(self: Tool, model: string, pos: Vector, angle: Angle): void;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
interface Tool {
|
|
357
250
|
/**
|
|
358
251
|
* Returns the amount of stored objects ( [Entity](https://wiki.facepunch.com/gmod/Entity)s ) the tool has.
|
|
359
252
|
* Are TOOLs limited to 4 entities?
|
|
@@ -362,18 +255,12 @@ interface Tool {
|
|
|
362
255
|
* @source https://wiki.facepunch.com/gmod/Tool:NumObjects
|
|
363
256
|
*/
|
|
364
257
|
NumObjects(self: Tool): number;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
interface Tool {
|
|
368
258
|
/**
|
|
369
259
|
* Automatically forces the tool's control panel to be rebuilt.
|
|
370
260
|
* @realm client
|
|
371
261
|
* @source https://wiki.facepunch.com/gmod/Tool:RebuildControlPanel
|
|
372
262
|
*/
|
|
373
263
|
RebuildControlPanel(self: Tool, ...: any): void;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
interface Tool {
|
|
377
264
|
/**
|
|
378
265
|
* Removes any ghost entity created for this tool.
|
|
379
266
|
*
|
|
@@ -382,9 +269,6 @@ interface Tool {
|
|
|
382
269
|
* @source https://wiki.facepunch.com/gmod/Tool:ReleaseGhostEntity
|
|
383
270
|
*/
|
|
384
271
|
ReleaseGhostEntity(self: Tool): void;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
interface Tool {
|
|
388
272
|
/**
|
|
389
273
|
* Stores an [Entity](https://wiki.facepunch.com/gmod/Entity) for later use in the tool.
|
|
390
274
|
*
|
|
@@ -394,9 +278,6 @@ interface Tool {
|
|
|
394
278
|
* @source https://wiki.facepunch.com/gmod/Tool:SetObject
|
|
395
279
|
*/
|
|
396
280
|
SetObject(self: Tool, id: number, ent: Entity, pos: Vector, phys: PhysObj, bone: number, normal: Vector): void;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
interface Tool {
|
|
400
281
|
/**
|
|
401
282
|
* Sets the current operation of the tool. Does nothing clientside. See also [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
402
283
|
*
|
|
@@ -414,9 +295,6 @@ interface Tool {
|
|
|
414
295
|
* @source https://wiki.facepunch.com/gmod/Tool:SetOperation
|
|
415
296
|
*/
|
|
416
297
|
SetOperation(self: Tool, operation: number): void;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
interface Tool {
|
|
420
298
|
/**
|
|
421
299
|
* Sets the current stage of the tool. Does nothing clientside.
|
|
422
300
|
*
|
|
@@ -426,18 +304,12 @@ interface Tool {
|
|
|
426
304
|
* @source https://wiki.facepunch.com/gmod/Tool:SetStage
|
|
427
305
|
*/
|
|
428
306
|
SetStage(self: Tool, stage: number): void;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
interface Tool {
|
|
432
307
|
/**
|
|
433
308
|
* Initializes the ghost entity based on the supplied entity.
|
|
434
309
|
* @realm shared
|
|
435
310
|
* @source https://wiki.facepunch.com/gmod/Tool:StartGhostEntity
|
|
436
311
|
*/
|
|
437
312
|
StartGhostEntity(self: Tool, ent: Entity): void;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
interface Tool {
|
|
441
313
|
/**
|
|
442
314
|
* **INTERNAL**: Called on deploy automatically
|
|
443
315
|
*
|
|
@@ -448,9 +320,6 @@ interface Tool {
|
|
|
448
320
|
* @source https://wiki.facepunch.com/gmod/Tool:UpdateData
|
|
449
321
|
*/
|
|
450
322
|
UpdateData(self: Tool): void;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
interface Tool {
|
|
454
323
|
/**
|
|
455
324
|
* Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
456
325
|
*
|
|
@@ -463,4 +332,50 @@ interface Tool {
|
|
|
463
332
|
*/
|
|
464
333
|
UpdateGhostEntity(self: Tool): void;
|
|
465
334
|
}
|
|
335
|
+
interface TOOL extends Tool {}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
466
381
|
|
|
@@ -7,72 +7,49 @@
|
|
|
7
7
|
* @realm menu
|
|
8
8
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow
|
|
9
9
|
*/
|
|
10
|
-
interface UGCPublishWindow extends DFrame {
|
|
11
|
-
|
|
12
|
-
interface UGCPublishWindow {
|
|
10
|
+
interface UGCPublishWindow extends DFrame {
|
|
13
11
|
/**
|
|
14
12
|
* Checks if the Tags and Title are valid and if so it enables the publish button.
|
|
15
13
|
* @realm menu
|
|
16
14
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:CheckInput
|
|
17
15
|
*/
|
|
18
16
|
CheckInput(self: UGCPublishWindow): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface UGCPublishWindow {
|
|
22
17
|
/**
|
|
23
18
|
* Displays the given error message.
|
|
24
19
|
* @realm menu
|
|
25
20
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DisplayError
|
|
26
21
|
*/
|
|
27
22
|
DisplayError(self: UGCPublishWindow, err: string): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface UGCPublishWindow {
|
|
31
23
|
/**
|
|
32
24
|
* Publishes the Item or throws an error if the Title or Tags are invalid
|
|
33
25
|
* @realm menu
|
|
34
26
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DoPublish
|
|
35
27
|
*/
|
|
36
28
|
DoPublish(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface UGCPublishWindow {
|
|
40
29
|
/**
|
|
41
30
|
* Rezises the panel to nicely fit all children
|
|
42
31
|
* @realm menu
|
|
43
32
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:FitContents
|
|
44
33
|
*/
|
|
45
34
|
FitContents(self: UGCPublishWindow): void;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface UGCPublishWindow {
|
|
49
35
|
/**
|
|
50
36
|
* Returns the name of the current selected tag.
|
|
51
37
|
* @realm menu
|
|
52
38
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:GetChosenTag
|
|
53
39
|
*/
|
|
54
40
|
GetChosenTag(self: UGCPublishWindow): string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface UGCPublishWindow {
|
|
58
41
|
/**
|
|
59
42
|
* Called when the Item was published or if any error occurred while publishing
|
|
60
43
|
* @realm menu
|
|
61
44
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:OnPublishFinished
|
|
62
45
|
*/
|
|
63
46
|
OnPublishFinished(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface UGCPublishWindow {
|
|
67
47
|
/**
|
|
68
48
|
* updated the Workshop items list.
|
|
69
49
|
* @realm menu
|
|
70
50
|
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:Setup
|
|
71
51
|
*/
|
|
72
52
|
Setup(self: UGCPublishWindow, ugcType: string, file: string, imageFile: string, handler: WorkshopFileBase): void;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface UGCPublishWindow {
|
|
76
53
|
/**
|
|
77
54
|
* updated the Workshop items list.
|
|
78
55
|
* @realm menu
|
|
@@ -81,3 +58,11 @@ interface UGCPublishWindow {
|
|
|
81
58
|
UpdateWorkshopItems(self: UGCPublishWindow): void;
|
|
82
59
|
}
|
|
83
60
|
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
package/types/umsg.d.tlua
CHANGED
|
@@ -18,9 +18,6 @@ interface UmsgLib {
|
|
|
18
18
|
* @deprecated You should be using the net instead
|
|
19
19
|
*/
|
|
20
20
|
Angle(angle: Angle): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface UmsgLib {
|
|
24
21
|
/**
|
|
25
22
|
* Writes a bool to the usermessage.
|
|
26
23
|
* @realm server
|
|
@@ -28,9 +25,6 @@ interface UmsgLib {
|
|
|
28
25
|
* @deprecated You should be using the net instead
|
|
29
26
|
*/
|
|
30
27
|
Bool(bool: boolean): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface UmsgLib {
|
|
34
28
|
/**
|
|
35
29
|
* Writes a signed char to the usermessage.
|
|
36
30
|
* @realm server
|
|
@@ -38,9 +32,6 @@ interface UmsgLib {
|
|
|
38
32
|
* @deprecated You should be using the net instead
|
|
39
33
|
*/
|
|
40
34
|
Char(char: number): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface UmsgLib {
|
|
44
35
|
/**
|
|
45
36
|
* Dispatches the usermessage to the client(s).
|
|
46
37
|
* @realm server
|
|
@@ -48,9 +39,6 @@ interface UmsgLib {
|
|
|
48
39
|
* @deprecated You should be using the net instead
|
|
49
40
|
*/
|
|
50
41
|
End(): void;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface UmsgLib {
|
|
54
42
|
/**
|
|
55
43
|
* Writes an entity object to the usermessage. (As an entity handle, which means the entity index + its serial number)
|
|
56
44
|
* @realm server
|
|
@@ -58,9 +46,6 @@ interface UmsgLib {
|
|
|
58
46
|
* @deprecated You should be using the net instead
|
|
59
47
|
*/
|
|
60
48
|
Entity(entity: Entity): void;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface UmsgLib {
|
|
64
49
|
/**
|
|
65
50
|
* Writes a float to the usermessage.
|
|
66
51
|
* @realm server
|
|
@@ -68,9 +53,6 @@ interface UmsgLib {
|
|
|
68
53
|
* @deprecated You should be using the net instead
|
|
69
54
|
*/
|
|
70
55
|
Float(float: number): void;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface UmsgLib {
|
|
74
56
|
/**
|
|
75
57
|
* Writes a signed int (32 bit) to the usermessage.
|
|
76
58
|
* @realm server
|
|
@@ -78,9 +60,6 @@ interface UmsgLib {
|
|
|
78
60
|
* @deprecated You should be using the net instead
|
|
79
61
|
*/
|
|
80
62
|
Long(int: number): void;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface UmsgLib {
|
|
84
63
|
/**
|
|
85
64
|
* The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
|
|
86
65
|
*
|
|
@@ -89,9 +68,6 @@ interface UmsgLib {
|
|
|
89
68
|
* @deprecated Inferior version of util.AddNetworkString
|
|
90
69
|
*/
|
|
91
70
|
PoolString(string: string): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
interface UmsgLib {
|
|
95
71
|
/**
|
|
96
72
|
* Writes a signed short (16 bit) to the usermessage.
|
|
97
73
|
* @realm server
|
|
@@ -99,9 +75,6 @@ interface UmsgLib {
|
|
|
99
75
|
* @deprecated You should be using the net instead
|
|
100
76
|
*/
|
|
101
77
|
Short(short: number): void;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface UmsgLib {
|
|
105
78
|
/**
|
|
106
79
|
* Starts a new usermessage.
|
|
107
80
|
*
|
|
@@ -113,9 +86,6 @@ interface UmsgLib {
|
|
|
113
86
|
* @deprecated You should be using net instead
|
|
114
87
|
*/
|
|
115
88
|
Start(name: string, filter?: Player): void;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
interface UmsgLib {
|
|
119
89
|
/**
|
|
120
90
|
* Writes a null terminated string to the usermessage.
|
|
121
91
|
* @realm server
|
|
@@ -123,9 +93,6 @@ interface UmsgLib {
|
|
|
123
93
|
* @deprecated You should be using the net instead
|
|
124
94
|
*/
|
|
125
95
|
String(string: string): void;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
interface UmsgLib {
|
|
129
96
|
/**
|
|
130
97
|
* Writes a Vector to the usermessage.
|
|
131
98
|
* @realm server
|
|
@@ -133,9 +100,6 @@ interface UmsgLib {
|
|
|
133
100
|
* @deprecated You should be using the net instead
|
|
134
101
|
*/
|
|
135
102
|
Vector(vector: Vector): void;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
interface UmsgLib {
|
|
139
103
|
/**
|
|
140
104
|
* Writes a vector normal to the usermessage.
|
|
141
105
|
* @realm server
|
|
@@ -145,3 +109,15 @@ interface UmsgLib {
|
|
|
145
109
|
VectorNormal(normal: Vector): void;
|
|
146
110
|
}
|
|
147
111
|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|