@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/gmod.d.tlua
CHANGED
package/types/gmsave.d.tlua
CHANGED
|
@@ -13,24 +13,28 @@ interface GmsaveLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/gmsave.LoadMap
|
|
14
14
|
*/
|
|
15
15
|
LoadMap(mapData: string, ply?: Player, callback?: function): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Sets player position and angles from supplied table.
|
|
18
19
|
* @realm server
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/gmsave.PlayerLoad
|
|
20
21
|
*/
|
|
21
22
|
PlayerLoad(ply: Player, data: table): void;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns a table containing player position and angles. Used by [gmsave.SaveMap](https://wiki.facepunch.com/gmod/gmsave.SaveMap).
|
|
24
26
|
* @realm server
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/gmsave.PlayerSave
|
|
26
28
|
*/
|
|
27
29
|
PlayerSave(ply: Player): table;
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Saves the map.
|
|
30
33
|
* @realm server
|
|
31
34
|
* @source https://wiki.facepunch.com/gmod/gmsave.SaveMap
|
|
32
35
|
*/
|
|
33
36
|
SaveMap(ply: Player): string;
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Returns if we should save this entity in a duplication or a map save or not.
|
|
36
40
|
* @realm server
|
|
@@ -38,8 +42,3 @@ interface GmsaveLib {
|
|
|
38
42
|
*/
|
|
39
43
|
ShouldSaveEntity(ent: Entity, t: table): boolean;
|
|
40
44
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
package/types/gui.d.tlua
CHANGED
|
@@ -13,6 +13,7 @@ interface GuiLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/gui.ActivateGameUI
|
|
14
14
|
*/
|
|
15
15
|
ActivateGameUI(): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Pushes text to the closed caption box.
|
|
18
19
|
* **WARNING**: The function will not work, if the console command variable `closecaption` is set to 0.
|
|
@@ -22,6 +23,7 @@ interface GuiLib {
|
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/gui.AddCaption
|
|
23
24
|
*/
|
|
24
25
|
AddCaption(captionStream: string, duration: number, fromPlayer?: boolean): void;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Enables the mouse cursor without restricting player movement, like using Sandbox's context menu. See [vgui.CursorVisible](https://wiki.facepunch.com/gmod/vgui.CursorVisible) for a function to see if the cursor is visible or not.
|
|
27
29
|
*
|
|
@@ -32,6 +34,7 @@ interface GuiLib {
|
|
|
32
34
|
* @source https://wiki.facepunch.com/gmod/gui.EnableScreenClicker
|
|
33
35
|
*/
|
|
34
36
|
EnableScreenClicker(enabled: boolean): void;
|
|
37
|
+
|
|
35
38
|
/**
|
|
36
39
|
* Hides the game main menu if it is currently open.
|
|
37
40
|
*
|
|
@@ -43,30 +46,35 @@ interface GuiLib {
|
|
|
43
46
|
* @source https://wiki.facepunch.com/gmod/gui.HideGameUI
|
|
44
47
|
*/
|
|
45
48
|
HideGameUI(): void;
|
|
49
|
+
|
|
46
50
|
/**
|
|
47
51
|
* Simulates a mouse move with the given deltas.
|
|
48
52
|
* @realm client and menu
|
|
49
53
|
* @source https://wiki.facepunch.com/gmod/gui.InternalCursorMoved
|
|
50
54
|
*/
|
|
51
55
|
InternalCursorMoved(deltaX: number, deltaY: number): void;
|
|
56
|
+
|
|
52
57
|
/**
|
|
53
58
|
* Simulates a key press for the given key.
|
|
54
59
|
* @realm client and menu
|
|
55
60
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodePressed
|
|
56
61
|
*/
|
|
57
62
|
InternalKeyCodePressed(key: number): void;
|
|
63
|
+
|
|
58
64
|
/**
|
|
59
65
|
* Simulates a key release for the given key.
|
|
60
66
|
* @realm client and menu
|
|
61
67
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodeReleased
|
|
62
68
|
*/
|
|
63
69
|
InternalKeyCodeReleased(key: number): void;
|
|
70
|
+
|
|
64
71
|
/**
|
|
65
72
|
* Simulates a key type typing to the specified key.
|
|
66
73
|
* @realm client and menu
|
|
67
74
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodeTyped
|
|
68
75
|
*/
|
|
69
76
|
InternalKeyCodeTyped(key: number): void;
|
|
77
|
+
|
|
70
78
|
/**
|
|
71
79
|
* Simulates an ASCII symbol writing.
|
|
72
80
|
* Use to write text in the chat or in VGUI.
|
|
@@ -76,42 +84,49 @@ interface GuiLib {
|
|
|
76
84
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyTyped
|
|
77
85
|
*/
|
|
78
86
|
InternalKeyTyped(code: number): void;
|
|
87
|
+
|
|
79
88
|
/**
|
|
80
89
|
* Simulates a double mouse key press for the given mouse key.
|
|
81
90
|
* @realm client and menu
|
|
82
91
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseDoublePressed
|
|
83
92
|
*/
|
|
84
93
|
InternalMouseDoublePressed(key: number): void;
|
|
94
|
+
|
|
85
95
|
/**
|
|
86
96
|
* Simulates a mouse key press for the given mouse key.
|
|
87
97
|
* @realm client and menu
|
|
88
98
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMousePressed
|
|
89
99
|
*/
|
|
90
100
|
InternalMousePressed(key: number): void;
|
|
101
|
+
|
|
91
102
|
/**
|
|
92
103
|
* Simulates a mouse key release for the given mouse key.
|
|
93
104
|
* @realm client and menu
|
|
94
105
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseReleased
|
|
95
106
|
*/
|
|
96
107
|
InternalMouseReleased(key: number): void;
|
|
108
|
+
|
|
97
109
|
/**
|
|
98
110
|
* Simulates a mouse wheel scroll with the given delta.
|
|
99
111
|
* @realm client and menu
|
|
100
112
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseWheeled
|
|
101
113
|
*/
|
|
102
114
|
InternalMouseWheeled(delta: number): void;
|
|
115
|
+
|
|
103
116
|
/**
|
|
104
117
|
* Returns whether the console is visible or not.
|
|
105
118
|
* @realm client and menu
|
|
106
119
|
* @source https://wiki.facepunch.com/gmod/gui.IsConsoleVisible
|
|
107
120
|
*/
|
|
108
121
|
IsConsoleVisible(): boolean;
|
|
122
|
+
|
|
109
123
|
/**
|
|
110
124
|
* Returns whether the game menu overlay ( main menu ) is open or not.
|
|
111
125
|
* @realm client and menu
|
|
112
126
|
* @source https://wiki.facepunch.com/gmod/gui.IsGameUIVisible
|
|
113
127
|
*/
|
|
114
128
|
IsGameUIVisible(): boolean;
|
|
129
|
+
|
|
115
130
|
/**
|
|
116
131
|
* Returns the cursor's position on the screen, or 0, 0 if cursor is not visible.
|
|
117
132
|
*
|
|
@@ -120,18 +135,21 @@ interface GuiLib {
|
|
|
120
135
|
* @deprecated Use input.GetCursorPos instead.
|
|
121
136
|
*/
|
|
122
137
|
MousePos(): (number, number);
|
|
138
|
+
|
|
123
139
|
/**
|
|
124
140
|
* Returns x component of the mouse position.
|
|
125
141
|
* @realm client and menu
|
|
126
142
|
* @source https://wiki.facepunch.com/gmod/gui.MouseX
|
|
127
143
|
*/
|
|
128
144
|
MouseX(): number;
|
|
145
|
+
|
|
129
146
|
/**
|
|
130
147
|
* Returns y component of the mouse position.
|
|
131
148
|
* @realm client and menu
|
|
132
149
|
* @source https://wiki.facepunch.com/gmod/gui.MouseY
|
|
133
150
|
*/
|
|
134
151
|
MouseY(): number;
|
|
152
|
+
|
|
135
153
|
/**
|
|
136
154
|
* Opens specified URL in the steam overlay browser.
|
|
137
155
|
*
|
|
@@ -142,6 +160,7 @@ interface GuiLib {
|
|
|
142
160
|
* @source https://wiki.facepunch.com/gmod/gui.OpenURL
|
|
143
161
|
*/
|
|
144
162
|
OpenURL(url: string): void;
|
|
163
|
+
|
|
145
164
|
/**
|
|
146
165
|
* Converts the specified screen position to a **direction** vector local to the player's view. A related function is [Vector:ToScreen](https://wiki.facepunch.com/gmod/Vector:ToScreen), which translates a 3D position to a screen coordinate.
|
|
147
166
|
*
|
|
@@ -151,6 +170,7 @@ interface GuiLib {
|
|
|
151
170
|
* @source https://wiki.facepunch.com/gmod/gui.ScreenToVector
|
|
152
171
|
*/
|
|
153
172
|
ScreenToVector(x: number, y: number): Vector;
|
|
173
|
+
|
|
154
174
|
/**
|
|
155
175
|
* Sets the cursor's position on the screen, relative to the topleft corner of the window
|
|
156
176
|
*
|
|
@@ -159,6 +179,7 @@ interface GuiLib {
|
|
|
159
179
|
* @deprecated Use input.SetCursorPos instead.
|
|
160
180
|
*/
|
|
161
181
|
SetMousePos(mouseX: number, mouseY: number): void;
|
|
182
|
+
|
|
162
183
|
/**
|
|
163
184
|
* Shows console in the game UI.
|
|
164
185
|
* @realm menu
|
|
@@ -166,25 +187,3 @@ interface GuiLib {
|
|
|
166
187
|
*/
|
|
167
188
|
ShowConsole(): void;
|
|
168
189
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
package/types/gwen.d.tlua
CHANGED
|
@@ -18,6 +18,7 @@ interface GWENLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/GWEN.CreateTextureBorder
|
|
19
19
|
*/
|
|
20
20
|
CreateTextureBorder(x: number, y: number, w: number, h: number, left: number, top: number, right: number, bottom: number, material?: IMaterial): (x: number, y: number, w: number, h: number, clr?: Color) => void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Used in derma skins to create a fixed scale rectangle drawing function from an image. it will be drawn in the center of the box.
|
|
23
24
|
*
|
|
@@ -26,6 +27,7 @@ interface GWENLib {
|
|
|
26
27
|
* @source https://wiki.facepunch.com/gmod/GWEN.CreateTextureCentered
|
|
27
28
|
*/
|
|
28
29
|
CreateTextureCentered(x: number, y: number, w: number, h: number, material?: IMaterial): (x: number, y: number, w: number, h: number, clr?: Color) => void;
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Helper function that returns a specialized drawing function for rendering a texture that scales freely to fit the given area.
|
|
31
33
|
*
|
|
@@ -36,6 +38,7 @@ interface GWENLib {
|
|
|
36
38
|
* @source https://wiki.facepunch.com/gmod/GWEN.CreateTextureNormal
|
|
37
39
|
*/
|
|
38
40
|
CreateTextureNormal(x: number, y: number, w: number, h: number, material?: IMaterial): (x: number, y: number, w: number, h: number, clr?: Color) => void;
|
|
41
|
+
|
|
39
42
|
/**
|
|
40
43
|
* Retrieves the color from a materials texture at the provided UV coordinates
|
|
41
44
|
* @realm client and menu
|
|
@@ -43,7 +46,3 @@ interface GWENLib {
|
|
|
43
46
|
*/
|
|
44
47
|
TextureColor(x: number, y: number): Color;
|
|
45
48
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
package/types/halo.d.tlua
CHANGED
|
@@ -16,6 +16,7 @@ interface HaloLib {
|
|
|
16
16
|
* @source https://wiki.facepunch.com/gmod/halo.Add
|
|
17
17
|
*/
|
|
18
18
|
Add(entities: table, color: Color, blurX?: number, blurY?: number, passes?: number, additive?: boolean, ignoreZ?: boolean): void;
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
21
22
|
* Renders a halo according to the specified table, only used internally, called from a [GM:PostDrawEffects](https://wiki.facepunch.com/gmod/GM:PostDrawEffects) hook added by the halo library.
|
|
@@ -23,6 +24,7 @@ interface HaloLib {
|
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/halo.Render
|
|
24
25
|
*/
|
|
25
26
|
Render(entry: table): void;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Returns the entity the halo library is currently rendering the halo for.
|
|
28
30
|
*
|
|
@@ -33,6 +35,3 @@ interface HaloLib {
|
|
|
33
35
|
*/
|
|
34
36
|
RenderedEntity(): Entity;
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
package/types/hammer.d.tlua
CHANGED
package/types/hook.d.tlua
CHANGED
|
@@ -15,6 +15,7 @@ interface HookLib {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/hook.Add
|
|
16
16
|
*/
|
|
17
17
|
Add(eventName: string, identifier: any, func: function): void;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Calls all hooks associated with the given event until one returns something other than `nil`, and then returns that data.
|
|
20
21
|
*
|
|
@@ -24,18 +25,21 @@ interface HookLib {
|
|
|
24
25
|
* @source https://wiki.facepunch.com/gmod/hook.Call
|
|
25
26
|
*/
|
|
26
27
|
Call(eventName: string, gamemodeTable?: table, ...: any): (...any);
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* Returns a list of all the hooks registered with [hook.Add](https://wiki.facepunch.com/gmod/hook.Add).
|
|
29
31
|
* @realm shared and menu
|
|
30
32
|
* @source https://wiki.facepunch.com/gmod/hook.GetTable
|
|
31
33
|
*/
|
|
32
34
|
GetTable(): table;
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Removes the hook with the supplied identifier from the given event.
|
|
35
38
|
* @realm shared and menu
|
|
36
39
|
* @source https://wiki.facepunch.com/gmod/hook.Remove
|
|
37
40
|
*/
|
|
38
41
|
Remove(eventName: string, identifier: any): void;
|
|
42
|
+
|
|
39
43
|
/**
|
|
40
44
|
* Calls all hooks associated with the given event **until** one returns something other than `nil` and then returns that data. If no hook returns any data, it will try to call the `GAMEMODE:` alternative, if one exists.
|
|
41
45
|
*
|
|
@@ -48,8 +52,3 @@ interface HookLib {
|
|
|
48
52
|
*/
|
|
49
53
|
Run(eventName: string, ...: any): (...any);
|
|
50
54
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
package/types/html.d.tlua
CHANGED
package/types/http.d.tlua
CHANGED
|
@@ -46,6 +46,7 @@ interface HttpLib {
|
|
|
46
46
|
* @source https://wiki.facepunch.com/gmod/http.Fetch
|
|
47
47
|
*/
|
|
48
48
|
Fetch(url: string, onSuccess?: (body: string, size: number, headers: table, code: number) => void, onFailure?: (error: string) => void, headers?: table): void;
|
|
49
|
+
|
|
49
50
|
/**
|
|
50
51
|
* Sends an asynchronous **POST** request to an HTTP server. Internally calls [Global.HTTP](https://wiki.facepunch.com/gmod/Global.HTTP).
|
|
51
52
|
*
|
|
@@ -66,5 +67,3 @@ interface HttpLib {
|
|
|
66
67
|
*/
|
|
67
68
|
Post(url: string, parameters: table, onSuccess?: (body: string, size: string, headers: table, code: number) => void, onFailure?: (error: string) => void, headers?: table): void;
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
-
|
package/types/iconeditor.d.tlua
CHANGED
|
@@ -22,6 +22,7 @@ interface IconEditor extends DFrame {
|
|
|
22
22
|
* @source https://wiki.facepunch.com/gmod/IconEditor:AboveLayout
|
|
23
23
|
*/
|
|
24
24
|
AboveLayout(self: IconEditor): void;
|
|
25
|
+
|
|
25
26
|
/**
|
|
26
27
|
* Applies the best camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel), using the values returned by [Global.PositionSpawnIcon](https://wiki.facepunch.com/gmod/Global.PositionSpawnIcon).
|
|
27
28
|
*
|
|
@@ -31,6 +32,7 @@ interface IconEditor extends DFrame {
|
|
|
31
32
|
* @source https://wiki.facepunch.com/gmod/IconEditor:BestGuessLayout
|
|
32
33
|
*/
|
|
33
34
|
BestGuessLayout(self: IconEditor): void;
|
|
35
|
+
|
|
34
36
|
/**
|
|
35
37
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
36
38
|
* Fills the [DListView](https://wiki.facepunch.com/gmod/DListView) on the left of the editor with the model entity's animation list. Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
|
|
@@ -38,6 +40,7 @@ interface IconEditor extends DFrame {
|
|
|
38
40
|
* @source https://wiki.facepunch.com/gmod/IconEditor:FillAnimations
|
|
39
41
|
*/
|
|
40
42
|
FillAnimations(self: IconEditor, ent: Entity): void;
|
|
43
|
+
|
|
41
44
|
/**
|
|
42
45
|
* Applies the front view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
43
46
|
*
|
|
@@ -47,6 +50,7 @@ interface IconEditor extends DFrame {
|
|
|
47
50
|
* @source https://wiki.facepunch.com/gmod/IconEditor:FullFrontalLayout
|
|
48
51
|
*/
|
|
49
52
|
FullFrontalLayout(self: IconEditor): void;
|
|
53
|
+
|
|
50
54
|
/**
|
|
51
55
|
* Places the camera at the origin (0,0,0), relative to the entity, in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
52
56
|
*
|
|
@@ -56,6 +60,7 @@ interface IconEditor extends DFrame {
|
|
|
56
60
|
* @source https://wiki.facepunch.com/gmod/IconEditor:OriginLayout
|
|
57
61
|
*/
|
|
58
62
|
OriginLayout(self: IconEditor): void;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* Re-renders the [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
61
66
|
*
|
|
@@ -65,6 +70,7 @@ interface IconEditor extends DFrame {
|
|
|
65
70
|
* @source https://wiki.facepunch.com/gmod/IconEditor:RenderIcon
|
|
66
71
|
*/
|
|
67
72
|
RenderIcon(self: IconEditor): void;
|
|
73
|
+
|
|
68
74
|
/**
|
|
69
75
|
* Applies the right side view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
70
76
|
*
|
|
@@ -74,6 +80,7 @@ interface IconEditor extends DFrame {
|
|
|
74
80
|
* @source https://wiki.facepunch.com/gmod/IconEditor:RightLayout
|
|
75
81
|
*/
|
|
76
82
|
RightLayout(self: IconEditor): void;
|
|
83
|
+
|
|
77
84
|
/**
|
|
78
85
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
79
86
|
* Sets up the default ambient and directional lighting for the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by [IconEditor:Refresh](https://wiki.facepunch.com/gmod/IconEditor:Refresh).
|
|
@@ -81,6 +88,7 @@ interface IconEditor extends DFrame {
|
|
|
81
88
|
* @source https://wiki.facepunch.com/gmod/IconEditor:SetDefaultLighting
|
|
82
89
|
*/
|
|
83
90
|
SetDefaultLighting(self: IconEditor): void;
|
|
91
|
+
|
|
84
92
|
/**
|
|
85
93
|
* Sets the editor's model and icon from an entity. Alternative to [IconEditor:SetIcon](https://wiki.facepunch.com/gmod/IconEditor:SetIcon), with uses a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
86
94
|
*
|
|
@@ -90,6 +98,7 @@ interface IconEditor extends DFrame {
|
|
|
90
98
|
* @source https://wiki.facepunch.com/gmod/IconEditor:SetFromEntity
|
|
91
99
|
*/
|
|
92
100
|
SetFromEntity(self: IconEditor, ent: Entity): void;
|
|
101
|
+
|
|
93
102
|
/**
|
|
94
103
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
95
104
|
* Updates the entity being rendered in the internal [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel). Called by the model panel's [DModelPanel:LayoutEntity](https://wiki.facepunch.com/gmod/DModelPanel:LayoutEntity) method.
|
|
@@ -98,14 +107,3 @@ interface IconEditor extends DFrame {
|
|
|
98
107
|
*/
|
|
99
108
|
UpdateEntity(self: IconEditor, ent: Entity): void;
|
|
100
109
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|