@tlua/gmod 1.0.4 → 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/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 +4 -12
- 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/undo.d.tlua
CHANGED
|
@@ -13,27 +13,18 @@ interface UndoLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/undo.AddEntity
|
|
14
14
|
*/
|
|
15
15
|
AddEntity(ent: Entity): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface UndoLib {
|
|
19
16
|
/**
|
|
20
17
|
* Adds a function to call when the current undo block is undone. Note that if an undo has a function, the player will always be notified when this undo is performed, even if the entity it is meant to undo no longer exists.
|
|
21
18
|
* @realm server
|
|
22
19
|
* @source https://wiki.facepunch.com/gmod/undo.AddFunction
|
|
23
20
|
*/
|
|
24
21
|
AddFunction(func: (undo: table, ...: any) => boolean, ...: any): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface UndoLib {
|
|
28
22
|
/**
|
|
29
23
|
* Begins a new undo entry
|
|
30
24
|
* @realm server
|
|
31
25
|
* @source https://wiki.facepunch.com/gmod/undo.Create
|
|
32
26
|
*/
|
|
33
27
|
Create(name: string): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface UndoLib {
|
|
37
28
|
/**
|
|
38
29
|
* Processes an undo block (in table form). This is used internally by the undo manager when a player presses Z.
|
|
39
30
|
*
|
|
@@ -43,18 +34,12 @@ interface UndoLib {
|
|
|
43
34
|
* @source https://wiki.facepunch.com/gmod/undo.Do_Undo
|
|
44
35
|
*/
|
|
45
36
|
Do_Undo(tab: Undo): number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface UndoLib {
|
|
49
37
|
/**
|
|
50
38
|
* Completes an undo entry, and registers it with the player's client
|
|
51
39
|
* @realm server
|
|
52
40
|
* @source https://wiki.facepunch.com/gmod/undo.Finish
|
|
53
41
|
*/
|
|
54
42
|
Finish(NiceText?: string): void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface UndoLib {
|
|
58
43
|
/**
|
|
59
44
|
* Serverside, returns a table containing all undo blocks of all players. Clientside, returns a table of the local player's undo blocks.
|
|
60
45
|
* **NOTE**: Serverside, this table's keys use [Player:UniqueID](https://wiki.facepunch.com/gmod/Player:UniqueID) to store a player's undo blocks.
|
|
@@ -64,9 +49,6 @@ interface UndoLib {
|
|
|
64
49
|
* @source https://wiki.facepunch.com/gmod/undo.GetTable
|
|
65
50
|
*/
|
|
66
51
|
GetTable(): Undo[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface UndoLib {
|
|
70
52
|
/**
|
|
71
53
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
72
54
|
*
|
|
@@ -76,9 +58,6 @@ interface UndoLib {
|
|
|
76
58
|
* @source https://wiki.facepunch.com/gmod/undo.MakeUIDirty
|
|
77
59
|
*/
|
|
78
60
|
MakeUIDirty(): void;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface UndoLib {
|
|
82
61
|
/**
|
|
83
62
|
* Replaces any instance of the "from" reference with the "to" reference, in any existing undo block.
|
|
84
63
|
*
|
|
@@ -88,27 +67,18 @@ interface UndoLib {
|
|
|
88
67
|
* @source https://wiki.facepunch.com/gmod/undo.ReplaceEntity
|
|
89
68
|
*/
|
|
90
69
|
ReplaceEntity(from: Entity, to: Entity | nil): boolean;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface UndoLib {
|
|
94
70
|
/**
|
|
95
71
|
* Sets a custom undo text for the current undo block
|
|
96
72
|
* @realm server
|
|
97
73
|
* @source https://wiki.facepunch.com/gmod/undo.SetCustomUndoText
|
|
98
74
|
*/
|
|
99
75
|
SetCustomUndoText(customText: string): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface UndoLib {
|
|
103
76
|
/**
|
|
104
77
|
* Sets the player which the current undo block belongs to
|
|
105
78
|
* @realm server
|
|
106
79
|
* @source https://wiki.facepunch.com/gmod/undo.SetPlayer
|
|
107
80
|
*/
|
|
108
81
|
SetPlayer(ply: Player): void;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
interface UndoLib {
|
|
112
82
|
/**
|
|
113
83
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
114
84
|
*
|
|
@@ -120,3 +90,13 @@ interface UndoLib {
|
|
|
120
90
|
SetupUI(): void;
|
|
121
91
|
}
|
|
122
92
|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
package/types/usermessage.d.tlua
CHANGED
|
@@ -18,9 +18,6 @@ interface UsermessageLib {
|
|
|
18
18
|
* @deprecated You should be using net instead
|
|
19
19
|
*/
|
|
20
20
|
GetTable(): table;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface UsermessageLib {
|
|
24
21
|
/**
|
|
25
22
|
* Sets a hook for the specified to be called when a usermessage with the specified name arrives.
|
|
26
23
|
*
|
|
@@ -32,9 +29,6 @@ interface UsermessageLib {
|
|
|
32
29
|
* @deprecated You should be using net instead
|
|
33
30
|
*/
|
|
34
31
|
Hook(name: string, callback: (msg: bf_read, ...: any) => void, ...: any): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface UsermessageLib {
|
|
38
32
|
/**
|
|
39
33
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
34
|
*
|
|
@@ -46,3 +40,5 @@ interface UsermessageLib {
|
|
|
46
40
|
IncomingMessage(name: string, msg: bf_read): void;
|
|
47
41
|
}
|
|
48
42
|
|
|
43
|
+
|
|
44
|
+
|
package/types/utf8.d.tlua
CHANGED
|
@@ -16,36 +16,24 @@ interface Utf8Lib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/utf8.GetChar
|
|
17
17
|
*/
|
|
18
18
|
GetChar(str: string, index: number): string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface Utf8Lib {
|
|
22
19
|
/**
|
|
23
20
|
* Receives zero or more integers, converts each one to its corresponding UTF-8 byte sequence and returns a string with the concatenation of all these sequences.
|
|
24
21
|
* @realm shared and menu
|
|
25
22
|
* @source https://wiki.facepunch.com/gmod/utf8.char
|
|
26
23
|
*/
|
|
27
24
|
char(...: any): string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface Utf8Lib {
|
|
31
25
|
/**
|
|
32
26
|
* Returns the codepoints (as numbers) from all characters in the given string that start between byte position startPos and endPos. It raises an error if it meets any invalid byte sequence. This functions similarly to [string.byte](https://wiki.facepunch.com/gmod/string.byte).
|
|
33
27
|
* @realm shared and menu
|
|
34
28
|
* @source https://wiki.facepunch.com/gmod/utf8.codepoint
|
|
35
29
|
*/
|
|
36
30
|
codepoint(string: string, startPos?: number, endPos?: number): (...any);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface Utf8Lib {
|
|
40
31
|
/**
|
|
41
32
|
* Returns an iterator (like [string.gmatch](https://wiki.facepunch.com/gmod/string.gmatch)) which returns both the position and codepoint of each utf8 character in the string. It raises an error if it meets any invalid byte sequence.
|
|
42
33
|
* @realm shared and menu
|
|
43
34
|
* @source https://wiki.facepunch.com/gmod/utf8.codes
|
|
44
35
|
*/
|
|
45
36
|
codes(string: string): function;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface Utf8Lib {
|
|
49
37
|
/**
|
|
50
38
|
* Forces a string to contain only valid UTF-8 data. Invalid sequences are replaced with U+FFFD (the Unicode replacement character).
|
|
51
39
|
*
|
|
@@ -55,27 +43,18 @@ interface Utf8Lib {
|
|
|
55
43
|
* @source https://wiki.facepunch.com/gmod/utf8.force
|
|
56
44
|
*/
|
|
57
45
|
force(string: string): string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface Utf8Lib {
|
|
61
46
|
/**
|
|
62
47
|
* Returns the number of UTF-8 sequences in the given string between positions startPos and endPos (both inclusive). If it finds any invalid UTF-8 byte sequence, returns false as well as the position of the first invalid byte.
|
|
63
48
|
* @realm shared and menu
|
|
64
49
|
* @source https://wiki.facepunch.com/gmod/utf8.len
|
|
65
50
|
*/
|
|
66
51
|
len(string: string, startPos?: number, endPos?: number): (number, number);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface Utf8Lib {
|
|
70
52
|
/**
|
|
71
53
|
* Returns the byte-index of the n'th UTF-8-character after the given startPos (nil if none). startPos defaults to 1 when n is positive and -1 when n is negative. If n is zero, this function instead returns the byte-index of the UTF-8-character startPos lies within.
|
|
72
54
|
* @realm shared and menu
|
|
73
55
|
* @source https://wiki.facepunch.com/gmod/utf8.offset
|
|
74
56
|
*/
|
|
75
57
|
offset(string: string, n: number, startPos?: number): number;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface Utf8Lib {
|
|
79
58
|
/**
|
|
80
59
|
* A UTF-8 compatible version of [string.sub](https://wiki.facepunch.com/gmod/string.sub).
|
|
81
60
|
* **WARNING**: Avoid using this function on large strings every tick/frame, as it may cause lags.
|
|
@@ -87,3 +66,10 @@ interface Utf8Lib {
|
|
|
87
66
|
sub(string: string, StartPos: number, EndPos?: number): string;
|
|
88
67
|
}
|
|
89
68
|
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|