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