@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/weapons.d.tlua
CHANGED
|
@@ -16,9 +16,6 @@ interface WeaponsLib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/weapons.Get
|
|
17
17
|
*/
|
|
18
18
|
Get(classname: string): table;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface WeaponsLib {
|
|
22
19
|
/**
|
|
23
20
|
* Get a list of all the registered SWEPs. This does not include weapons added to spawnmenu manually.
|
|
24
21
|
* **NOTE**: This function does not inherit fields from the weapon's base class, unlike [weapons.Get](https://wiki.facepunch.com/gmod/weapons.Get)
|
|
@@ -28,9 +25,6 @@ interface WeaponsLib {
|
|
|
28
25
|
* @source https://wiki.facepunch.com/gmod/weapons.GetList
|
|
29
26
|
*/
|
|
30
27
|
GetList(): table;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface WeaponsLib {
|
|
34
28
|
/**
|
|
35
29
|
* Gets the REAL weapon table, not a copy. The produced table does not inherit
|
|
36
30
|
* fields from the weapon's base class, unlike weapons.Get.
|
|
@@ -44,19 +38,12 @@ interface WeaponsLib {
|
|
|
44
38
|
* @source https://wiki.facepunch.com/gmod/weapons.GetStored
|
|
45
39
|
*/
|
|
46
40
|
GetStored(weapon_class: string): table;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
interface WeaponsLib {
|
|
51
41
|
/**
|
|
52
42
|
* Checks if name is based on base
|
|
53
43
|
* @realm shared
|
|
54
44
|
* @source https://wiki.facepunch.com/gmod/weapons.IsBasedOn
|
|
55
45
|
*/
|
|
56
46
|
IsBasedOn(name: string, base: string): boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface WeaponsLib {
|
|
60
47
|
/**
|
|
61
48
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
62
49
|
*
|
|
@@ -72,9 +59,6 @@ interface WeaponsLib {
|
|
|
72
59
|
* @source https://wiki.facepunch.com/gmod/weapons.OnLoaded
|
|
73
60
|
*/
|
|
74
61
|
OnLoaded(): void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface WeaponsLib {
|
|
78
62
|
/**
|
|
79
63
|
* Registers a Scripted Weapon (SWEP) class manually. When the engine spawns an entity, weapons registered with this function will be created if the class names match.
|
|
80
64
|
*
|
|
@@ -88,3 +72,9 @@ interface WeaponsLib {
|
|
|
88
72
|
Register(ENT: SWEP, classname: string): void;
|
|
89
73
|
}
|
|
90
74
|
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
package/types/widgets.d.tlua
CHANGED
|
@@ -16,9 +16,6 @@ interface WidgetsLib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/widgets.PlayerTick
|
|
17
17
|
*/
|
|
18
18
|
PlayerTick(ply: Player, mv: CMoveData): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface WidgetsLib {
|
|
22
19
|
/**
|
|
23
20
|
* Renders a widget. Normally you won't need to call this.
|
|
24
21
|
* @realm client
|
|
@@ -27,3 +24,4 @@ interface WidgetsLib {
|
|
|
27
24
|
RenderMe(ent: Entity): void;
|
|
28
25
|
}
|
|
29
26
|
|
|
27
|
+
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/WorkshopFileBase
|
|
14
14
|
*/
|
|
15
|
-
interface WorkshopFileBase {}
|
|
16
|
-
|
|
17
15
|
interface WorkshopFileBase {
|
|
18
16
|
/**
|
|
19
17
|
* Fetches all subscriptions for the set namespace and type
|
|
@@ -24,9 +22,6 @@ interface WorkshopFileBase {
|
|
|
24
22
|
* @source https://wiki.facepunch.com/gmod/WorkshopFileBase:Fetch
|
|
25
23
|
*/
|
|
26
24
|
Fetch(self: WorkshopFileBase, type: string, offset: number, perpage: number, extratags: table, searchText: string, filter?: number, sort?: string): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface WorkshopFileBase {
|
|
30
25
|
/**
|
|
31
26
|
* Fetches all subscriptions for the set namespace and passes the result to [WorkshopFileBase:FillFileInfo](https://wiki.facepunch.com/gmod/WorkshopFileBase:FillFileInfo).
|
|
32
27
|
*
|
|
@@ -34,9 +29,6 @@ interface WorkshopFileBase {
|
|
|
34
29
|
* @source https://wiki.facepunch.com/gmod/WorkshopFileBase:FetchSubscribed
|
|
35
30
|
*/
|
|
36
31
|
FetchSubscribed(self: WorkshopFileBase, offset: number, perpage: number, tags: table, searchText: string, isUGC?: boolean, filter?: number, sort?: string): void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface WorkshopFileBase {
|
|
40
32
|
/**
|
|
41
33
|
* Updates the set HTML panel with the newly fetched results
|
|
42
34
|
*
|
|
@@ -44,9 +36,6 @@ interface WorkshopFileBase {
|
|
|
44
36
|
* @source https://wiki.facepunch.com/gmod/WorkshopFileBase:FillFileInfo
|
|
45
37
|
*/
|
|
46
38
|
FillFileInfo(self: WorkshopFileBase, results: table, isUGC: boolean): void;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface WorkshopFileBase {
|
|
50
39
|
/**
|
|
51
40
|
* Creates a [UGCPublishWindow](https://wiki.facepunch.com/gmod/UGCPublishWindow) to publish the dupe or save
|
|
52
41
|
*
|
|
@@ -54,9 +43,6 @@ interface WorkshopFileBase {
|
|
|
54
43
|
* @source https://wiki.facepunch.com/gmod/WorkshopFileBase:Publish
|
|
55
44
|
*/
|
|
56
45
|
Publish(self: WorkshopFileBase, filename: string, image: string): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface WorkshopFileBase {
|
|
60
46
|
/**
|
|
61
47
|
* Retrieves the username for the given SteamID.
|
|
62
48
|
*
|
|
@@ -66,3 +52,8 @@ interface WorkshopFileBase {
|
|
|
66
52
|
RetrieveUserName(self: WorkshopFileBase, steamid: string, callback: (name: string) => void): void;
|
|
67
53
|
}
|
|
68
54
|
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|