@tlua/gmod 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/gmod.d.tlua
CHANGED
package/types/gmsave.d.tlua
CHANGED
|
@@ -13,36 +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
|
-
}
|
|
17
16
|
|
|
18
|
-
interface GmsaveLib {
|
|
19
17
|
/**
|
|
20
18
|
* Sets player position and angles from supplied table.
|
|
21
19
|
* @realm server
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/gmsave.PlayerLoad
|
|
23
21
|
*/
|
|
24
22
|
PlayerLoad(ply: Player, data: table): void;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface GmsaveLib {
|
|
28
24
|
/**
|
|
29
25
|
* Returns a table containing player position and angles. Used by [gmsave.SaveMap](https://wiki.facepunch.com/gmod/gmsave.SaveMap).
|
|
30
26
|
* @realm server
|
|
31
27
|
* @source https://wiki.facepunch.com/gmod/gmsave.PlayerSave
|
|
32
28
|
*/
|
|
33
29
|
PlayerSave(ply: Player): table;
|
|
34
|
-
}
|
|
35
30
|
|
|
36
|
-
interface GmsaveLib {
|
|
37
31
|
/**
|
|
38
32
|
* Saves the map.
|
|
39
33
|
* @realm server
|
|
40
34
|
* @source https://wiki.facepunch.com/gmod/gmsave.SaveMap
|
|
41
35
|
*/
|
|
42
36
|
SaveMap(ply: Player): string;
|
|
43
|
-
}
|
|
44
37
|
|
|
45
|
-
interface GmsaveLib {
|
|
46
38
|
/**
|
|
47
39
|
* Returns if we should save this entity in a duplication or a map save or not.
|
|
48
40
|
* @realm server
|
|
@@ -50,4 +42,3 @@ interface GmsaveLib {
|
|
|
50
42
|
*/
|
|
51
43
|
ShouldSaveEntity(ent: Entity, t: table): boolean;
|
|
52
44
|
}
|
|
53
|
-
|
package/types/gui.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface GuiLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/gui.ActivateGameUI
|
|
14
14
|
*/
|
|
15
15
|
ActivateGameUI(): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface GuiLib {
|
|
19
17
|
/**
|
|
20
18
|
* Pushes text to the closed caption box.
|
|
21
19
|
* **WARNING**: The function will not work, if the console command variable `closecaption` is set to 0.
|
|
@@ -25,9 +23,7 @@ interface GuiLib {
|
|
|
25
23
|
* @source https://wiki.facepunch.com/gmod/gui.AddCaption
|
|
26
24
|
*/
|
|
27
25
|
AddCaption(captionStream: string, duration: number, fromPlayer?: boolean): void;
|
|
28
|
-
}
|
|
29
26
|
|
|
30
|
-
interface GuiLib {
|
|
31
27
|
/**
|
|
32
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.
|
|
33
29
|
*
|
|
@@ -38,9 +34,7 @@ interface GuiLib {
|
|
|
38
34
|
* @source https://wiki.facepunch.com/gmod/gui.EnableScreenClicker
|
|
39
35
|
*/
|
|
40
36
|
EnableScreenClicker(enabled: boolean): void;
|
|
41
|
-
}
|
|
42
37
|
|
|
43
|
-
interface GuiLib {
|
|
44
38
|
/**
|
|
45
39
|
* Hides the game main menu if it is currently open.
|
|
46
40
|
*
|
|
@@ -52,45 +46,35 @@ interface GuiLib {
|
|
|
52
46
|
* @source https://wiki.facepunch.com/gmod/gui.HideGameUI
|
|
53
47
|
*/
|
|
54
48
|
HideGameUI(): void;
|
|
55
|
-
}
|
|
56
49
|
|
|
57
|
-
interface GuiLib {
|
|
58
50
|
/**
|
|
59
51
|
* Simulates a mouse move with the given deltas.
|
|
60
52
|
* @realm client and menu
|
|
61
53
|
* @source https://wiki.facepunch.com/gmod/gui.InternalCursorMoved
|
|
62
54
|
*/
|
|
63
55
|
InternalCursorMoved(deltaX: number, deltaY: number): void;
|
|
64
|
-
}
|
|
65
56
|
|
|
66
|
-
interface GuiLib {
|
|
67
57
|
/**
|
|
68
58
|
* Simulates a key press for the given key.
|
|
69
59
|
* @realm client and menu
|
|
70
60
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodePressed
|
|
71
61
|
*/
|
|
72
62
|
InternalKeyCodePressed(key: number): void;
|
|
73
|
-
}
|
|
74
63
|
|
|
75
|
-
interface GuiLib {
|
|
76
64
|
/**
|
|
77
65
|
* Simulates a key release for the given key.
|
|
78
66
|
* @realm client and menu
|
|
79
67
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodeReleased
|
|
80
68
|
*/
|
|
81
69
|
InternalKeyCodeReleased(key: number): void;
|
|
82
|
-
}
|
|
83
70
|
|
|
84
|
-
interface GuiLib {
|
|
85
71
|
/**
|
|
86
72
|
* Simulates a key type typing to the specified key.
|
|
87
73
|
* @realm client and menu
|
|
88
74
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyCodeTyped
|
|
89
75
|
*/
|
|
90
76
|
InternalKeyCodeTyped(key: number): void;
|
|
91
|
-
}
|
|
92
77
|
|
|
93
|
-
interface GuiLib {
|
|
94
78
|
/**
|
|
95
79
|
* Simulates an ASCII symbol writing.
|
|
96
80
|
* Use to write text in the chat or in VGUI.
|
|
@@ -100,63 +84,49 @@ interface GuiLib {
|
|
|
100
84
|
* @source https://wiki.facepunch.com/gmod/gui.InternalKeyTyped
|
|
101
85
|
*/
|
|
102
86
|
InternalKeyTyped(code: number): void;
|
|
103
|
-
}
|
|
104
87
|
|
|
105
|
-
interface GuiLib {
|
|
106
88
|
/**
|
|
107
89
|
* Simulates a double mouse key press for the given mouse key.
|
|
108
90
|
* @realm client and menu
|
|
109
91
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseDoublePressed
|
|
110
92
|
*/
|
|
111
93
|
InternalMouseDoublePressed(key: number): void;
|
|
112
|
-
}
|
|
113
94
|
|
|
114
|
-
interface GuiLib {
|
|
115
95
|
/**
|
|
116
96
|
* Simulates a mouse key press for the given mouse key.
|
|
117
97
|
* @realm client and menu
|
|
118
98
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMousePressed
|
|
119
99
|
*/
|
|
120
100
|
InternalMousePressed(key: number): void;
|
|
121
|
-
}
|
|
122
101
|
|
|
123
|
-
interface GuiLib {
|
|
124
102
|
/**
|
|
125
103
|
* Simulates a mouse key release for the given mouse key.
|
|
126
104
|
* @realm client and menu
|
|
127
105
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseReleased
|
|
128
106
|
*/
|
|
129
107
|
InternalMouseReleased(key: number): void;
|
|
130
|
-
}
|
|
131
108
|
|
|
132
|
-
interface GuiLib {
|
|
133
109
|
/**
|
|
134
110
|
* Simulates a mouse wheel scroll with the given delta.
|
|
135
111
|
* @realm client and menu
|
|
136
112
|
* @source https://wiki.facepunch.com/gmod/gui.InternalMouseWheeled
|
|
137
113
|
*/
|
|
138
114
|
InternalMouseWheeled(delta: number): void;
|
|
139
|
-
}
|
|
140
115
|
|
|
141
|
-
interface GuiLib {
|
|
142
116
|
/**
|
|
143
117
|
* Returns whether the console is visible or not.
|
|
144
118
|
* @realm client and menu
|
|
145
119
|
* @source https://wiki.facepunch.com/gmod/gui.IsConsoleVisible
|
|
146
120
|
*/
|
|
147
121
|
IsConsoleVisible(): boolean;
|
|
148
|
-
}
|
|
149
122
|
|
|
150
|
-
interface GuiLib {
|
|
151
123
|
/**
|
|
152
124
|
* Returns whether the game menu overlay ( main menu ) is open or not.
|
|
153
125
|
* @realm client and menu
|
|
154
126
|
* @source https://wiki.facepunch.com/gmod/gui.IsGameUIVisible
|
|
155
127
|
*/
|
|
156
128
|
IsGameUIVisible(): boolean;
|
|
157
|
-
}
|
|
158
129
|
|
|
159
|
-
interface GuiLib {
|
|
160
130
|
/**
|
|
161
131
|
* Returns the cursor's position on the screen, or 0, 0 if cursor is not visible.
|
|
162
132
|
*
|
|
@@ -165,27 +135,21 @@ interface GuiLib {
|
|
|
165
135
|
* @deprecated Use input.GetCursorPos instead.
|
|
166
136
|
*/
|
|
167
137
|
MousePos(): (number, number);
|
|
168
|
-
}
|
|
169
138
|
|
|
170
|
-
interface GuiLib {
|
|
171
139
|
/**
|
|
172
140
|
* Returns x component of the mouse position.
|
|
173
141
|
* @realm client and menu
|
|
174
142
|
* @source https://wiki.facepunch.com/gmod/gui.MouseX
|
|
175
143
|
*/
|
|
176
144
|
MouseX(): number;
|
|
177
|
-
}
|
|
178
145
|
|
|
179
|
-
interface GuiLib {
|
|
180
146
|
/**
|
|
181
147
|
* Returns y component of the mouse position.
|
|
182
148
|
* @realm client and menu
|
|
183
149
|
* @source https://wiki.facepunch.com/gmod/gui.MouseY
|
|
184
150
|
*/
|
|
185
151
|
MouseY(): number;
|
|
186
|
-
}
|
|
187
152
|
|
|
188
|
-
interface GuiLib {
|
|
189
153
|
/**
|
|
190
154
|
* Opens specified URL in the steam overlay browser.
|
|
191
155
|
*
|
|
@@ -196,9 +160,7 @@ interface GuiLib {
|
|
|
196
160
|
* @source https://wiki.facepunch.com/gmod/gui.OpenURL
|
|
197
161
|
*/
|
|
198
162
|
OpenURL(url: string): void;
|
|
199
|
-
}
|
|
200
163
|
|
|
201
|
-
interface GuiLib {
|
|
202
164
|
/**
|
|
203
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.
|
|
204
166
|
*
|
|
@@ -208,9 +170,7 @@ interface GuiLib {
|
|
|
208
170
|
* @source https://wiki.facepunch.com/gmod/gui.ScreenToVector
|
|
209
171
|
*/
|
|
210
172
|
ScreenToVector(x: number, y: number): Vector;
|
|
211
|
-
}
|
|
212
173
|
|
|
213
|
-
interface GuiLib {
|
|
214
174
|
/**
|
|
215
175
|
* Sets the cursor's position on the screen, relative to the topleft corner of the window
|
|
216
176
|
*
|
|
@@ -219,9 +179,7 @@ interface GuiLib {
|
|
|
219
179
|
* @deprecated Use input.SetCursorPos instead.
|
|
220
180
|
*/
|
|
221
181
|
SetMousePos(mouseX: number, mouseY: number): void;
|
|
222
|
-
}
|
|
223
182
|
|
|
224
|
-
interface GuiLib {
|
|
225
183
|
/**
|
|
226
184
|
* Shows console in the game UI.
|
|
227
185
|
* @realm menu
|
|
@@ -229,4 +187,3 @@ interface GuiLib {
|
|
|
229
187
|
*/
|
|
230
188
|
ShowConsole(): void;
|
|
231
189
|
}
|
|
232
|
-
|
package/types/gwen.d.tlua
CHANGED
|
@@ -18,9 +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
|
-
}
|
|
22
21
|
|
|
23
|
-
interface GWENLib {
|
|
24
22
|
/**
|
|
25
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.
|
|
26
24
|
*
|
|
@@ -29,9 +27,7 @@ interface GWENLib {
|
|
|
29
27
|
* @source https://wiki.facepunch.com/gmod/GWEN.CreateTextureCentered
|
|
30
28
|
*/
|
|
31
29
|
CreateTextureCentered(x: number, y: number, w: number, h: number, material?: IMaterial): (x: number, y: number, w: number, h: number, clr?: Color) => void;
|
|
32
|
-
}
|
|
33
30
|
|
|
34
|
-
interface GWENLib {
|
|
35
31
|
/**
|
|
36
32
|
* Helper function that returns a specialized drawing function for rendering a texture that scales freely to fit the given area.
|
|
37
33
|
*
|
|
@@ -42,9 +38,7 @@ interface GWENLib {
|
|
|
42
38
|
* @source https://wiki.facepunch.com/gmod/GWEN.CreateTextureNormal
|
|
43
39
|
*/
|
|
44
40
|
CreateTextureNormal(x: number, y: number, w: number, h: number, material?: IMaterial): (x: number, y: number, w: number, h: number, clr?: Color) => void;
|
|
45
|
-
}
|
|
46
41
|
|
|
47
|
-
interface GWENLib {
|
|
48
42
|
/**
|
|
49
43
|
* Retrieves the color from a materials texture at the provided UV coordinates
|
|
50
44
|
* @realm client and menu
|
|
@@ -52,4 +46,3 @@ interface GWENLib {
|
|
|
52
46
|
*/
|
|
53
47
|
TextureColor(x: number, y: number): Color;
|
|
54
48
|
}
|
|
55
|
-
|
package/types/halo.d.tlua
CHANGED
|
@@ -16,9 +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
|
-
}
|
|
20
19
|
|
|
21
|
-
interface HaloLib {
|
|
22
20
|
/**
|
|
23
21
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
24
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.
|
|
@@ -26,9 +24,7 @@ interface HaloLib {
|
|
|
26
24
|
* @source https://wiki.facepunch.com/gmod/halo.Render
|
|
27
25
|
*/
|
|
28
26
|
Render(entry: table): void;
|
|
29
|
-
}
|
|
30
27
|
|
|
31
|
-
interface HaloLib {
|
|
32
28
|
/**
|
|
33
29
|
* Returns the entity the halo library is currently rendering the halo for.
|
|
34
30
|
*
|
|
@@ -39,4 +35,3 @@ interface HaloLib {
|
|
|
39
35
|
*/
|
|
40
36
|
RenderedEntity(): Entity;
|
|
41
37
|
}
|
|
42
|
-
|
package/types/hammer.d.tlua
CHANGED
package/types/hook.d.tlua
CHANGED
|
@@ -15,9 +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
|
-
}
|
|
19
18
|
|
|
20
|
-
interface HookLib {
|
|
21
19
|
/**
|
|
22
20
|
* Calls all hooks associated with the given event until one returns something other than `nil`, and then returns that data.
|
|
23
21
|
*
|
|
@@ -27,27 +25,21 @@ interface HookLib {
|
|
|
27
25
|
* @source https://wiki.facepunch.com/gmod/hook.Call
|
|
28
26
|
*/
|
|
29
27
|
Call(eventName: string, gamemodeTable?: table, ...: any): (...any);
|
|
30
|
-
}
|
|
31
28
|
|
|
32
|
-
interface HookLib {
|
|
33
29
|
/**
|
|
34
30
|
* Returns a list of all the hooks registered with [hook.Add](https://wiki.facepunch.com/gmod/hook.Add).
|
|
35
31
|
* @realm shared and menu
|
|
36
32
|
* @source https://wiki.facepunch.com/gmod/hook.GetTable
|
|
37
33
|
*/
|
|
38
34
|
GetTable(): table;
|
|
39
|
-
}
|
|
40
35
|
|
|
41
|
-
interface HookLib {
|
|
42
36
|
/**
|
|
43
37
|
* Removes the hook with the supplied identifier from the given event.
|
|
44
38
|
* @realm shared and menu
|
|
45
39
|
* @source https://wiki.facepunch.com/gmod/hook.Remove
|
|
46
40
|
*/
|
|
47
41
|
Remove(eventName: string, identifier: any): void;
|
|
48
|
-
}
|
|
49
42
|
|
|
50
|
-
interface HookLib {
|
|
51
43
|
/**
|
|
52
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.
|
|
53
45
|
*
|
|
@@ -60,4 +52,3 @@ interface HookLib {
|
|
|
60
52
|
*/
|
|
61
53
|
Run(eventName: string, ...: any): (...any);
|
|
62
54
|
}
|
|
63
|
-
|
package/types/html.d.tlua
CHANGED
package/types/http.d.tlua
CHANGED
|
@@ -46,9 +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
|
-
}
|
|
50
49
|
|
|
51
|
-
interface HttpLib {
|
|
52
50
|
/**
|
|
53
51
|
* Sends an asynchronous **POST** request to an HTTP server. Internally calls [Global.HTTP](https://wiki.facepunch.com/gmod/Global.HTTP).
|
|
54
52
|
*
|
|
@@ -69,4 +67,3 @@ interface HttpLib {
|
|
|
69
67
|
*/
|
|
70
68
|
Post(url: string, parameters: table, onSuccess?: (body: string, size: string, headers: table, code: number) => void, onFailure?: (error: string) => void, headers?: table): void;
|
|
71
69
|
}
|
|
72
|
-
|
package/types/iconeditor.d.tlua
CHANGED
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
* @realm client
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/IconEditor
|
|
14
14
|
*/
|
|
15
|
-
interface IconEditor extends DFrame {
|
|
16
|
-
|
|
17
|
-
interface IconEditor {
|
|
15
|
+
interface IconEditor extends DFrame {
|
|
18
16
|
/**
|
|
19
17
|
* Applies the top-down view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
20
18
|
*
|
|
@@ -24,9 +22,7 @@ interface IconEditor {
|
|
|
24
22
|
* @source https://wiki.facepunch.com/gmod/IconEditor:AboveLayout
|
|
25
23
|
*/
|
|
26
24
|
AboveLayout(self: IconEditor): void;
|
|
27
|
-
}
|
|
28
25
|
|
|
29
|
-
interface IconEditor {
|
|
30
26
|
/**
|
|
31
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).
|
|
32
28
|
*
|
|
@@ -36,9 +32,7 @@ interface IconEditor {
|
|
|
36
32
|
* @source https://wiki.facepunch.com/gmod/IconEditor:BestGuessLayout
|
|
37
33
|
*/
|
|
38
34
|
BestGuessLayout(self: IconEditor): void;
|
|
39
|
-
}
|
|
40
35
|
|
|
41
|
-
interface IconEditor {
|
|
42
36
|
/**
|
|
43
37
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
44
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).
|
|
@@ -46,9 +40,7 @@ interface IconEditor {
|
|
|
46
40
|
* @source https://wiki.facepunch.com/gmod/IconEditor:FillAnimations
|
|
47
41
|
*/
|
|
48
42
|
FillAnimations(self: IconEditor, ent: Entity): void;
|
|
49
|
-
}
|
|
50
43
|
|
|
51
|
-
interface IconEditor {
|
|
52
44
|
/**
|
|
53
45
|
* Applies the front view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
54
46
|
*
|
|
@@ -58,9 +50,7 @@ interface IconEditor {
|
|
|
58
50
|
* @source https://wiki.facepunch.com/gmod/IconEditor:FullFrontalLayout
|
|
59
51
|
*/
|
|
60
52
|
FullFrontalLayout(self: IconEditor): void;
|
|
61
|
-
}
|
|
62
53
|
|
|
63
|
-
interface IconEditor {
|
|
64
54
|
/**
|
|
65
55
|
* Places the camera at the origin (0,0,0), relative to the entity, in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
66
56
|
*
|
|
@@ -70,9 +60,7 @@ interface IconEditor {
|
|
|
70
60
|
* @source https://wiki.facepunch.com/gmod/IconEditor:OriginLayout
|
|
71
61
|
*/
|
|
72
62
|
OriginLayout(self: IconEditor): void;
|
|
73
|
-
}
|
|
74
63
|
|
|
75
|
-
interface IconEditor {
|
|
76
64
|
/**
|
|
77
65
|
* Re-renders the [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
|
|
78
66
|
*
|
|
@@ -82,9 +70,7 @@ interface IconEditor {
|
|
|
82
70
|
* @source https://wiki.facepunch.com/gmod/IconEditor:RenderIcon
|
|
83
71
|
*/
|
|
84
72
|
RenderIcon(self: IconEditor): void;
|
|
85
|
-
}
|
|
86
73
|
|
|
87
|
-
interface IconEditor {
|
|
88
74
|
/**
|
|
89
75
|
* Applies the right side view camera settings for the model in the [DAdjustableModelPanel](https://wiki.facepunch.com/gmod/DAdjustableModelPanel).
|
|
90
76
|
*
|
|
@@ -94,9 +80,7 @@ interface IconEditor {
|
|
|
94
80
|
* @source https://wiki.facepunch.com/gmod/IconEditor:RightLayout
|
|
95
81
|
*/
|
|
96
82
|
RightLayout(self: IconEditor): void;
|
|
97
|
-
}
|
|
98
83
|
|
|
99
|
-
interface IconEditor {
|
|
100
84
|
/**
|
|
101
85
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
102
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).
|
|
@@ -104,9 +88,7 @@ interface IconEditor {
|
|
|
104
88
|
* @source https://wiki.facepunch.com/gmod/IconEditor:SetDefaultLighting
|
|
105
89
|
*/
|
|
106
90
|
SetDefaultLighting(self: IconEditor): void;
|
|
107
|
-
}
|
|
108
91
|
|
|
109
|
-
interface IconEditor {
|
|
110
92
|
/**
|
|
111
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).
|
|
112
94
|
*
|
|
@@ -116,9 +98,7 @@ interface IconEditor {
|
|
|
116
98
|
* @source https://wiki.facepunch.com/gmod/IconEditor:SetFromEntity
|
|
117
99
|
*/
|
|
118
100
|
SetFromEntity(self: IconEditor, ent: Entity): void;
|
|
119
|
-
}
|
|
120
101
|
|
|
121
|
-
interface IconEditor {
|
|
122
102
|
/**
|
|
123
103
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
124
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.
|
|
@@ -127,4 +107,3 @@ interface IconEditor {
|
|
|
127
107
|
*/
|
|
128
108
|
UpdateEntity(self: IconEditor, ent: Entity): void;
|
|
129
109
|
}
|
|
130
|
-
|