@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
|
@@ -13,9 +13,7 @@ interface Player_managerLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/player_manager.AddValidHands
|
|
14
14
|
*/
|
|
15
15
|
AddValidHands(name: string, model: string, skin?: number, bodygroups?: string, matchBodySkin?: boolean): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface Player_managerLib {
|
|
19
17
|
/**
|
|
20
18
|
* Associates a simplified name with a path to a valid player model.
|
|
21
19
|
*
|
|
@@ -26,54 +24,42 @@ interface Player_managerLib {
|
|
|
26
24
|
* @source https://wiki.facepunch.com/gmod/player_manager.AddValidModel
|
|
27
25
|
*/
|
|
28
26
|
AddValidModel(name: string, model: string): void;
|
|
29
|
-
}
|
|
30
27
|
|
|
31
|
-
interface Player_managerLib {
|
|
32
28
|
/**
|
|
33
29
|
* Returns the entire list of valid player models.
|
|
34
30
|
* @realm shared
|
|
35
31
|
* @source https://wiki.facepunch.com/gmod/player_manager.AllValidModels
|
|
36
32
|
*/
|
|
37
33
|
AllValidModels(): table;
|
|
38
|
-
}
|
|
39
34
|
|
|
40
|
-
interface Player_managerLib {
|
|
41
35
|
/**
|
|
42
36
|
* Clears a player's class association by setting their ClassID to 0.
|
|
43
37
|
* @realm shared
|
|
44
38
|
* @source https://wiki.facepunch.com/gmod/player_manager.ClearPlayerClass
|
|
45
39
|
*/
|
|
46
40
|
ClearPlayerClass(ply: Player): void;
|
|
47
|
-
}
|
|
48
41
|
|
|
49
|
-
interface Player_managerLib {
|
|
50
42
|
/**
|
|
51
43
|
* Gets a players class.
|
|
52
44
|
* @realm shared
|
|
53
45
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClass
|
|
54
46
|
*/
|
|
55
47
|
GetPlayerClass(ply: Player): string;
|
|
56
|
-
}
|
|
57
48
|
|
|
58
|
-
interface Player_managerLib {
|
|
59
49
|
/**
|
|
60
50
|
* Gets a players' class table.
|
|
61
51
|
* @realm shared
|
|
62
52
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClassTable
|
|
63
53
|
*/
|
|
64
54
|
GetPlayerClassTable(ply: Player): table;
|
|
65
|
-
}
|
|
66
55
|
|
|
67
|
-
interface Player_managerLib {
|
|
68
56
|
/**
|
|
69
57
|
* Retrieves a copy of all registered player classes.
|
|
70
58
|
* @realm shared
|
|
71
59
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClasses
|
|
72
60
|
*/
|
|
73
61
|
GetPlayerClasses(): table;
|
|
74
|
-
}
|
|
75
62
|
|
|
76
|
-
interface Player_managerLib {
|
|
77
63
|
/**
|
|
78
64
|
* Applies basic class variables when the player spawns.
|
|
79
65
|
*
|
|
@@ -83,36 +69,28 @@ interface Player_managerLib {
|
|
|
83
69
|
* @source https://wiki.facepunch.com/gmod/player_manager.OnPlayerSpawn
|
|
84
70
|
*/
|
|
85
71
|
OnPlayerSpawn(ply: Player, transition: boolean): void;
|
|
86
|
-
}
|
|
87
72
|
|
|
88
|
-
interface Player_managerLib {
|
|
89
73
|
/**
|
|
90
74
|
* Register a class metatable to be assigned to players later.
|
|
91
75
|
* @realm shared
|
|
92
76
|
* @source https://wiki.facepunch.com/gmod/player_manager.RegisterClass
|
|
93
77
|
*/
|
|
94
78
|
RegisterClass(name: string, table: PLAYER, base?: string): void;
|
|
95
|
-
}
|
|
96
79
|
|
|
97
|
-
interface Player_managerLib {
|
|
98
80
|
/**
|
|
99
81
|
* Execute a named function within the player's set class.
|
|
100
82
|
* @realm shared
|
|
101
83
|
* @source https://wiki.facepunch.com/gmod/player_manager.RunClass
|
|
102
84
|
*/
|
|
103
85
|
RunClass(ply: Player, funcName: string, ...: any): (...any);
|
|
104
|
-
}
|
|
105
86
|
|
|
106
|
-
interface Player_managerLib {
|
|
107
87
|
/**
|
|
108
88
|
* Sets a player's class.
|
|
109
89
|
* @realm shared
|
|
110
90
|
* @source https://wiki.facepunch.com/gmod/player_manager.SetPlayerClass
|
|
111
91
|
*/
|
|
112
92
|
SetPlayerClass(ply: Player, className: string): void;
|
|
113
|
-
}
|
|
114
93
|
|
|
115
|
-
interface Player_managerLib {
|
|
116
94
|
/**
|
|
117
95
|
* Retrieves correct hands for given player model. By default returns citizen hands.
|
|
118
96
|
*
|
|
@@ -122,18 +100,14 @@ interface Player_managerLib {
|
|
|
122
100
|
* @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerHands
|
|
123
101
|
*/
|
|
124
102
|
TranslatePlayerHands(name: string): table;
|
|
125
|
-
}
|
|
126
103
|
|
|
127
|
-
interface Player_managerLib {
|
|
128
104
|
/**
|
|
129
105
|
* Returns the valid model path for a simplified name.
|
|
130
106
|
* @realm shared
|
|
131
107
|
* @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerModel
|
|
132
108
|
*/
|
|
133
109
|
TranslatePlayerModel(shortName: string): string;
|
|
134
|
-
}
|
|
135
110
|
|
|
136
|
-
interface Player_managerLib {
|
|
137
111
|
/**
|
|
138
112
|
* Returns the simplified name for a valid model path of a player model.
|
|
139
113
|
*
|
|
@@ -144,4 +118,3 @@ interface Player_managerLib {
|
|
|
144
118
|
*/
|
|
145
119
|
TranslateToPlayerModelName(model: string): string;
|
|
146
120
|
}
|
|
147
|
-
|
package/types/presets.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface PresetsLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/presets.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(groupname: string, name: string, values: table): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface PresetsLib {
|
|
19
17
|
/**
|
|
20
18
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
21
19
|
*
|
|
@@ -26,27 +24,21 @@ interface PresetsLib {
|
|
|
26
24
|
* @source https://wiki.facepunch.com/gmod/presets.BadNameAlert
|
|
27
25
|
*/
|
|
28
26
|
BadNameAlert(): void;
|
|
29
|
-
}
|
|
30
27
|
|
|
31
|
-
interface PresetsLib {
|
|
32
28
|
/**
|
|
33
29
|
* Returns whether a preset with given name exists or not
|
|
34
30
|
* @realm client
|
|
35
31
|
* @source https://wiki.facepunch.com/gmod/presets.Exists
|
|
36
32
|
*/
|
|
37
33
|
Exists(type: string, name: string): boolean;
|
|
38
|
-
}
|
|
39
34
|
|
|
40
|
-
interface PresetsLib {
|
|
41
35
|
/**
|
|
42
36
|
* Returns a table with preset names and values from a single preset group.
|
|
43
37
|
* @realm client
|
|
44
38
|
* @source https://wiki.facepunch.com/gmod/presets.GetTable
|
|
45
39
|
*/
|
|
46
40
|
GetTable(groupname: string): table;
|
|
47
|
-
}
|
|
48
41
|
|
|
49
|
-
interface PresetsLib {
|
|
50
42
|
/**
|
|
51
43
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
52
44
|
*
|
|
@@ -57,18 +49,14 @@ interface PresetsLib {
|
|
|
57
49
|
* @source https://wiki.facepunch.com/gmod/presets.OverwritePresetPrompt
|
|
58
50
|
*/
|
|
59
51
|
OverwritePresetPrompt(callback: function): void;
|
|
60
|
-
}
|
|
61
52
|
|
|
62
|
-
interface PresetsLib {
|
|
63
53
|
/**
|
|
64
54
|
* Removes a preset entry from a preset group.
|
|
65
55
|
* @realm client
|
|
66
56
|
* @source https://wiki.facepunch.com/gmod/presets.Remove
|
|
67
57
|
*/
|
|
68
58
|
Remove(groupname: string, name: string): void;
|
|
69
|
-
}
|
|
70
59
|
|
|
71
|
-
interface PresetsLib {
|
|
72
60
|
/**
|
|
73
61
|
* Renames preset.
|
|
74
62
|
* @realm client
|
|
@@ -76,4 +64,3 @@ interface PresetsLib {
|
|
|
76
64
|
*/
|
|
77
65
|
Rename(groupname: string, oldname: string, newname: string): void;
|
|
78
66
|
}
|
|
79
|
-
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* A client side projected texture, created by [Global.ProjectedTexture](https://wiki.facepunch.com/gmod/Global.ProjectedTexture).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture
|
|
6
6
|
*/
|
|
7
|
-
interface ProjectedTexture {}
|
|
8
|
-
|
|
9
7
|
interface ProjectedTexture {
|
|
10
8
|
/**
|
|
11
9
|
* Returns the angle of the ProjectedTexture, which were previously set by [ProjectedTexture:SetAngles](https://wiki.facepunch.com/gmod/ProjectedTexture:SetAngles)
|
|
@@ -13,18 +11,14 @@ interface ProjectedTexture {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetAngles
|
|
14
12
|
*/
|
|
15
13
|
GetAngles(self: ProjectedTexture): Angle;
|
|
16
|
-
}
|
|
17
14
|
|
|
18
|
-
interface ProjectedTexture {
|
|
19
15
|
/**
|
|
20
16
|
* Returns the brightness of the ProjectedTexture, which was previously set by [ProjectedTexture:SetBrightness](https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness)
|
|
21
17
|
* @realm client
|
|
22
18
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetBrightness
|
|
23
19
|
*/
|
|
24
20
|
GetBrightness(self: ProjectedTexture): number;
|
|
25
|
-
}
|
|
26
21
|
|
|
27
|
-
interface ProjectedTexture {
|
|
28
22
|
/**
|
|
29
23
|
* Returns the color of the ProjectedTexture, which was previously set by [ProjectedTexture:SetColor](https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor).
|
|
30
24
|
*
|
|
@@ -32,72 +26,56 @@ interface ProjectedTexture {
|
|
|
32
26
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetColor
|
|
33
27
|
*/
|
|
34
28
|
GetColor(self: ProjectedTexture): Color;
|
|
35
|
-
}
|
|
36
29
|
|
|
37
|
-
interface ProjectedTexture {
|
|
38
30
|
/**
|
|
39
31
|
* Returns the constant attenuation of the projected texture, which can also be set by [ProjectedTexture:SetConstantAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation).
|
|
40
32
|
* @realm client
|
|
41
33
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetConstantAttenuation
|
|
42
34
|
*/
|
|
43
35
|
GetConstantAttenuation(self: ProjectedTexture): number;
|
|
44
|
-
}
|
|
45
36
|
|
|
46
|
-
interface ProjectedTexture {
|
|
47
37
|
/**
|
|
48
38
|
* Returns whether shadows are enabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetEnableShadows](https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows)
|
|
49
39
|
* @realm client
|
|
50
40
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetEnableShadows
|
|
51
41
|
*/
|
|
52
42
|
GetEnableShadows(self: ProjectedTexture): boolean;
|
|
53
|
-
}
|
|
54
43
|
|
|
55
|
-
interface ProjectedTexture {
|
|
56
44
|
/**
|
|
57
45
|
* Returns the projection distance of the ProjectedTexture, which was previously set by [ProjectedTexture:SetFarZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ)
|
|
58
46
|
* @realm client
|
|
59
47
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetFarZ
|
|
60
48
|
*/
|
|
61
49
|
GetFarZ(self: ProjectedTexture): number;
|
|
62
|
-
}
|
|
63
50
|
|
|
64
|
-
interface ProjectedTexture {
|
|
65
51
|
/**
|
|
66
52
|
* Returns the horizontal FOV of the ProjectedTexture, which was previously set by [ProjectedTexture:SetHorizontalFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetHorizontalFOV) or [ProjectedTexture:SetFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV)
|
|
67
53
|
* @realm client
|
|
68
54
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetHorizontalFOV
|
|
69
55
|
*/
|
|
70
56
|
GetHorizontalFOV(self: ProjectedTexture): number;
|
|
71
|
-
}
|
|
72
57
|
|
|
73
|
-
interface ProjectedTexture {
|
|
74
58
|
/**
|
|
75
59
|
* Returns whenever or not the Texture should light up world geometry.
|
|
76
60
|
* @realm client
|
|
77
61
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLightWorld
|
|
78
62
|
*/
|
|
79
63
|
GetLightWorld(self: ProjectedTexture): boolean;
|
|
80
|
-
}
|
|
81
64
|
|
|
82
|
-
interface ProjectedTexture {
|
|
83
65
|
/**
|
|
84
66
|
* Returns the linear attenuation of the projected texture, which can also be set by [ProjectedTexture:SetLinearAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation).
|
|
85
67
|
* @realm client
|
|
86
68
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLinearAttenuation
|
|
87
69
|
*/
|
|
88
70
|
GetLinearAttenuation(self: ProjectedTexture): number;
|
|
89
|
-
}
|
|
90
71
|
|
|
91
|
-
interface ProjectedTexture {
|
|
92
72
|
/**
|
|
93
73
|
* Returns the NearZ value of the ProjectedTexture, which was previously set by [ProjectedTexture:SetNearZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ)
|
|
94
74
|
* @realm client
|
|
95
75
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNearZ
|
|
96
76
|
*/
|
|
97
77
|
GetNearZ(self: ProjectedTexture): number;
|
|
98
|
-
}
|
|
99
78
|
|
|
100
|
-
interface ProjectedTexture {
|
|
101
79
|
/**
|
|
102
80
|
* Returns the state of projected texture view-frustum culling. See [ProjectedTexture:SetNoCull](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull).
|
|
103
81
|
*
|
|
@@ -105,36 +83,28 @@ interface ProjectedTexture {
|
|
|
105
83
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNoCull
|
|
106
84
|
*/
|
|
107
85
|
GetNoCull(self: ProjectedTexture): boolean;
|
|
108
|
-
}
|
|
109
86
|
|
|
110
|
-
interface ProjectedTexture {
|
|
111
87
|
/**
|
|
112
88
|
* Returns the current orthographic settings of the Projected Texture. To set these values, use [ProjectedTexture:SetOrthographic](https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic).
|
|
113
89
|
* @realm client
|
|
114
90
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetOrthographic
|
|
115
91
|
*/
|
|
116
92
|
GetOrthographic(self: ProjectedTexture): (boolean, number, number, number, number);
|
|
117
|
-
}
|
|
118
93
|
|
|
119
|
-
interface ProjectedTexture {
|
|
120
94
|
/**
|
|
121
95
|
* Returns the position of the ProjectedTexture, which was previously set by [ProjectedTexture:SetPos](https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos)
|
|
122
96
|
* @realm client
|
|
123
97
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetPos
|
|
124
98
|
*/
|
|
125
99
|
GetPos(self: ProjectedTexture): Vector;
|
|
126
|
-
}
|
|
127
100
|
|
|
128
|
-
interface ProjectedTexture {
|
|
129
101
|
/**
|
|
130
102
|
* Returns the quadratic attenuation of the projected texture, which can also be set by [ProjectedTexture:SetQuadraticAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation).
|
|
131
103
|
* @realm client
|
|
132
104
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetQuadraticAttenuation
|
|
133
105
|
*/
|
|
134
106
|
GetQuadraticAttenuation(self: ProjectedTexture): number;
|
|
135
|
-
}
|
|
136
107
|
|
|
137
|
-
interface ProjectedTexture {
|
|
138
108
|
/**
|
|
139
109
|
* Returns the shadow depth bias of the projected texture.
|
|
140
110
|
*
|
|
@@ -144,9 +114,7 @@ interface ProjectedTexture {
|
|
|
144
114
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowDepthBias
|
|
145
115
|
*/
|
|
146
116
|
GetShadowDepthBias(self: ProjectedTexture): number;
|
|
147
|
-
}
|
|
148
117
|
|
|
149
|
-
interface ProjectedTexture {
|
|
150
118
|
/**
|
|
151
119
|
* Returns the shadow "filter size" of the projected texture. `0` is fully pixelated, higher values will blur the shadow more.
|
|
152
120
|
*
|
|
@@ -156,9 +124,7 @@ interface ProjectedTexture {
|
|
|
156
124
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowFilter
|
|
157
125
|
*/
|
|
158
126
|
GetShadowFilter(self: ProjectedTexture): number;
|
|
159
|
-
}
|
|
160
127
|
|
|
161
|
-
interface ProjectedTexture {
|
|
162
128
|
/**
|
|
163
129
|
* Returns the shadow depth slope scale bias of the projected texture.
|
|
164
130
|
*
|
|
@@ -168,18 +134,14 @@ interface ProjectedTexture {
|
|
|
168
134
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowSlopeScaleDepthBias
|
|
169
135
|
*/
|
|
170
136
|
GetShadowSlopeScaleDepthBias(self: ProjectedTexture): number;
|
|
171
|
-
}
|
|
172
137
|
|
|
173
|
-
interface ProjectedTexture {
|
|
174
138
|
/**
|
|
175
139
|
* Returns whether shadow updates are disabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetSkipShadowUpdates](https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates).
|
|
176
140
|
* @realm client
|
|
177
141
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetSkipShadowUpdates
|
|
178
142
|
*/
|
|
179
143
|
GetSkipShadowUpdates(self: ProjectedTexture): boolean;
|
|
180
|
-
}
|
|
181
144
|
|
|
182
|
-
interface ProjectedTexture {
|
|
183
145
|
/**
|
|
184
146
|
* Returns the target entity of this projected texture.
|
|
185
147
|
*
|
|
@@ -188,36 +150,28 @@ interface ProjectedTexture {
|
|
|
188
150
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTargetEntity
|
|
189
151
|
*/
|
|
190
152
|
GetTargetEntity(self: ProjectedTexture): Entity;
|
|
191
|
-
}
|
|
192
153
|
|
|
193
|
-
interface ProjectedTexture {
|
|
194
154
|
/**
|
|
195
155
|
* Returns the texture of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTexture](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture)
|
|
196
156
|
* @realm client
|
|
197
157
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTexture
|
|
198
158
|
*/
|
|
199
159
|
GetTexture(self: ProjectedTexture): ITexture;
|
|
200
|
-
}
|
|
201
160
|
|
|
202
|
-
interface ProjectedTexture {
|
|
203
161
|
/**
|
|
204
162
|
* Returns the texture frame of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTextureFrame](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame)
|
|
205
163
|
* @realm client
|
|
206
164
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTextureFrame
|
|
207
165
|
*/
|
|
208
166
|
GetTextureFrame(self: ProjectedTexture): number;
|
|
209
|
-
}
|
|
210
167
|
|
|
211
|
-
interface ProjectedTexture {
|
|
212
168
|
/**
|
|
213
169
|
* Returns the vertical FOV of the ProjectedTexture, which was previously set by [ProjectedTexture:SetVerticalFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetVerticalFOV) or [ProjectedTexture:SetFOV](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV)
|
|
214
170
|
* @realm client
|
|
215
171
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetVerticalFOV
|
|
216
172
|
*/
|
|
217
173
|
GetVerticalFOV(self: ProjectedTexture): number;
|
|
218
|
-
}
|
|
219
174
|
|
|
220
|
-
interface ProjectedTexture {
|
|
221
175
|
/**
|
|
222
176
|
* Returns true if the projected texture is valid (i.e. has not been removed), false otherwise.
|
|
223
177
|
*
|
|
@@ -235,18 +189,14 @@ interface ProjectedTexture {
|
|
|
235
189
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:IsValid
|
|
236
190
|
*/
|
|
237
191
|
IsValid(self: ProjectedTexture): boolean;
|
|
238
|
-
}
|
|
239
192
|
|
|
240
|
-
interface ProjectedTexture {
|
|
241
193
|
/**
|
|
242
194
|
* Removes the projected texture. After calling this, [ProjectedTexture:IsValid](https://wiki.facepunch.com/gmod/ProjectedTexture:IsValid) will return false, and any hooks with the projected texture as the identifier will be automatically deleted.
|
|
243
195
|
* @realm client
|
|
244
196
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:Remove
|
|
245
197
|
*/
|
|
246
198
|
Remove(self: ProjectedTexture): void;
|
|
247
|
-
}
|
|
248
199
|
|
|
249
|
-
interface ProjectedTexture {
|
|
250
200
|
/**
|
|
251
201
|
* Sets the angles (direction) of the projected texture.
|
|
252
202
|
*
|
|
@@ -256,9 +206,7 @@ interface ProjectedTexture {
|
|
|
256
206
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetAngles
|
|
257
207
|
*/
|
|
258
208
|
SetAngles(self: ProjectedTexture, angle: Angle): void;
|
|
259
|
-
}
|
|
260
209
|
|
|
261
|
-
interface ProjectedTexture {
|
|
262
210
|
/**
|
|
263
211
|
* Sets the brightness of the projected texture.
|
|
264
212
|
*
|
|
@@ -268,9 +216,7 @@ interface ProjectedTexture {
|
|
|
268
216
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness
|
|
269
217
|
*/
|
|
270
218
|
SetBrightness(self: ProjectedTexture, brightness: number): void;
|
|
271
|
-
}
|
|
272
219
|
|
|
273
|
-
interface ProjectedTexture {
|
|
274
220
|
/**
|
|
275
221
|
* Sets the color of the projected texture.
|
|
276
222
|
*
|
|
@@ -280,9 +226,7 @@ interface ProjectedTexture {
|
|
|
280
226
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor
|
|
281
227
|
*/
|
|
282
228
|
SetColor(self: ProjectedTexture, color: Color): void;
|
|
283
|
-
}
|
|
284
229
|
|
|
285
|
-
interface ProjectedTexture {
|
|
286
230
|
/**
|
|
287
231
|
* Sets the constant attenuation of the projected texture.
|
|
288
232
|
*
|
|
@@ -294,9 +238,7 @@ interface ProjectedTexture {
|
|
|
294
238
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation
|
|
295
239
|
*/
|
|
296
240
|
SetConstantAttenuation(self: ProjectedTexture, constAtten: number): void;
|
|
297
|
-
}
|
|
298
241
|
|
|
299
|
-
interface ProjectedTexture {
|
|
300
242
|
/**
|
|
301
243
|
* Enable or disable shadows cast from the projected texture.
|
|
302
244
|
*
|
|
@@ -309,9 +251,7 @@ interface ProjectedTexture {
|
|
|
309
251
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows
|
|
310
252
|
*/
|
|
311
253
|
SetEnableShadows(self: ProjectedTexture, newState: boolean): void;
|
|
312
|
-
}
|
|
313
254
|
|
|
314
|
-
interface ProjectedTexture {
|
|
315
255
|
/**
|
|
316
256
|
* Sets the angle of projection.
|
|
317
257
|
*
|
|
@@ -321,9 +261,7 @@ interface ProjectedTexture {
|
|
|
321
261
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV
|
|
322
262
|
*/
|
|
323
263
|
SetFOV(self: ProjectedTexture, fov: number): void;
|
|
324
|
-
}
|
|
325
264
|
|
|
326
|
-
interface ProjectedTexture {
|
|
327
265
|
/**
|
|
328
266
|
* Sets the distance at which the projected texture ends.
|
|
329
267
|
*
|
|
@@ -333,9 +271,7 @@ interface ProjectedTexture {
|
|
|
333
271
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ
|
|
334
272
|
*/
|
|
335
273
|
SetFarZ(self: ProjectedTexture, farZ: number): void;
|
|
336
|
-
}
|
|
337
274
|
|
|
338
|
-
interface ProjectedTexture {
|
|
339
275
|
/**
|
|
340
276
|
* Sets the horizontal angle of projection without affecting the vertical angle.
|
|
341
277
|
*
|
|
@@ -345,18 +281,14 @@ interface ProjectedTexture {
|
|
|
345
281
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetHorizontalFOV
|
|
346
282
|
*/
|
|
347
283
|
SetHorizontalFOV(self: ProjectedTexture, hFOV: number): void;
|
|
348
|
-
}
|
|
349
284
|
|
|
350
|
-
interface ProjectedTexture {
|
|
351
285
|
/**
|
|
352
286
|
* Set whenever or not the Texture should light up world geometry.
|
|
353
287
|
* @realm client
|
|
354
288
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLightWorld
|
|
355
289
|
*/
|
|
356
290
|
SetLightWorld(self: ProjectedTexture, lightworld: boolean): void;
|
|
357
|
-
}
|
|
358
291
|
|
|
359
|
-
interface ProjectedTexture {
|
|
360
292
|
/**
|
|
361
293
|
* Sets the linear attenuation of the projected texture.
|
|
362
294
|
*
|
|
@@ -370,9 +302,7 @@ interface ProjectedTexture {
|
|
|
370
302
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation
|
|
371
303
|
*/
|
|
372
304
|
SetLinearAttenuation(self: ProjectedTexture, linearAtten: number): void;
|
|
373
|
-
}
|
|
374
305
|
|
|
375
|
-
interface ProjectedTexture {
|
|
376
306
|
/**
|
|
377
307
|
* Sets the distance at which the projected texture begins its projection.
|
|
378
308
|
*
|
|
@@ -388,9 +318,7 @@ interface ProjectedTexture {
|
|
|
388
318
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ
|
|
389
319
|
*/
|
|
390
320
|
SetNearZ(self: ProjectedTexture, nearZ: number): void;
|
|
391
|
-
}
|
|
392
321
|
|
|
393
|
-
interface ProjectedTexture {
|
|
394
322
|
/**
|
|
395
323
|
* Allows disabling of projected texture view-frustum culling for cases where said culling creates unwanted side effects. Disabling culling will have a negative effect on performance.
|
|
396
324
|
*
|
|
@@ -400,9 +328,7 @@ interface ProjectedTexture {
|
|
|
400
328
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull
|
|
401
329
|
*/
|
|
402
330
|
SetNoCull(self: ProjectedTexture, enable: boolean): void;
|
|
403
|
-
}
|
|
404
331
|
|
|
405
|
-
interface ProjectedTexture {
|
|
406
332
|
/**
|
|
407
333
|
* Changes the current projected texture between orthographic and perspective projection.
|
|
408
334
|
*
|
|
@@ -414,9 +340,7 @@ interface ProjectedTexture {
|
|
|
414
340
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic
|
|
415
341
|
*/
|
|
416
342
|
SetOrthographic(self: ProjectedTexture, orthographic: boolean, left: number, top: number, right: number, bottom: number): void;
|
|
417
|
-
}
|
|
418
343
|
|
|
419
|
-
interface ProjectedTexture {
|
|
420
344
|
/**
|
|
421
345
|
* Move the Projected Texture to the specified position.
|
|
422
346
|
*
|
|
@@ -426,9 +350,7 @@ interface ProjectedTexture {
|
|
|
426
350
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos
|
|
427
351
|
*/
|
|
428
352
|
SetPos(self: ProjectedTexture, position: Vector): void;
|
|
429
|
-
}
|
|
430
353
|
|
|
431
|
-
interface ProjectedTexture {
|
|
432
354
|
/**
|
|
433
355
|
* Sets the quadratic attenuation of the projected texture.
|
|
434
356
|
*
|
|
@@ -440,9 +362,7 @@ interface ProjectedTexture {
|
|
|
440
362
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation
|
|
441
363
|
*/
|
|
442
364
|
SetQuadraticAttenuation(self: ProjectedTexture, quadAtten: number): void;
|
|
443
|
-
}
|
|
444
365
|
|
|
445
|
-
interface ProjectedTexture {
|
|
446
366
|
/**
|
|
447
367
|
* Sets the shadow depth bias of the projected texture.
|
|
448
368
|
*
|
|
@@ -454,9 +374,7 @@ interface ProjectedTexture {
|
|
|
454
374
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowDepthBias
|
|
455
375
|
*/
|
|
456
376
|
SetShadowDepthBias(self: ProjectedTexture, bias: number): void;
|
|
457
|
-
}
|
|
458
377
|
|
|
459
|
-
interface ProjectedTexture {
|
|
460
378
|
/**
|
|
461
379
|
* Sets the shadow "filter size" of the projected texture. `0` is fully pixelated, higher values will blur the shadow more. The initial value is the value of `r_projectedtexture_filter` [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
462
380
|
*
|
|
@@ -466,9 +384,7 @@ interface ProjectedTexture {
|
|
|
466
384
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowFilter
|
|
467
385
|
*/
|
|
468
386
|
SetShadowFilter(self: ProjectedTexture, filter: number): void;
|
|
469
|
-
}
|
|
470
387
|
|
|
471
|
-
interface ProjectedTexture {
|
|
472
388
|
/**
|
|
473
389
|
* Sets the shadow depth slope scale bias of the projected texture.
|
|
474
390
|
*
|
|
@@ -480,18 +396,14 @@ interface ProjectedTexture {
|
|
|
480
396
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowSlopeScaleDepthBias
|
|
481
397
|
*/
|
|
482
398
|
SetShadowSlopeScaleDepthBias(self: ProjectedTexture, bias: number): void;
|
|
483
|
-
}
|
|
484
399
|
|
|
485
|
-
interface ProjectedTexture {
|
|
486
400
|
/**
|
|
487
401
|
* Sets whether shadow updates are disabled for this ProjectedTexture. This can be useful to save up on performance, but it will inevitably cause graphical glitches if left not updating for long.
|
|
488
402
|
* @realm client
|
|
489
403
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates
|
|
490
404
|
*/
|
|
491
405
|
SetSkipShadowUpdates(self: ProjectedTexture, enable: boolean): void;
|
|
492
|
-
}
|
|
493
406
|
|
|
494
|
-
interface ProjectedTexture {
|
|
495
407
|
/**
|
|
496
408
|
* Sets the target entity for this projected texture, meaning it will only be lighting the given entity and the world.
|
|
497
409
|
*
|
|
@@ -501,9 +413,7 @@ interface ProjectedTexture {
|
|
|
501
413
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTargetEntity
|
|
502
414
|
*/
|
|
503
415
|
SetTargetEntity(self: ProjectedTexture, target?: Entity): void;
|
|
504
|
-
}
|
|
505
416
|
|
|
506
|
-
interface ProjectedTexture {
|
|
507
417
|
/**
|
|
508
418
|
* Sets the texture to be projected.
|
|
509
419
|
*
|
|
@@ -513,9 +423,7 @@ interface ProjectedTexture {
|
|
|
513
423
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture
|
|
514
424
|
*/
|
|
515
425
|
SetTexture(self: ProjectedTexture, texture: string): void;
|
|
516
|
-
}
|
|
517
426
|
|
|
518
|
-
interface ProjectedTexture {
|
|
519
427
|
/**
|
|
520
428
|
* For animated textures, this will choose which frame in the animation will be projected.
|
|
521
429
|
*
|
|
@@ -525,9 +433,7 @@ interface ProjectedTexture {
|
|
|
525
433
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame
|
|
526
434
|
*/
|
|
527
435
|
SetTextureFrame(self: ProjectedTexture, frame: number): void;
|
|
528
|
-
}
|
|
529
436
|
|
|
530
|
-
interface ProjectedTexture {
|
|
531
437
|
/**
|
|
532
438
|
* Sets the vertical angle of projection without affecting the horizontal angle.
|
|
533
439
|
*
|
|
@@ -537,9 +443,7 @@ interface ProjectedTexture {
|
|
|
537
443
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetVerticalFOV
|
|
538
444
|
*/
|
|
539
445
|
SetVerticalFOV(self: ProjectedTexture, vFOV: number): void;
|
|
540
|
-
}
|
|
541
446
|
|
|
542
|
-
interface ProjectedTexture {
|
|
543
447
|
/**
|
|
544
448
|
* Updates the Projected Light and applies all previously set parameters.
|
|
545
449
|
*
|
|
@@ -550,4 +454,3 @@ interface ProjectedTexture {
|
|
|
550
454
|
*/
|
|
551
455
|
Update(self: ProjectedTexture): void;
|
|
552
456
|
}
|
|
553
|
-
|
package/types/properties.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface PropertiesLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/properties.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(name: string, propertyData: PropertyAdd): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface PropertiesLib {
|
|
19
17
|
/**
|
|
20
18
|
* Returns true if given entity can be targeted by the player via the properties system.
|
|
21
19
|
*
|
|
@@ -25,36 +23,28 @@ interface PropertiesLib {
|
|
|
25
23
|
* @source https://wiki.facepunch.com/gmod/properties.CanBeTargeted
|
|
26
24
|
*/
|
|
27
25
|
CanBeTargeted(ent: Entity, ply: Player): boolean;
|
|
28
|
-
}
|
|
29
26
|
|
|
30
|
-
interface PropertiesLib {
|
|
31
27
|
/**
|
|
32
28
|
* Returns an entity player is hovering over with their cursor.
|
|
33
29
|
* @realm client
|
|
34
30
|
* @source https://wiki.facepunch.com/gmod/properties.GetHovered
|
|
35
31
|
*/
|
|
36
32
|
GetHovered(pos: Vector, aimVec: Vector): Entity;
|
|
37
|
-
}
|
|
38
33
|
|
|
39
|
-
interface PropertiesLib {
|
|
40
34
|
/**
|
|
41
35
|
* Checks if player hovers over any entities and open a properties menu for it.
|
|
42
36
|
* @realm shared
|
|
43
37
|
* @source https://wiki.facepunch.com/gmod/properties.OnScreenClick
|
|
44
38
|
*/
|
|
45
39
|
OnScreenClick(eyepos: Vector, eyevec: Vector): void;
|
|
46
|
-
}
|
|
47
40
|
|
|
48
|
-
interface PropertiesLib {
|
|
49
41
|
/**
|
|
50
42
|
* Opens properties menu for given entity.
|
|
51
43
|
* @realm shared
|
|
52
44
|
* @source https://wiki.facepunch.com/gmod/properties.OpenEntityMenu
|
|
53
45
|
*/
|
|
54
46
|
OpenEntityMenu(ent: Entity, tr: table): void;
|
|
55
|
-
}
|
|
56
47
|
|
|
57
|
-
interface PropertiesLib {
|
|
58
48
|
/**
|
|
59
49
|
* Remove an entity right-click property. See [properties.Add](https://wiki.facepunch.com/gmod/properties.Add) for details.
|
|
60
50
|
* @realm shared
|
|
@@ -62,4 +52,3 @@ interface PropertiesLib {
|
|
|
62
52
|
*/
|
|
63
53
|
Remove(name: string): void;
|
|
64
54
|
}
|
|
65
|
-
|