@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/surface.d.tlua
CHANGED
|
@@ -26,9 +26,7 @@ interface SurfaceLib {
|
|
|
26
26
|
* @source https://wiki.facepunch.com/gmod/surface.CreateFont
|
|
27
27
|
*/
|
|
28
28
|
CreateFont(fontName: string, fontData: FontData): void;
|
|
29
|
-
}
|
|
30
29
|
|
|
31
|
-
interface SurfaceLib {
|
|
32
30
|
/**
|
|
33
31
|
* Enables or disables the clipping used by the VGUI that limits the drawing operations to a panels bounds.
|
|
34
32
|
*
|
|
@@ -39,9 +37,7 @@ interface SurfaceLib {
|
|
|
39
37
|
* @deprecated Alias of Global.DisableClipping so use that instead.
|
|
40
38
|
*/
|
|
41
39
|
DisableClipping(disable: boolean): boolean;
|
|
42
|
-
}
|
|
43
40
|
|
|
44
|
-
interface SurfaceLib {
|
|
45
41
|
/**
|
|
46
42
|
* Draws a hollow circle, made of lines. For a filled circle, see examples for [surface.DrawPoly](https://wiki.facepunch.com/gmod/surface.DrawPoly).
|
|
47
43
|
*
|
|
@@ -51,13 +47,9 @@ interface SurfaceLib {
|
|
|
51
47
|
* @source https://wiki.facepunch.com/gmod/surface.DrawCircle
|
|
52
48
|
*/
|
|
53
49
|
DrawCircle(originX: number, originY: number, radius: number, r: number, g: number, b: number, a?: number): void;
|
|
54
|
-
}
|
|
55
50
|
|
|
56
|
-
interface SurfaceLib {
|
|
57
51
|
DrawCircle(originX: number, originY: number, radius: number, color: Color): void;
|
|
58
|
-
}
|
|
59
52
|
|
|
60
|
-
interface SurfaceLib {
|
|
61
53
|
/**
|
|
62
54
|
* Draws a line from one point to another.
|
|
63
55
|
*
|
|
@@ -67,9 +59,7 @@ interface SurfaceLib {
|
|
|
67
59
|
* @source https://wiki.facepunch.com/gmod/surface.DrawLine
|
|
68
60
|
*/
|
|
69
61
|
DrawLine(startX: number, startY: number, endX: number, endY: number): void;
|
|
70
|
-
}
|
|
71
62
|
|
|
72
|
-
interface SurfaceLib {
|
|
73
63
|
/**
|
|
74
64
|
* Draws a hollow box with a given border width.
|
|
75
65
|
*
|
|
@@ -79,9 +69,7 @@ interface SurfaceLib {
|
|
|
79
69
|
* @source https://wiki.facepunch.com/gmod/surface.DrawOutlinedRect
|
|
80
70
|
*/
|
|
81
71
|
DrawOutlinedRect(x: number, y: number, w: number, h: number, thickness?: number): void;
|
|
82
|
-
}
|
|
83
72
|
|
|
84
|
-
interface SurfaceLib {
|
|
85
73
|
/**
|
|
86
74
|
* Draws a textured polygon (secretly a triangle fan) with a maximum of 4096 vertices.
|
|
87
75
|
* Only works properly with convex polygons. You may try to render concave polygons, but there is no guarantee that things wont get messed up.
|
|
@@ -97,9 +85,7 @@ interface SurfaceLib {
|
|
|
97
85
|
* @source https://wiki.facepunch.com/gmod/surface.DrawPoly
|
|
98
86
|
*/
|
|
99
87
|
DrawPoly(vertices: table): void;
|
|
100
|
-
}
|
|
101
88
|
|
|
102
|
-
interface SurfaceLib {
|
|
103
89
|
/**
|
|
104
90
|
* Draws a solid rectangle on the screen.
|
|
105
91
|
*
|
|
@@ -109,9 +95,7 @@ interface SurfaceLib {
|
|
|
109
95
|
* @source https://wiki.facepunch.com/gmod/surface.DrawRect
|
|
110
96
|
*/
|
|
111
97
|
DrawRect(x: number, y: number, width: number, height: number): void;
|
|
112
|
-
}
|
|
113
98
|
|
|
114
|
-
interface SurfaceLib {
|
|
115
99
|
/**
|
|
116
100
|
* Draw the specified text on the screen, using the previously set [position](https://wiki.facepunch.com/gmod/surface.SetTextPos), [font](https://wiki.facepunch.com/gmod/surface.SetFont) and [color](https://wiki.facepunch.com/gmod/surface.SetTextColor). This function does **not** handle newlines.
|
|
117
101
|
*
|
|
@@ -123,9 +107,7 @@ interface SurfaceLib {
|
|
|
123
107
|
* @source https://wiki.facepunch.com/gmod/surface.DrawText
|
|
124
108
|
*/
|
|
125
109
|
DrawText(text: string, forceAdditive?: boolean): void;
|
|
126
|
-
}
|
|
127
110
|
|
|
128
|
-
interface SurfaceLib {
|
|
129
111
|
/**
|
|
130
112
|
* Draw a textured rectangle with the given position and dimensions on the screen, using the current active texture set with [surface.SetMaterial](https://wiki.facepunch.com/gmod/surface.SetMaterial). It is also affected by [surface.SetDrawColor](https://wiki.facepunch.com/gmod/surface.SetDrawColor).
|
|
131
113
|
*
|
|
@@ -138,9 +120,7 @@ interface SurfaceLib {
|
|
|
138
120
|
* @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRect
|
|
139
121
|
*/
|
|
140
122
|
DrawTexturedRect(x: number, y: number, width: number, height: number): void;
|
|
141
|
-
}
|
|
142
123
|
|
|
143
|
-
interface SurfaceLib {
|
|
144
124
|
/**
|
|
145
125
|
* Draw a textured rotated rectangle with the given position and dimensions and angle on the screen, using the current active texture.
|
|
146
126
|
*
|
|
@@ -152,9 +132,7 @@ interface SurfaceLib {
|
|
|
152
132
|
* @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRectRotated
|
|
153
133
|
*/
|
|
154
134
|
DrawTexturedRectRotated(x: number, y: number, width: number, height: number, rotation: number): void;
|
|
155
|
-
}
|
|
156
135
|
|
|
157
|
-
interface SurfaceLib {
|
|
158
136
|
/**
|
|
159
137
|
* Draws a textured rectangle with a repeated or partial texture.
|
|
160
138
|
*
|
|
@@ -196,18 +174,14 @@ interface SurfaceLib {
|
|
|
196
174
|
* @source https://wiki.facepunch.com/gmod/surface.DrawTexturedRectUV
|
|
197
175
|
*/
|
|
198
176
|
DrawTexturedRectUV(x: number, y: number, width: number, height: number, startU: number, startV: number, endU: number, endV: number): void;
|
|
199
|
-
}
|
|
200
177
|
|
|
201
|
-
interface SurfaceLib {
|
|
202
178
|
/**
|
|
203
179
|
* Returns the current alpha multiplier affecting drawing operations. This is set by [surface.SetAlphaMultiplier](https://wiki.facepunch.com/gmod/surface.SetAlphaMultiplier) or by the game engine in certain other cases.
|
|
204
180
|
* @realm client and menu
|
|
205
181
|
* @source https://wiki.facepunch.com/gmod/surface.GetAlphaMultiplier
|
|
206
182
|
*/
|
|
207
183
|
GetAlphaMultiplier(): number;
|
|
208
|
-
}
|
|
209
184
|
|
|
210
|
-
interface SurfaceLib {
|
|
211
185
|
/**
|
|
212
186
|
* Returns the current color affecting draw operations.
|
|
213
187
|
*
|
|
@@ -216,9 +190,7 @@ interface SurfaceLib {
|
|
|
216
190
|
* @source https://wiki.facepunch.com/gmod/surface.GetDrawColor
|
|
217
191
|
*/
|
|
218
192
|
GetDrawColor(): Color;
|
|
219
|
-
}
|
|
220
193
|
|
|
221
|
-
interface SurfaceLib {
|
|
222
194
|
/**
|
|
223
195
|
* Returns the [HUD icon](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/scripts/hud_textures.txt) TextureID of a texture with the specified name.
|
|
224
196
|
*
|
|
@@ -227,9 +199,7 @@ interface SurfaceLib {
|
|
|
227
199
|
* @source https://wiki.facepunch.com/gmod/surface.GetHUDTexture
|
|
228
200
|
*/
|
|
229
201
|
GetHUDTexture(name: string): number;
|
|
230
|
-
}
|
|
231
202
|
|
|
232
|
-
interface SurfaceLib {
|
|
233
203
|
/**
|
|
234
204
|
* Retrieves the position and [ScissorRect](https://wiki.facepunch.com/gmod/render.SetScissorRect) information for the [Panel](https://wiki.facepunch.com/gmod/Panel) that is currently being drawn.
|
|
235
205
|
*
|
|
@@ -239,9 +209,7 @@ interface SurfaceLib {
|
|
|
239
209
|
* @source https://wiki.facepunch.com/gmod/surface.GetPanelPaintState
|
|
240
210
|
*/
|
|
241
211
|
GetPanelPaintState(): PanelPaintState;
|
|
242
|
-
}
|
|
243
212
|
|
|
244
|
-
interface SurfaceLib {
|
|
245
213
|
/**
|
|
246
214
|
* Retrieves the currently active scissor rect for the surface library. A faster, narrower version of [surface.GetPanelPaintState](https://wiki.facepunch.com/gmod/surface.GetPanelPaintState).
|
|
247
215
|
*
|
|
@@ -253,9 +221,7 @@ interface SurfaceLib {
|
|
|
253
221
|
* @source https://wiki.facepunch.com/gmod/surface.GetScissorRect
|
|
254
222
|
*/
|
|
255
223
|
GetScissorRect(): (boolean, number, number, number, number);
|
|
256
|
-
}
|
|
257
224
|
|
|
258
|
-
interface SurfaceLib {
|
|
259
225
|
/**
|
|
260
226
|
* Returns the current color affecting text draw operations.
|
|
261
227
|
*
|
|
@@ -264,18 +230,14 @@ interface SurfaceLib {
|
|
|
264
230
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextColor
|
|
265
231
|
*/
|
|
266
232
|
GetTextColor(): Color;
|
|
267
|
-
}
|
|
268
233
|
|
|
269
|
-
interface SurfaceLib {
|
|
270
234
|
/**
|
|
271
235
|
* Returns the X and Y co-ordinate that has been set with [surface.SetTextPos](https://wiki.facepunch.com/gmod/surface.SetTextPos) or changed by [surface.DrawText](https://wiki.facepunch.com/gmod/surface.DrawText).
|
|
272
236
|
* @realm client and menu
|
|
273
237
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextPos
|
|
274
238
|
*/
|
|
275
239
|
GetTextPos(): (number, number);
|
|
276
|
-
}
|
|
277
240
|
|
|
278
|
-
interface SurfaceLib {
|
|
279
241
|
/**
|
|
280
242
|
* Returns the width and height (in pixels) of the given text with the font that has been set with [surface.SetFont](https://wiki.facepunch.com/gmod/surface.SetFont).
|
|
281
243
|
*
|
|
@@ -285,9 +247,7 @@ interface SurfaceLib {
|
|
|
285
247
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextSize
|
|
286
248
|
*/
|
|
287
249
|
GetTextSize(text: string): (number, number);
|
|
288
|
-
}
|
|
289
250
|
|
|
290
|
-
interface SurfaceLib {
|
|
291
251
|
/**
|
|
292
252
|
* Returns the texture id of the material with the given name/path, for use with [surface.SetTexture](https://wiki.facepunch.com/gmod/surface.SetTexture).
|
|
293
253
|
*
|
|
@@ -300,9 +260,7 @@ interface SurfaceLib {
|
|
|
300
260
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextureID
|
|
301
261
|
*/
|
|
302
262
|
GetTextureID(nameOrPath: string): number;
|
|
303
|
-
}
|
|
304
263
|
|
|
305
|
-
interface SurfaceLib {
|
|
306
264
|
/**
|
|
307
265
|
* Returns name/path of texture by ID. Opposite version of this function is [surface.GetTextureID](https://wiki.facepunch.com/gmod/surface.GetTextureID).
|
|
308
266
|
*
|
|
@@ -311,9 +269,7 @@ interface SurfaceLib {
|
|
|
311
269
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextureNameByID
|
|
312
270
|
*/
|
|
313
271
|
GetTextureNameByID(id: number): string;
|
|
314
|
-
}
|
|
315
272
|
|
|
316
|
-
interface SurfaceLib {
|
|
317
273
|
/**
|
|
318
274
|
* Returns the size of the texture with the associated texture ID.
|
|
319
275
|
*
|
|
@@ -323,9 +279,7 @@ interface SurfaceLib {
|
|
|
323
279
|
* @source https://wiki.facepunch.com/gmod/surface.GetTextureSize
|
|
324
280
|
*/
|
|
325
281
|
GetTextureSize(textureID: number): (number, number);
|
|
326
|
-
}
|
|
327
282
|
|
|
328
|
-
interface SurfaceLib {
|
|
329
283
|
/**
|
|
330
284
|
* Play a sound file directly on the client (such as UI sounds, etc).
|
|
331
285
|
*
|
|
@@ -339,9 +293,7 @@ interface SurfaceLib {
|
|
|
339
293
|
* @source https://wiki.facepunch.com/gmod/surface.PlaySound
|
|
340
294
|
*/
|
|
341
295
|
PlaySound(soundfile: string): void;
|
|
342
|
-
}
|
|
343
296
|
|
|
344
|
-
interface SurfaceLib {
|
|
345
297
|
/**
|
|
346
298
|
* Returns the height of the current client's screen.
|
|
347
299
|
*
|
|
@@ -350,9 +302,7 @@ interface SurfaceLib {
|
|
|
350
302
|
* @deprecated You should use Global.ScrH instead.
|
|
351
303
|
*/
|
|
352
304
|
ScreenHeight(): number;
|
|
353
|
-
}
|
|
354
305
|
|
|
355
|
-
interface SurfaceLib {
|
|
356
306
|
/**
|
|
357
307
|
* Returns the width of the current client's screen.
|
|
358
308
|
*
|
|
@@ -361,9 +311,7 @@ interface SurfaceLib {
|
|
|
361
311
|
* @deprecated You should use Global.ScrW instead.
|
|
362
312
|
*/
|
|
363
313
|
ScreenWidth(): number;
|
|
364
|
-
}
|
|
365
314
|
|
|
366
|
-
interface SurfaceLib {
|
|
367
315
|
/**
|
|
368
316
|
* Sets the alpha multiplier that will influence all upcoming drawing operations.
|
|
369
317
|
* See also [render.SetBlend](https://wiki.facepunch.com/gmod/render.SetBlend).
|
|
@@ -372,9 +320,7 @@ interface SurfaceLib {
|
|
|
372
320
|
* @source https://wiki.facepunch.com/gmod/surface.SetAlphaMultiplier
|
|
373
321
|
*/
|
|
374
322
|
SetAlphaMultiplier(multiplier: number): void;
|
|
375
|
-
}
|
|
376
323
|
|
|
377
|
-
interface SurfaceLib {
|
|
378
324
|
/**
|
|
379
325
|
* Set the color of any future shapes to be drawn, can be set by either using R, G, B, A as separate values or by a [Color](https://wiki.facepunch.com/gmod/Color).
|
|
380
326
|
*
|
|
@@ -387,13 +333,9 @@ interface SurfaceLib {
|
|
|
387
333
|
* @source https://wiki.facepunch.com/gmod/surface.SetDrawColor
|
|
388
334
|
*/
|
|
389
335
|
SetDrawColor(r: number, g: number, b: number, a?: number): void;
|
|
390
|
-
}
|
|
391
336
|
|
|
392
|
-
interface SurfaceLib {
|
|
393
337
|
SetDrawColor(color: Color): void;
|
|
394
|
-
}
|
|
395
338
|
|
|
396
|
-
interface SurfaceLib {
|
|
397
339
|
/**
|
|
398
340
|
* Set the current font to be used for text operations later.
|
|
399
341
|
*
|
|
@@ -403,9 +345,7 @@ interface SurfaceLib {
|
|
|
403
345
|
* @source https://wiki.facepunch.com/gmod/surface.SetFont
|
|
404
346
|
*/
|
|
405
347
|
SetFont(fontName: string): void;
|
|
406
|
-
}
|
|
407
348
|
|
|
408
|
-
interface SurfaceLib {
|
|
409
349
|
/**
|
|
410
350
|
* Sets the material to be used in all upcoming draw operations using the surface library.
|
|
411
351
|
*
|
|
@@ -421,9 +361,7 @@ interface SurfaceLib {
|
|
|
421
361
|
* @source https://wiki.facepunch.com/gmod/surface.SetMaterial
|
|
422
362
|
*/
|
|
423
363
|
SetMaterial(material: IMaterial): void;
|
|
424
|
-
}
|
|
425
364
|
|
|
426
|
-
interface SurfaceLib {
|
|
427
365
|
/**
|
|
428
366
|
* Set the color of any future text to be drawn, can be set by either using R, G, B, A as separate numbers or by providing a [Color](https://wiki.facepunch.com/gmod/Color).
|
|
429
367
|
*
|
|
@@ -431,22 +369,16 @@ interface SurfaceLib {
|
|
|
431
369
|
* @source https://wiki.facepunch.com/gmod/surface.SetTextColor
|
|
432
370
|
*/
|
|
433
371
|
SetTextColor(r: number, g: number, b: number, a?: number): void;
|
|
434
|
-
}
|
|
435
372
|
|
|
436
|
-
interface SurfaceLib {
|
|
437
373
|
SetTextColor(color: Color): void;
|
|
438
|
-
}
|
|
439
374
|
|
|
440
|
-
interface SurfaceLib {
|
|
441
375
|
/**
|
|
442
376
|
* Set the top-left position to draw any future text at.
|
|
443
377
|
* @realm client and menu
|
|
444
378
|
* @source https://wiki.facepunch.com/gmod/surface.SetTextPos
|
|
445
379
|
*/
|
|
446
380
|
SetTextPos(x: number, y: number): void;
|
|
447
|
-
}
|
|
448
381
|
|
|
449
|
-
interface SurfaceLib {
|
|
450
382
|
/**
|
|
451
383
|
* Sets the texture to be used in all upcoming draw operations using the surface library.
|
|
452
384
|
*
|
|
@@ -460,4 +392,3 @@ interface SurfaceLib {
|
|
|
460
392
|
*/
|
|
461
393
|
SetTexture(textureID: number): void;
|
|
462
394
|
}
|
|
463
|
-
|
package/types/surfaceinfo.d.tlua
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @source https://wiki.facepunch.com/gmod/SurfaceInfo
|
|
11
11
|
*/
|
|
12
|
-
interface SurfaceInfo {}
|
|
13
|
-
|
|
14
12
|
interface SurfaceInfo {
|
|
15
13
|
/**
|
|
16
14
|
* Returns the brush surface's material.
|
|
@@ -18,18 +16,14 @@ interface SurfaceInfo {
|
|
|
18
16
|
* @source https://wiki.facepunch.com/gmod/SurfaceInfo:GetMaterial
|
|
19
17
|
*/
|
|
20
18
|
GetMaterial(self: SurfaceInfo): IMaterial;
|
|
21
|
-
}
|
|
22
19
|
|
|
23
|
-
interface SurfaceInfo {
|
|
24
20
|
/**
|
|
25
21
|
* Returns a list of vertices the brush surface is built from.
|
|
26
22
|
* @realm shared
|
|
27
23
|
* @source https://wiki.facepunch.com/gmod/SurfaceInfo:GetVertices
|
|
28
24
|
*/
|
|
29
25
|
GetVertices(self: SurfaceInfo): Vector[];
|
|
30
|
-
}
|
|
31
26
|
|
|
32
|
-
interface SurfaceInfo {
|
|
33
27
|
/**
|
|
34
28
|
* Checks if the brush surface is a nodraw surface, meaning it will not be drawn by the engine.
|
|
35
29
|
*
|
|
@@ -40,9 +34,7 @@ interface SurfaceInfo {
|
|
|
40
34
|
* @source https://wiki.facepunch.com/gmod/SurfaceInfo:IsNoDraw
|
|
41
35
|
*/
|
|
42
36
|
IsNoDraw(self: SurfaceInfo): boolean;
|
|
43
|
-
}
|
|
44
37
|
|
|
45
|
-
interface SurfaceInfo {
|
|
46
38
|
/**
|
|
47
39
|
* Checks if the brush surface is displaying the skybox.
|
|
48
40
|
*
|
|
@@ -53,9 +45,7 @@ interface SurfaceInfo {
|
|
|
53
45
|
* @source https://wiki.facepunch.com/gmod/SurfaceInfo:IsSky
|
|
54
46
|
*/
|
|
55
47
|
IsSky(self: SurfaceInfo): boolean;
|
|
56
|
-
}
|
|
57
48
|
|
|
58
|
-
interface SurfaceInfo {
|
|
59
49
|
/**
|
|
60
50
|
* Checks if the brush surface is water.
|
|
61
51
|
*
|
|
@@ -67,4 +57,3 @@ interface SurfaceInfo {
|
|
|
67
57
|
*/
|
|
68
58
|
IsWater(self: SurfaceInfo): boolean;
|
|
69
59
|
}
|
|
70
|
-
|
package/types/system.d.tlua
CHANGED
|
@@ -19,27 +19,21 @@ interface SystemLib {
|
|
|
19
19
|
* @source https://wiki.facepunch.com/gmod/system.AppTime
|
|
20
20
|
*/
|
|
21
21
|
AppTime(): number;
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
interface SystemLib {
|
|
25
23
|
/**
|
|
26
24
|
* Returns the current battery power.
|
|
27
25
|
* @realm shared and menu
|
|
28
26
|
* @source https://wiki.facepunch.com/gmod/system.BatteryPower
|
|
29
27
|
*/
|
|
30
28
|
BatteryPower(): number;
|
|
31
|
-
}
|
|
32
29
|
|
|
33
|
-
interface SystemLib {
|
|
34
30
|
/**
|
|
35
31
|
* Flashes the window, turning the border to white briefly
|
|
36
32
|
* @realm client and menu
|
|
37
33
|
* @source https://wiki.facepunch.com/gmod/system.FlashWindow
|
|
38
34
|
*/
|
|
39
35
|
FlashWindow(): void;
|
|
40
|
-
}
|
|
41
36
|
|
|
42
|
-
interface SystemLib {
|
|
43
37
|
/**
|
|
44
38
|
* Returns the country code of this computer, determined by the IP of the client. Uses the steamworks API function `SteamUtils()->GetIPCountry()`.
|
|
45
39
|
*
|
|
@@ -50,9 +44,7 @@ interface SystemLib {
|
|
|
50
44
|
* @source https://wiki.facepunch.com/gmod/system.GetCountry
|
|
51
45
|
*/
|
|
52
46
|
GetCountry(): string;
|
|
53
|
-
}
|
|
54
47
|
|
|
55
|
-
interface SystemLib {
|
|
56
48
|
/**
|
|
57
49
|
* Returns whether or not the game window has focus.
|
|
58
50
|
*
|
|
@@ -63,27 +55,21 @@ interface SystemLib {
|
|
|
63
55
|
* @source https://wiki.facepunch.com/gmod/system.HasFocus
|
|
64
56
|
*/
|
|
65
57
|
HasFocus(): boolean;
|
|
66
|
-
}
|
|
67
58
|
|
|
68
|
-
interface SystemLib {
|
|
69
59
|
/**
|
|
70
60
|
* Returns whether the current OS is Linux.
|
|
71
61
|
* @realm shared and menu
|
|
72
62
|
* @source https://wiki.facepunch.com/gmod/system.IsLinux
|
|
73
63
|
*/
|
|
74
64
|
IsLinux(): boolean;
|
|
75
|
-
}
|
|
76
65
|
|
|
77
|
-
interface SystemLib {
|
|
78
66
|
/**
|
|
79
67
|
* Returns whether the current OS is OSX.
|
|
80
68
|
* @realm shared and menu
|
|
81
69
|
* @source https://wiki.facepunch.com/gmod/system.IsOSX
|
|
82
70
|
*/
|
|
83
71
|
IsOSX(): boolean;
|
|
84
|
-
}
|
|
85
72
|
|
|
86
|
-
interface SystemLib {
|
|
87
73
|
/**
|
|
88
74
|
* Returns whether the game is being run in a window or in fullscreen (you can change this by opening the menu, clicking 'Options', then clicking the 'Video' tab, and changing the Display Mode using the dropdown menu):
|
|
89
75
|
*
|
|
@@ -93,18 +79,14 @@ interface SystemLib {
|
|
|
93
79
|
* @source https://wiki.facepunch.com/gmod/system.IsWindowed
|
|
94
80
|
*/
|
|
95
81
|
IsWindowed(): boolean;
|
|
96
|
-
}
|
|
97
82
|
|
|
98
|
-
interface SystemLib {
|
|
99
83
|
/**
|
|
100
84
|
* Returns whether the current OS is Windows.
|
|
101
85
|
* @realm shared and menu
|
|
102
86
|
* @source https://wiki.facepunch.com/gmod/system.IsWindows
|
|
103
87
|
*/
|
|
104
88
|
IsWindows(): boolean;
|
|
105
|
-
}
|
|
106
89
|
|
|
107
|
-
interface SystemLib {
|
|
108
90
|
/**
|
|
109
91
|
* Returns the synchronized Steam time. This is the number of seconds since the [Unix epoch](http://en.wikipedia.org/wiki/Unix_time).
|
|
110
92
|
*
|
|
@@ -115,9 +97,7 @@ interface SystemLib {
|
|
|
115
97
|
* @source https://wiki.facepunch.com/gmod/system.SteamTime
|
|
116
98
|
*/
|
|
117
99
|
SteamTime(): number;
|
|
118
|
-
}
|
|
119
100
|
|
|
120
|
-
interface SystemLib {
|
|
121
101
|
/**
|
|
122
102
|
* Returns the amount of seconds since the Steam user last moved their mouse.
|
|
123
103
|
*
|
|
@@ -131,4 +111,3 @@ interface SystemLib {
|
|
|
131
111
|
*/
|
|
132
112
|
UpTime(): number;
|
|
133
113
|
}
|
|
134
|
-
|