@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/jit.d.tlua
CHANGED
|
@@ -25,37 +25,38 @@ interface JitLib {
|
|
|
25
25
|
* @deprecated This function was disabled due to security concerns.
|
|
26
26
|
*/
|
|
27
27
|
attach(callback: function, event: string): void;
|
|
28
|
-
}
|
|
29
28
|
|
|
30
|
-
interface JitLib {
|
|
31
29
|
/**
|
|
32
30
|
* Flushes the whole cache of compiled code.
|
|
33
31
|
* @realm shared and menu
|
|
34
32
|
* @source https://wiki.facepunch.com/gmod/jit.flush
|
|
35
33
|
*/
|
|
36
34
|
flush(): void;
|
|
37
|
-
}
|
|
38
35
|
|
|
39
|
-
interface JitLib {
|
|
40
36
|
/**
|
|
41
37
|
* Disables LuaJIT Lua compilation.
|
|
42
38
|
* @realm shared and menu
|
|
43
39
|
* @source https://wiki.facepunch.com/gmod/jit.off
|
|
44
40
|
*/
|
|
45
41
|
off(): void;
|
|
46
|
-
}
|
|
47
42
|
|
|
48
|
-
interface JitLib {
|
|
49
43
|
/**
|
|
50
44
|
* Enables LuaJIT Lua compilation.
|
|
51
45
|
* @realm shared and menu
|
|
52
46
|
* @source https://wiki.facepunch.com/gmod/jit.on
|
|
53
47
|
*/
|
|
54
48
|
on(): void;
|
|
55
|
-
}
|
|
56
49
|
|
|
57
|
-
interface JitLib {
|
|
58
50
|
opt: JitoptLib;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns the status of the JIT compiler and the current optimizations enabled.
|
|
54
|
+
* @realm shared and menu
|
|
55
|
+
* @source https://wiki.facepunch.com/gmod/jit.status
|
|
56
|
+
*/
|
|
57
|
+
status(): (boolean, any);
|
|
58
|
+
|
|
59
|
+
util: JitutilLib;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
interface JitoptLib {
|
|
@@ -79,19 +80,6 @@ interface JitoptLib {
|
|
|
79
80
|
start(...: any): void;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
interface JitLib {
|
|
83
|
-
/**
|
|
84
|
-
* Returns the status of the JIT compiler and the current optimizations enabled.
|
|
85
|
-
* @realm shared and menu
|
|
86
|
-
* @source https://wiki.facepunch.com/gmod/jit.status
|
|
87
|
-
*/
|
|
88
|
-
status(): (boolean, any);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface JitLib {
|
|
92
|
-
util: JitutilLib;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
83
|
interface JitutilLib {
|
|
96
84
|
/**
|
|
97
85
|
* Returns bytecode of a function at a position.
|
|
@@ -102,9 +90,7 @@ interface JitutilLib {
|
|
|
102
90
|
* @source https://wiki.facepunch.com/gmod/jit.util.funcbc
|
|
103
91
|
*/
|
|
104
92
|
funcbc(func: function, pos: number): (number, number);
|
|
105
|
-
}
|
|
106
93
|
|
|
107
|
-
interface JitutilLib {
|
|
108
94
|
/**
|
|
109
95
|
* Retrieves LuaJIT information about a given function, similarly to [debug.getinfo](https://wiki.facepunch.com/gmod/debug.getinfo). Possible table fields:
|
|
110
96
|
* * linedefined: as for [debug.getinfo](https://wiki.facepunch.com/gmod/debug.getinfo)
|
|
@@ -127,9 +113,7 @@ interface JitutilLib {
|
|
|
127
113
|
* @source https://wiki.facepunch.com/gmod/jit.util.funcinfo
|
|
128
114
|
*/
|
|
129
115
|
funcinfo(func: function, pos?: number): table;
|
|
130
|
-
}
|
|
131
116
|
|
|
132
|
-
interface JitutilLib {
|
|
133
117
|
/**
|
|
134
118
|
* Gets a constant at a certain index in a function.
|
|
135
119
|
*
|
|
@@ -146,9 +130,7 @@ interface JitutilLib {
|
|
|
146
130
|
* @deprecated This function was disabled due to security concerns.
|
|
147
131
|
*/
|
|
148
132
|
funck(func: function, index: number): any;
|
|
149
|
-
}
|
|
150
133
|
|
|
151
|
-
interface JitutilLib {
|
|
152
134
|
/**
|
|
153
135
|
* Does the exact same thing as [debug.getupvalue](https://wiki.facepunch.com/gmod/debug.getupvalue) except it only returns the name, not the name and the object. The upvalue indexes also start at 0 rather than 1, so doing `jit.util.funcuvname(func, 0)` will get you the same name as `debug.getupvalue(func, 1)`
|
|
154
136
|
* **WARNING**: This function isn't officially documented on LuaJIT wiki, use it at your own risk.
|
|
@@ -159,9 +141,7 @@ interface JitutilLib {
|
|
|
159
141
|
* @deprecated This function was disabled due to security concerns.
|
|
160
142
|
*/
|
|
161
143
|
funcuvname(func: function, index: number): string;
|
|
162
|
-
}
|
|
163
144
|
|
|
164
|
-
interface JitutilLib {
|
|
165
145
|
/**
|
|
166
146
|
* Previously got the address of a function from a set list of functions, but now always returns `0` as it is deprecated.
|
|
167
147
|
*
|
|
@@ -170,9 +150,7 @@ interface JitutilLib {
|
|
|
170
150
|
* @deprecated This function was disabled due to security concerns.
|
|
171
151
|
*/
|
|
172
152
|
ircalladdr(index: number): number;
|
|
173
|
-
}
|
|
174
153
|
|
|
175
|
-
interface JitutilLib {
|
|
176
154
|
/**
|
|
177
155
|
* Grabs the address of a function based on it's trace exit number. Grabbed via [jit.attach](https://wiki.facepunch.com/gmod/jit.attach) (with the texit event).
|
|
178
156
|
*
|
|
@@ -181,9 +159,7 @@ interface JitutilLib {
|
|
|
181
159
|
* @deprecated This function was disabled due to security concerns. It will always return 0.
|
|
182
160
|
*/
|
|
183
161
|
traceexitstub(exitno: number): number;
|
|
184
|
-
}
|
|
185
162
|
|
|
186
|
-
interface JitutilLib {
|
|
187
163
|
/**
|
|
188
164
|
* Return table fields:
|
|
189
165
|
* * link (number): the linked trace (0 for link types: none, return, interpreter)
|
|
@@ -197,36 +173,28 @@ interface JitutilLib {
|
|
|
197
173
|
* @deprecated This function was disabled due to security concerns.
|
|
198
174
|
*/
|
|
199
175
|
traceinfo(trace: number): table;
|
|
200
|
-
}
|
|
201
176
|
|
|
202
|
-
interface JitutilLib {
|
|
203
177
|
/**
|
|
204
178
|
* @realm shared and menu
|
|
205
179
|
* @source https://wiki.facepunch.com/gmod/jit.util.traceir
|
|
206
180
|
* @deprecated This function was disabled due to security concerns.
|
|
207
181
|
*/
|
|
208
182
|
traceir(tr: number, index: number): (number, number, number, number, number);
|
|
209
|
-
}
|
|
210
183
|
|
|
211
|
-
interface JitutilLib {
|
|
212
184
|
/**
|
|
213
185
|
* @realm shared and menu
|
|
214
186
|
* @source https://wiki.facepunch.com/gmod/jit.util.tracek
|
|
215
187
|
* @deprecated This function was disabled due to security concerns.
|
|
216
188
|
*/
|
|
217
189
|
tracek(tr: number, index: number): (any, number, number);
|
|
218
|
-
}
|
|
219
190
|
|
|
220
|
-
interface JitutilLib {
|
|
221
191
|
/**
|
|
222
192
|
* @realm shared and menu
|
|
223
193
|
* @source https://wiki.facepunch.com/gmod/jit.util.tracemc
|
|
224
194
|
* @deprecated This function was disabled due to security concerns. It will always return 3 `0`s.
|
|
225
195
|
*/
|
|
226
196
|
tracemc(tr: number): (string, number, number);
|
|
227
|
-
}
|
|
228
197
|
|
|
229
|
-
interface JitutilLib {
|
|
230
198
|
/**
|
|
231
199
|
* Return table fields:
|
|
232
200
|
* * 0 (ref) (number): first IR ref for the snapshot
|
|
@@ -240,4 +208,3 @@ interface JitutilLib {
|
|
|
240
208
|
*/
|
|
241
209
|
tracesnap(tr: number, sn: number): table;
|
|
242
210
|
}
|
|
243
|
-
|
package/types/killicon.d.tlua
CHANGED
|
@@ -13,36 +13,28 @@ interface KilliconLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/killicon.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(_class: string, texture: string, color: Color): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface KilliconLib {
|
|
19
17
|
/**
|
|
20
18
|
* Creates kill icon from existing one.
|
|
21
19
|
* @realm client
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/killicon.AddAlias
|
|
23
21
|
*/
|
|
24
22
|
AddAlias(new_class: string, existing_class: string): void;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface KilliconLib {
|
|
28
24
|
/**
|
|
29
25
|
* Adds kill icon for given weapon/entity class using special font.
|
|
30
26
|
* @realm client
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/killicon.AddFont
|
|
32
28
|
*/
|
|
33
29
|
AddFont(_class: string, font: string, symbol: string, color: Color, heightScale?: number): void;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface KilliconLib {
|
|
37
31
|
/**
|
|
38
32
|
* Creates new kill icon using a sub-rectangle of a texture.
|
|
39
33
|
* @realm client
|
|
40
34
|
* @source https://wiki.facepunch.com/gmod/killicon.AddTexCoord
|
|
41
35
|
*/
|
|
42
36
|
AddTexCoord(_class: string, texture: string, color: Color, x: number, y: number, w: number, h: number): void;
|
|
43
|
-
}
|
|
44
37
|
|
|
45
|
-
interface KilliconLib {
|
|
46
38
|
/**
|
|
47
39
|
* Draws a kill icon.
|
|
48
40
|
*
|
|
@@ -53,27 +45,21 @@ interface KilliconLib {
|
|
|
53
45
|
* @deprecated This function applies unpredictable vertical offsets, you should use killicon.Render instead, which does not suffer from this issue.
|
|
54
46
|
*/
|
|
55
47
|
Draw(x: number, y: number, name: string, alpha?: number): void;
|
|
56
|
-
}
|
|
57
48
|
|
|
58
|
-
interface KilliconLib {
|
|
59
49
|
/**
|
|
60
50
|
* Checks if kill icon exists for given class.
|
|
61
51
|
* @realm client
|
|
62
52
|
* @source https://wiki.facepunch.com/gmod/killicon.Exists
|
|
63
53
|
*/
|
|
64
54
|
Exists(_class: string): boolean;
|
|
65
|
-
}
|
|
66
55
|
|
|
67
|
-
interface KilliconLib {
|
|
68
56
|
/**
|
|
69
57
|
* Returns the size of a kill icon.
|
|
70
58
|
* @realm client
|
|
71
59
|
* @source https://wiki.facepunch.com/gmod/killicon.GetSize
|
|
72
60
|
*/
|
|
73
61
|
GetSize(name: string, dontEqualizeHeight?: boolean): (number, number);
|
|
74
|
-
}
|
|
75
62
|
|
|
76
|
-
interface KilliconLib {
|
|
77
63
|
/**
|
|
78
64
|
* Renders a kill icon.
|
|
79
65
|
* @realm client
|
|
@@ -81,4 +67,3 @@ interface KilliconLib {
|
|
|
81
67
|
*/
|
|
82
68
|
Render(x: number, y: number, name: string, alpha?: number, dontEqualizeHeight?: number): void;
|
|
83
69
|
}
|
|
84
|
-
|
package/types/label.d.tlua
CHANGED
package/types/language.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface LanguageLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/language.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(placeholder: string, fulltext: string): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface LanguageLib {
|
|
19
17
|
/**
|
|
20
18
|
* Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.
|
|
21
19
|
* @realm client and menu
|
|
@@ -23,4 +21,3 @@ interface LanguageLib {
|
|
|
23
21
|
*/
|
|
24
22
|
GetPhrase(phrase: string): string;
|
|
25
23
|
}
|
|
26
|
-
|
package/types/list.d.tlua
CHANGED
|
@@ -17,9 +17,7 @@ interface ListLib {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/list.Add
|
|
18
18
|
*/
|
|
19
19
|
Add(identifier: string, item: any): number;
|
|
20
|
-
}
|
|
21
20
|
|
|
22
|
-
interface ListLib {
|
|
23
21
|
/**
|
|
24
22
|
* Returns true if the list contains the value. (as a value - not a key)
|
|
25
23
|
*
|
|
@@ -29,9 +27,7 @@ interface ListLib {
|
|
|
29
27
|
* @source https://wiki.facepunch.com/gmod/list.Contains
|
|
30
28
|
*/
|
|
31
29
|
Contains(list: string, value: any): boolean;
|
|
32
|
-
}
|
|
33
30
|
|
|
34
|
-
interface ListLib {
|
|
35
31
|
/**
|
|
36
32
|
* Returns a copy of the list stored at identifier.
|
|
37
33
|
* **WARNING**: This function uses [table.Copy](https://wiki.facepunch.com/gmod/table.Copy) which can be very slow for larger lists. You should avoid calling it repeatedly or in performance sensitive hooks such as [GM:Think](https://wiki.facepunch.com/gmod/GM:Think).
|
|
@@ -47,9 +43,7 @@ interface ListLib {
|
|
|
47
43
|
* @source https://wiki.facepunch.com/gmod/list.Get
|
|
48
44
|
*/
|
|
49
45
|
Get(identifier: string): table;
|
|
50
|
-
}
|
|
51
46
|
|
|
52
|
-
interface ListLib {
|
|
53
47
|
/**
|
|
54
48
|
* Returns a copy of the entry in the list `list` with key `key`.
|
|
55
49
|
*
|
|
@@ -57,27 +51,21 @@ interface ListLib {
|
|
|
57
51
|
* @source https://wiki.facepunch.com/gmod/list.GetEntry
|
|
58
52
|
*/
|
|
59
53
|
GetEntry(list: string, key: string): any | nil;
|
|
60
|
-
}
|
|
61
54
|
|
|
62
|
-
interface ListLib {
|
|
63
55
|
/**
|
|
64
56
|
* Returns the actual table of the list stored at identifier. Modifying this will affect the stored list.
|
|
65
57
|
* @realm shared and menu
|
|
66
58
|
* @source https://wiki.facepunch.com/gmod/list.GetForEdit
|
|
67
59
|
*/
|
|
68
60
|
GetForEdit(identifier: string, dontCreate?: boolean): table;
|
|
69
|
-
}
|
|
70
61
|
|
|
71
|
-
interface ListLib {
|
|
72
62
|
/**
|
|
73
63
|
* Returns a list of all lists currently in use.
|
|
74
64
|
* @realm shared and menu
|
|
75
65
|
* @source https://wiki.facepunch.com/gmod/list.GetTable
|
|
76
66
|
*/
|
|
77
67
|
GetTable(): table;
|
|
78
|
-
}
|
|
79
68
|
|
|
80
|
-
interface ListLib {
|
|
81
69
|
/**
|
|
82
70
|
* Returns true if the list contains the given key.
|
|
83
71
|
*
|
|
@@ -87,9 +75,7 @@ interface ListLib {
|
|
|
87
75
|
* @source https://wiki.facepunch.com/gmod/list.HasEntry
|
|
88
76
|
*/
|
|
89
77
|
HasEntry(list: string, key: any): boolean;
|
|
90
|
-
}
|
|
91
78
|
|
|
92
|
-
interface ListLib {
|
|
93
79
|
/**
|
|
94
80
|
* Removes a single entry from the list `list` with key `key`.
|
|
95
81
|
*
|
|
@@ -99,9 +85,7 @@ interface ListLib {
|
|
|
99
85
|
* @source https://wiki.facepunch.com/gmod/list.RemoveEntry
|
|
100
86
|
*/
|
|
101
87
|
RemoveEntry(list: string, key: string): void;
|
|
102
|
-
}
|
|
103
88
|
|
|
104
|
-
interface ListLib {
|
|
105
89
|
/**
|
|
106
90
|
* Sets a specific position in the named list to a value.
|
|
107
91
|
* @realm shared and menu
|
|
@@ -109,4 +93,3 @@ interface ListLib {
|
|
|
109
93
|
*/
|
|
110
94
|
Set(identifier: string, key: any, item: any): void;
|
|
111
95
|
}
|
|
112
|
-
|
package/types/makeballoon.d.tlua
CHANGED
package/types/markup.d.tlua
CHANGED
|
@@ -13,18 +13,14 @@ interface MarkupLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/markup.Color
|
|
14
14
|
*/
|
|
15
15
|
Color(col: Color): string;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface MarkupLib {
|
|
19
17
|
/**
|
|
20
18
|
* Converts a string to its escaped, markup-safe equivalent.
|
|
21
19
|
* @realm client and menu
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/markup.Escape
|
|
23
21
|
*/
|
|
24
22
|
Escape(text: string): string;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface MarkupLib {
|
|
28
24
|
/**
|
|
29
25
|
* Parses markup into a [MarkupObject](https://wiki.facepunch.com/gmod/MarkupObject). Currently, this only supports fonts and colors as demonstrated in the example.
|
|
30
26
|
* **WARNING**: This function is very slow! Always cache its result.
|
|
@@ -35,4 +31,3 @@ interface MarkupLib {
|
|
|
35
31
|
*/
|
|
36
32
|
Parse(markup: string, maxWidth?: number): MarkupObject;
|
|
37
33
|
}
|
|
38
|
-
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Object containing parsed markup for later rendering. Created by [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/MarkupObject
|
|
6
6
|
*/
|
|
7
|
-
interface MarkupObject {}
|
|
8
|
-
|
|
9
7
|
interface MarkupObject {
|
|
10
8
|
/**
|
|
11
9
|
* Draws the computed markupobject to the screen. See [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
@@ -13,36 +11,28 @@ interface MarkupObject {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:Draw
|
|
14
12
|
*/
|
|
15
13
|
Draw(self: MarkupObject, xOffset: number, yOffset: number, xAlign?: number, yAlign?: number, alphaoverride?: number, textAlign?: number): void;
|
|
16
|
-
}
|
|
17
14
|
|
|
18
|
-
interface MarkupObject {
|
|
19
15
|
/**
|
|
20
16
|
* Gets computed the height of the markupobject.
|
|
21
17
|
* @realm client and menu
|
|
22
18
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetHeight
|
|
23
19
|
*/
|
|
24
20
|
GetHeight(self: MarkupObject): number;
|
|
25
|
-
}
|
|
26
21
|
|
|
27
|
-
interface MarkupObject {
|
|
28
22
|
/**
|
|
29
23
|
* Gets maximum width for this markup object as defined in [markup.Parse](https://wiki.facepunch.com/gmod/markup.Parse).
|
|
30
24
|
* @realm client and menu
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetMaxWidth
|
|
32
26
|
*/
|
|
33
27
|
GetMaxWidth(self: MarkupObject): number;
|
|
34
|
-
}
|
|
35
28
|
|
|
36
|
-
interface MarkupObject {
|
|
37
29
|
/**
|
|
38
30
|
* Gets computed the width of the markupobject.
|
|
39
31
|
* @realm client and menu
|
|
40
32
|
* @source https://wiki.facepunch.com/gmod/MarkupObject:GetWidth
|
|
41
33
|
*/
|
|
42
34
|
GetWidth(self: MarkupObject): number;
|
|
43
|
-
}
|
|
44
35
|
|
|
45
|
-
interface MarkupObject {
|
|
46
36
|
/**
|
|
47
37
|
* Gets computed the width and height of the markupobject.
|
|
48
38
|
* @realm client and menu
|
|
@@ -50,4 +40,3 @@ interface MarkupObject {
|
|
|
50
40
|
*/
|
|
51
41
|
Size(self: MarkupObject): (number, number);
|
|
52
42
|
}
|
|
53
|
-
|
package/types/material.d.tlua
CHANGED