@tlua/gmod 1.0.5 → 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 +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- 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 +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- 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 +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/matproxy.d.tlua
CHANGED
|
@@ -21,6 +21,7 @@ interface MatproxyLib {
|
|
|
21
21
|
* @source https://wiki.facepunch.com/gmod/matproxy.Add
|
|
22
22
|
*/
|
|
23
23
|
Add(matProxyData: MatProxyData): void;
|
|
24
|
+
|
|
24
25
|
/**
|
|
25
26
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
26
27
|
*
|
|
@@ -30,6 +31,7 @@ interface MatproxyLib {
|
|
|
30
31
|
* @source https://wiki.facepunch.com/gmod/matproxy.Call
|
|
31
32
|
*/
|
|
32
33
|
Call(uname: string, mat: IMaterial, ent: Entity): void;
|
|
34
|
+
|
|
33
35
|
/**
|
|
34
36
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
35
37
|
*
|
|
@@ -39,6 +41,7 @@ interface MatproxyLib {
|
|
|
39
41
|
* @source https://wiki.facepunch.com/gmod/matproxy.Init
|
|
40
42
|
*/
|
|
41
43
|
Init(name: string, uname: string, mat: IMaterial, values: table): void;
|
|
44
|
+
|
|
42
45
|
/**
|
|
43
46
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
44
47
|
*
|
|
@@ -48,7 +51,3 @@ interface MatproxyLib {
|
|
|
48
51
|
*/
|
|
49
52
|
ShouldOverrideProxy(name: string): boolean;
|
|
50
53
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
package/types/matselect.d.tlua
CHANGED
|
@@ -16,30 +16,35 @@ interface MatSelect extends ContextBase {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterial
|
|
17
17
|
*/
|
|
18
18
|
AddMaterial(self: MatSelect, label: string, path: string): void;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Adds a new material to the selection list, with some extra options.
|
|
21
22
|
* @realm client
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterialEx
|
|
23
24
|
*/
|
|
24
25
|
AddMaterialEx(self: MatSelect, label: string, path: string, value: any, convars: table): void;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Find a material and selects it, if it exists in this panel.
|
|
27
29
|
* @realm client
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial
|
|
29
31
|
*/
|
|
30
32
|
FindAndSelectMaterial(self: MatSelect, mat: string): void;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Find a [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) panel based on the input material path.
|
|
33
36
|
* @realm client
|
|
34
37
|
* @source https://wiki.facepunch.com/gmod/MatSelect:FindMaterialByValue
|
|
35
38
|
*/
|
|
36
39
|
FindMaterialByValue(self: MatSelect, mat: string): DImageButton;
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
42
|
* Returns whether the panel would set its own height to fit all materials within its height.
|
|
39
43
|
* @realm client
|
|
40
44
|
* @source https://wiki.facepunch.com/gmod/MatSelect:GetAutoHeight
|
|
41
45
|
*/
|
|
42
46
|
GetAutoHeight(self: MatSelect): boolean;
|
|
47
|
+
|
|
43
48
|
/**
|
|
44
49
|
* **INTERNAL**: Use [MatSelect:FindAndSelectMaterial](https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial) instead.
|
|
45
50
|
*
|
|
@@ -49,24 +54,28 @@ interface MatSelect extends ContextBase {
|
|
|
49
54
|
* @source https://wiki.facepunch.com/gmod/MatSelect:SelectMaterial
|
|
50
55
|
*/
|
|
51
56
|
SelectMaterial(self: MatSelect, mat: DImageButton): void;
|
|
57
|
+
|
|
52
58
|
/**
|
|
53
59
|
* Sets whether the panel should set its own height to fit all materials within its height.
|
|
54
60
|
* @realm client
|
|
55
61
|
* @source https://wiki.facepunch.com/gmod/MatSelect:SetAutoHeight
|
|
56
62
|
*/
|
|
57
63
|
SetAutoHeight(self: MatSelect, autoSize: boolean): void;
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* Sets the height of a single material in pixels.
|
|
60
67
|
* @realm client
|
|
61
68
|
* @source https://wiki.facepunch.com/gmod/MatSelect:SetItemHeight
|
|
62
69
|
*/
|
|
63
70
|
SetItemHeight(self: MatSelect, height: number): void;
|
|
71
|
+
|
|
64
72
|
/**
|
|
65
73
|
* Sets the width of a single material in pixels.
|
|
66
74
|
* @realm client
|
|
67
75
|
* @source https://wiki.facepunch.com/gmod/MatSelect:SetItemWidth
|
|
68
76
|
*/
|
|
69
77
|
SetItemWidth(self: MatSelect, width: number): void;
|
|
78
|
+
|
|
70
79
|
/**
|
|
71
80
|
* Sets the target height of the panel, in number of rows.
|
|
72
81
|
* @realm client
|
|
@@ -74,14 +83,3 @@ interface MatSelect extends ContextBase {
|
|
|
74
83
|
*/
|
|
75
84
|
SetNumRows(self: MatSelect, rows: number): void;
|
|
76
85
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
package/types/menu.d.tlua
CHANGED
package/types/menubar.d.tlua
CHANGED
|
@@ -17,12 +17,14 @@ interface MenubarLib {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/menubar.Init
|
|
18
18
|
*/
|
|
19
19
|
Init(): void;
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* Checks if the supplied panel is parent to the menubar
|
|
22
23
|
* @realm client
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/menubar.IsParent
|
|
24
25
|
*/
|
|
25
26
|
IsParent(pnl: Panel): boolean;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Parents the menubar to the panel and displays the menubar.
|
|
28
30
|
* @realm client
|
|
@@ -30,6 +32,3 @@ interface MenubarLib {
|
|
|
30
32
|
*/
|
|
31
33
|
ParentTo(pnl: Panel): void;
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
package/types/mesh.d.tlua
CHANGED
|
@@ -13,6 +13,7 @@ interface MeshLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/mesh.AdvanceVertex
|
|
14
14
|
*/
|
|
15
15
|
AdvanceVertex(): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Begins creating or modifying a 3D mesh constructed from a given quantity and type of primitive 3D shapes such as triangles and quads.
|
|
18
19
|
*
|
|
@@ -22,13 +23,16 @@ interface MeshLib {
|
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/mesh.Begin
|
|
23
24
|
*/
|
|
24
25
|
Begin(mesh: IMesh, primitiveType: number, primitiveCount: number): void;
|
|
26
|
+
|
|
25
27
|
Begin(primitiveType: number, primitiveCount: number): void;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Sets the bone matrix ID and bone weight to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
28
31
|
* @realm client
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/mesh.BoneData
|
|
30
33
|
*/
|
|
31
34
|
BoneData(index: number, matrixId: number, weight: number): void;
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Sets the color to be used for the next vertex. This is `COLOR0` semantic of
|
|
34
38
|
* Vertex Shader. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
@@ -36,32 +40,39 @@ interface MeshLib {
|
|
|
36
40
|
* @source https://wiki.facepunch.com/gmod/mesh.Color
|
|
37
41
|
*/
|
|
38
42
|
Color(r: number, g: number, b: number, a: number): void;
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* Ends the mesh (Started with [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin)) and renders it.
|
|
41
46
|
* @realm client
|
|
42
47
|
* @source https://wiki.facepunch.com/gmod/mesh.End
|
|
43
48
|
*/
|
|
44
49
|
End(): void;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* Sets the normal to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
47
53
|
* @realm client
|
|
48
54
|
* @source https://wiki.facepunch.com/gmod/mesh.Normal
|
|
49
55
|
*/
|
|
50
56
|
Normal(normal: Vector): void;
|
|
57
|
+
|
|
51
58
|
Normal(x: number, y: number, z: number): void;
|
|
59
|
+
|
|
52
60
|
/**
|
|
53
61
|
* Sets the position to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
54
62
|
* @realm client
|
|
55
63
|
* @source https://wiki.facepunch.com/gmod/mesh.Position
|
|
56
64
|
*/
|
|
57
65
|
Position(position: Vector): void;
|
|
66
|
+
|
|
58
67
|
Position(x: number, y: number, z: number): void;
|
|
68
|
+
|
|
59
69
|
/**
|
|
60
70
|
* Adds a quad (4 vertices) to the currently built mesh. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
61
71
|
* @realm client
|
|
62
72
|
* @source https://wiki.facepunch.com/gmod/mesh.Quad
|
|
63
73
|
*/
|
|
64
74
|
Quad(vertex1: Vector, vertex2: Vector, vertex3: Vector, vertex4: Vector, color: Color): void;
|
|
75
|
+
|
|
65
76
|
/**
|
|
66
77
|
* Adds a quad (4 vertices) to the currently built mesh, by using position, normal and sizes. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
|
|
67
78
|
*
|
|
@@ -70,6 +81,7 @@ interface MeshLib {
|
|
|
70
81
|
* @source https://wiki.facepunch.com/gmod/mesh.QuadEasy
|
|
71
82
|
*/
|
|
72
83
|
QuadEasy(position: Vector, normal: Vector, sizeX: number, sizeY: number, color: Color): void;
|
|
84
|
+
|
|
73
85
|
/**
|
|
74
86
|
* Sets the specular map values. This is `COLOR1` semantic of Vertex Shader. Allows to blend textures of [Lightmapped_4WayBlend](https://developer.valvesoftware.com/wiki/Lightmapped_4WayBlend). Requires the `VERTEX_SPECULAR` flag to be set in the C++ code of a shader.
|
|
75
87
|
*
|
|
@@ -77,6 +89,7 @@ interface MeshLib {
|
|
|
77
89
|
* @source https://wiki.facepunch.com/gmod/mesh.Specular
|
|
78
90
|
*/
|
|
79
91
|
Specular(r: number, g: number, b: number, a: number): void;
|
|
92
|
+
|
|
80
93
|
/**
|
|
81
94
|
* Sets the `S` tangent to be used, also known as "binormal".
|
|
82
95
|
*
|
|
@@ -88,7 +101,9 @@ interface MeshLib {
|
|
|
88
101
|
* @source https://wiki.facepunch.com/gmod/mesh.TangentS
|
|
89
102
|
*/
|
|
90
103
|
TangentS(tangentS: Vector): void;
|
|
104
|
+
|
|
91
105
|
TangentS(x: number, y: number, z: number): void;
|
|
106
|
+
|
|
92
107
|
/**
|
|
93
108
|
* Sets the `T` tangent to be used.
|
|
94
109
|
*
|
|
@@ -100,7 +115,9 @@ interface MeshLib {
|
|
|
100
115
|
* @source https://wiki.facepunch.com/gmod/mesh.TangentT
|
|
101
116
|
*/
|
|
102
117
|
TangentT(tangentT: Vector): void;
|
|
118
|
+
|
|
103
119
|
TangentT(x: number, y: number, z: number): void;
|
|
120
|
+
|
|
104
121
|
/**
|
|
105
122
|
* Sets the texture coordinates for the next vertex for the current mesh. (See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin))
|
|
106
123
|
*
|
|
@@ -108,6 +125,7 @@ interface MeshLib {
|
|
|
108
125
|
* @source https://wiki.facepunch.com/gmod/mesh.TexCoord
|
|
109
126
|
*/
|
|
110
127
|
TexCoord(set: number, s: number, t: number, u?: number, v?: number): void;
|
|
128
|
+
|
|
111
129
|
/**
|
|
112
130
|
* A set of four numbers that can be used for arbitrary purposes by [Material](https://wiki.facepunch.com/gmod/Material) shaders.
|
|
113
131
|
* This is most commonly used to provide tangent information about each vertex to the Material's shader.
|
|
@@ -116,6 +134,7 @@ interface MeshLib {
|
|
|
116
134
|
* @source https://wiki.facepunch.com/gmod/mesh.UserData
|
|
117
135
|
*/
|
|
118
136
|
UserData(tangentX: number, tangentY: number, tangentZ: number, tangentHandedness: number): void;
|
|
137
|
+
|
|
119
138
|
/**
|
|
120
139
|
* Returns the amount of vertices that have been pushed via [mesh.AdvanceVertex](https://wiki.facepunch.com/gmod/mesh.AdvanceVertex).
|
|
121
140
|
* @realm client
|
|
@@ -123,23 +142,3 @@ interface MeshLib {
|
|
|
123
142
|
*/
|
|
124
143
|
VertexCount(): number;
|
|
125
144
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
package/types/modelimage.d.tlua
CHANGED
|
@@ -17,35 +17,41 @@ interface MotionsensorLib {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton
|
|
18
18
|
*/
|
|
19
19
|
BuildSkeleton(translator: table, player: Player, rotation: Angle): (Vector, Angle, table);
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* @realm shared
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/motionsensor.ChooseBuilderFromEntity
|
|
23
24
|
*/
|
|
24
25
|
ChooseBuilderFromEntity(ent: Entity): string;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Returns the depth map material.
|
|
27
29
|
* @realm client and menu
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/motionsensor.GetColourMaterial
|
|
29
31
|
*/
|
|
30
32
|
GetColourMaterial(): IMaterial;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Returns players skeletal data if they are using Kinect. See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
|
|
33
36
|
* @realm client
|
|
34
37
|
* @source https://wiki.facepunch.com/gmod/motionsensor.GetSkeleton
|
|
35
38
|
*/
|
|
36
39
|
GetSkeleton(): table;
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
42
|
* Return whether a kinect is connected - and active (ie - Start has been called).
|
|
39
43
|
* @realm client
|
|
40
44
|
* @source https://wiki.facepunch.com/gmod/motionsensor.IsActive
|
|
41
45
|
*/
|
|
42
46
|
IsActive(): boolean;
|
|
47
|
+
|
|
43
48
|
/**
|
|
44
49
|
* Returns true if we have detected that there's a kinect connected to the PC
|
|
45
50
|
* @realm client and menu
|
|
46
51
|
* @source https://wiki.facepunch.com/gmod/motionsensor.IsAvailable
|
|
47
52
|
*/
|
|
48
53
|
IsAvailable(): boolean;
|
|
54
|
+
|
|
49
55
|
/**
|
|
50
56
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
51
57
|
* Used internally by [motionsensor.ProcessAnglesTable](https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
|
|
@@ -53,6 +59,7 @@ interface MotionsensorLib {
|
|
|
53
59
|
* @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAngle
|
|
54
60
|
*/
|
|
55
61
|
ProcessAngle(translator: table, sensor: table, pos: Vector, ang: Angle, special_vectors: table, boneid: number, v: table): boolean;
|
|
62
|
+
|
|
56
63
|
/**
|
|
57
64
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
58
65
|
* Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
|
|
@@ -62,6 +69,7 @@ interface MotionsensorLib {
|
|
|
62
69
|
* @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable
|
|
63
70
|
*/
|
|
64
71
|
ProcessAnglesTable(translator: table, sensor: table, pos: Vector, rotation: Angle): table;
|
|
72
|
+
|
|
65
73
|
/**
|
|
66
74
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
67
75
|
* Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
|
|
@@ -69,12 +77,14 @@ interface MotionsensorLib {
|
|
|
69
77
|
* @source https://wiki.facepunch.com/gmod/motionsensor.ProcessPositionTable
|
|
70
78
|
*/
|
|
71
79
|
ProcessPositionTable(translator: table, sensor: table): table;
|
|
80
|
+
|
|
72
81
|
/**
|
|
73
82
|
* This starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.
|
|
74
83
|
* @realm client and menu
|
|
75
84
|
* @source https://wiki.facepunch.com/gmod/motionsensor.Start
|
|
76
85
|
*/
|
|
77
86
|
Start(): boolean;
|
|
87
|
+
|
|
78
88
|
/**
|
|
79
89
|
* Stops the motion capture.
|
|
80
90
|
* @realm client
|
|
@@ -82,14 +92,3 @@ interface MotionsensorLib {
|
|
|
82
92
|
*/
|
|
83
93
|
Stop(): void;
|
|
84
94
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
package/types/navmesh.d.tlua
CHANGED
|
@@ -15,6 +15,7 @@ interface NavmeshLib {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/navmesh.AddWalkableSeed
|
|
16
16
|
*/
|
|
17
17
|
AddWalkableSeed(pos: Vector, dir: Vector): void;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Starts the generation of a new navmesh.
|
|
20
21
|
*
|
|
@@ -25,54 +26,63 @@ interface NavmeshLib {
|
|
|
25
26
|
* @source https://wiki.facepunch.com/gmod/navmesh.BeginGeneration
|
|
26
27
|
*/
|
|
27
28
|
BeginGeneration(): void;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Clears all the walkable positions, used before calling [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
|
|
30
32
|
* @realm server
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/navmesh.ClearWalkableSeeds
|
|
32
34
|
*/
|
|
33
35
|
ClearWalkableSeeds(): void;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Creates a new [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
36
39
|
* @realm server
|
|
37
40
|
* @source https://wiki.facepunch.com/gmod/navmesh.CreateNavArea
|
|
38
41
|
*/
|
|
39
42
|
CreateNavArea(corner: Vector, opposite_corner: Vector): CNavArea;
|
|
43
|
+
|
|
40
44
|
/**
|
|
41
45
|
* Creates a new [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
|
|
42
46
|
* @realm server
|
|
43
47
|
* @source https://wiki.facepunch.com/gmod/navmesh.CreateNavLadder
|
|
44
48
|
*/
|
|
45
49
|
CreateNavLadder(top: Vector, bottom: Vector, width: number, dir: Vector, maxHeightAboveTopArea?: number): CNavLadder;
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* Returns a list of areas within distance, used to find hiding spots by [NextBot](https://wiki.facepunch.com/gmod/NextBot)s for example.
|
|
48
53
|
* @realm server
|
|
49
54
|
* @source https://wiki.facepunch.com/gmod/navmesh.Find
|
|
50
55
|
*/
|
|
51
56
|
Find(pos: Vector, radius: number, stepHeight: number, dropHeight: number): table;
|
|
57
|
+
|
|
52
58
|
/**
|
|
53
59
|
* Returns a list of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s overlapping the given cube extents.
|
|
54
60
|
* @realm server
|
|
55
61
|
* @source https://wiki.facepunch.com/gmod/navmesh.FindInBox
|
|
56
62
|
*/
|
|
57
63
|
FindInBox(pos1: Vector, pos2: Vector): table;
|
|
64
|
+
|
|
58
65
|
/**
|
|
59
66
|
* Returns an integer indexed table of all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. If the map doesn't have a navmesh generated then this will return an empty table.
|
|
60
67
|
* @realm server
|
|
61
68
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas
|
|
62
69
|
*/
|
|
63
70
|
GetAllNavAreas(): CNavArea[];
|
|
71
|
+
|
|
64
72
|
/**
|
|
65
73
|
* Returns a table of all blocked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. See [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
|
|
66
74
|
* @realm server
|
|
67
75
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetBlockedAreas
|
|
68
76
|
*/
|
|
69
77
|
GetBlockedAreas(): table;
|
|
78
|
+
|
|
70
79
|
/**
|
|
71
80
|
* Returns the position of the edit cursor when nav_edit is set to 1.
|
|
72
81
|
* @realm server
|
|
73
82
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetEditCursorPosition
|
|
74
83
|
*/
|
|
75
84
|
GetEditCursorPosition(): Vector;
|
|
85
|
+
|
|
76
86
|
/**
|
|
77
87
|
* Finds the closest standable ground at, above, or below the provided position.
|
|
78
88
|
*
|
|
@@ -83,18 +93,21 @@ interface NavmeshLib {
|
|
|
83
93
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetGroundHeight
|
|
84
94
|
*/
|
|
85
95
|
GetGroundHeight(pos: Vector): (number, Vector);
|
|
96
|
+
|
|
86
97
|
/**
|
|
87
98
|
* Returns the currently marked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), for use with editing console commands.
|
|
88
99
|
* @realm server
|
|
89
100
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedArea
|
|
90
101
|
*/
|
|
91
102
|
GetMarkedArea(): CNavArea;
|
|
103
|
+
|
|
92
104
|
/**
|
|
93
105
|
* Returns the currently marked [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder), for use with editing console commands.
|
|
94
106
|
* @realm server
|
|
95
107
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedLadder
|
|
96
108
|
*/
|
|
97
109
|
GetMarkedLadder(): CNavLadder;
|
|
110
|
+
|
|
98
111
|
/**
|
|
99
112
|
* Returns the Nav Area contained in this position that also satisfies the elevation limit.
|
|
100
113
|
*
|
|
@@ -104,6 +117,7 @@ interface NavmeshLib {
|
|
|
104
117
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetNavArea
|
|
105
118
|
*/
|
|
106
119
|
GetNavArea(pos: Vector, beneathLimit: number): CNavArea;
|
|
120
|
+
|
|
107
121
|
/**
|
|
108
122
|
* Returns a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) by the given ID.
|
|
109
123
|
*
|
|
@@ -114,18 +128,21 @@ interface NavmeshLib {
|
|
|
114
128
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaByID
|
|
115
129
|
*/
|
|
116
130
|
GetNavAreaByID(id: number): CNavArea;
|
|
131
|
+
|
|
117
132
|
/**
|
|
118
133
|
* Returns the total count of nav areas on the map. If you want to get all nav areas, use [navmesh.GetAllNavAreas](https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas) instead as nav areas IDs are not always sequential.
|
|
119
134
|
* @realm server
|
|
120
135
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaCount
|
|
121
136
|
*/
|
|
122
137
|
GetNavAreaCount(): number;
|
|
138
|
+
|
|
123
139
|
/**
|
|
124
140
|
* Returns a [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) by the given ID.
|
|
125
141
|
* @realm server
|
|
126
142
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetNavLadderByID
|
|
127
143
|
*/
|
|
128
144
|
GetNavLadderByID(id: number): CNavLadder;
|
|
145
|
+
|
|
129
146
|
/**
|
|
130
147
|
* Returns the closest [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to given position at the same height, or beneath it.
|
|
131
148
|
*
|
|
@@ -135,24 +152,28 @@ interface NavmeshLib {
|
|
|
135
152
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetNearestNavArea
|
|
136
153
|
*/
|
|
137
154
|
GetNearestNavArea(pos: Vector, anyZ?: boolean, maxDist?: number, checkLOS?: boolean, checkGround?: boolean, team?: number): CNavArea;
|
|
155
|
+
|
|
138
156
|
/**
|
|
139
157
|
* Returns the classname of the player spawn entity.
|
|
140
158
|
* @realm server
|
|
141
159
|
* @source https://wiki.facepunch.com/gmod/navmesh.GetPlayerSpawnName
|
|
142
160
|
*/
|
|
143
161
|
GetPlayerSpawnName(): string;
|
|
162
|
+
|
|
144
163
|
/**
|
|
145
164
|
* Whether we're currently generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
|
|
146
165
|
* @realm server
|
|
147
166
|
* @source https://wiki.facepunch.com/gmod/navmesh.IsGenerating
|
|
148
167
|
*/
|
|
149
168
|
IsGenerating(): boolean;
|
|
169
|
+
|
|
150
170
|
/**
|
|
151
171
|
* Returns true if a navmesh has been loaded when loading the map.
|
|
152
172
|
* @realm server
|
|
153
173
|
* @source https://wiki.facepunch.com/gmod/navmesh.IsLoaded
|
|
154
174
|
*/
|
|
155
175
|
IsLoaded(): boolean;
|
|
176
|
+
|
|
156
177
|
/**
|
|
157
178
|
* Loads a new navmesh from the .nav file for current map discarding any changes made to the navmesh previously.
|
|
158
179
|
* **WARNING**: Calling this function too soon, causes the Server to crash!
|
|
@@ -162,30 +183,35 @@ interface NavmeshLib {
|
|
|
162
183
|
* @source https://wiki.facepunch.com/gmod/navmesh.Load
|
|
163
184
|
*/
|
|
164
185
|
Load(): void;
|
|
186
|
+
|
|
165
187
|
/**
|
|
166
188
|
* Deletes every [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) on the map **without saving the changes**.
|
|
167
189
|
* @realm server
|
|
168
190
|
* @source https://wiki.facepunch.com/gmod/navmesh.Reset
|
|
169
191
|
*/
|
|
170
192
|
Reset(): void;
|
|
193
|
+
|
|
171
194
|
/**
|
|
172
195
|
* Saves any changes made to navmesh to the .nav file.
|
|
173
196
|
* @realm server
|
|
174
197
|
* @source https://wiki.facepunch.com/gmod/navmesh.Save
|
|
175
198
|
*/
|
|
176
199
|
Save(): void;
|
|
200
|
+
|
|
177
201
|
/**
|
|
178
202
|
* Sets the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) as marked, so it can be used with editing console commands.
|
|
179
203
|
* @realm server
|
|
180
204
|
* @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedArea
|
|
181
205
|
*/
|
|
182
206
|
SetMarkedArea(area: CNavArea): void;
|
|
207
|
+
|
|
183
208
|
/**
|
|
184
209
|
* Sets the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) as marked, so it can be used with editing console commands.
|
|
185
210
|
* @realm server
|
|
186
211
|
* @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedLadder
|
|
187
212
|
*/
|
|
188
213
|
SetMarkedLadder(area: CNavLadder): void;
|
|
214
|
+
|
|
189
215
|
/**
|
|
190
216
|
* Sets the classname of the default spawn point entity, used before generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
|
|
191
217
|
* @realm server
|
|
@@ -193,30 +219,3 @@ interface NavmeshLib {
|
|
|
193
219
|
*/
|
|
194
220
|
SetPlayerSpawnName(spawnPointClass: string): void;
|
|
195
221
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|