@tlua/gmod 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
|
@@ -13,6 +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
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Associates a simplified name with a path to a valid player model.
|
|
18
19
|
*
|
|
@@ -23,36 +24,42 @@ interface Player_managerLib {
|
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/player_manager.AddValidModel
|
|
24
25
|
*/
|
|
25
26
|
AddValidModel(name: string, model: string): void;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Returns the entire list of valid player models.
|
|
28
30
|
* @realm shared
|
|
29
31
|
* @source https://wiki.facepunch.com/gmod/player_manager.AllValidModels
|
|
30
32
|
*/
|
|
31
33
|
AllValidModels(): table;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Clears a player's class association by setting their ClassID to 0.
|
|
34
37
|
* @realm shared
|
|
35
38
|
* @source https://wiki.facepunch.com/gmod/player_manager.ClearPlayerClass
|
|
36
39
|
*/
|
|
37
40
|
ClearPlayerClass(ply: Player): void;
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* Gets a players class.
|
|
40
44
|
* @realm shared
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClass
|
|
42
46
|
*/
|
|
43
47
|
GetPlayerClass(ply: Player): string;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Gets a players' class table.
|
|
46
51
|
* @realm shared
|
|
47
52
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClassTable
|
|
48
53
|
*/
|
|
49
54
|
GetPlayerClassTable(ply: Player): table;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* Retrieves a copy of all registered player classes.
|
|
52
58
|
* @realm shared
|
|
53
59
|
* @source https://wiki.facepunch.com/gmod/player_manager.GetPlayerClasses
|
|
54
60
|
*/
|
|
55
61
|
GetPlayerClasses(): table;
|
|
62
|
+
|
|
56
63
|
/**
|
|
57
64
|
* Applies basic class variables when the player spawns.
|
|
58
65
|
*
|
|
@@ -62,24 +69,28 @@ interface Player_managerLib {
|
|
|
62
69
|
* @source https://wiki.facepunch.com/gmod/player_manager.OnPlayerSpawn
|
|
63
70
|
*/
|
|
64
71
|
OnPlayerSpawn(ply: Player, transition: boolean): void;
|
|
72
|
+
|
|
65
73
|
/**
|
|
66
74
|
* Register a class metatable to be assigned to players later.
|
|
67
75
|
* @realm shared
|
|
68
76
|
* @source https://wiki.facepunch.com/gmod/player_manager.RegisterClass
|
|
69
77
|
*/
|
|
70
78
|
RegisterClass(name: string, table: PLAYER, base?: string): void;
|
|
79
|
+
|
|
71
80
|
/**
|
|
72
81
|
* Execute a named function within the player's set class.
|
|
73
82
|
* @realm shared
|
|
74
83
|
* @source https://wiki.facepunch.com/gmod/player_manager.RunClass
|
|
75
84
|
*/
|
|
76
85
|
RunClass(ply: Player, funcName: string, ...: any): (...any);
|
|
86
|
+
|
|
77
87
|
/**
|
|
78
88
|
* Sets a player's class.
|
|
79
89
|
* @realm shared
|
|
80
90
|
* @source https://wiki.facepunch.com/gmod/player_manager.SetPlayerClass
|
|
81
91
|
*/
|
|
82
92
|
SetPlayerClass(ply: Player, className: string): void;
|
|
93
|
+
|
|
83
94
|
/**
|
|
84
95
|
* Retrieves correct hands for given player model. By default returns citizen hands.
|
|
85
96
|
*
|
|
@@ -89,12 +100,14 @@ interface Player_managerLib {
|
|
|
89
100
|
* @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerHands
|
|
90
101
|
*/
|
|
91
102
|
TranslatePlayerHands(name: string): table;
|
|
103
|
+
|
|
92
104
|
/**
|
|
93
105
|
* Returns the valid model path for a simplified name.
|
|
94
106
|
* @realm shared
|
|
95
107
|
* @source https://wiki.facepunch.com/gmod/player_manager.TranslatePlayerModel
|
|
96
108
|
*/
|
|
97
109
|
TranslatePlayerModel(shortName: string): string;
|
|
110
|
+
|
|
98
111
|
/**
|
|
99
112
|
* Returns the simplified name for a valid model path of a player model.
|
|
100
113
|
*
|
|
@@ -105,17 +118,3 @@ interface Player_managerLib {
|
|
|
105
118
|
*/
|
|
106
119
|
TranslateToPlayerModelName(model: string): string;
|
|
107
120
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
package/types/presets.d.tlua
CHANGED
|
@@ -13,6 +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
|
+
|
|
16
17
|
/**
|
|
17
18
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
18
19
|
*
|
|
@@ -23,18 +24,21 @@ interface PresetsLib {
|
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/presets.BadNameAlert
|
|
24
25
|
*/
|
|
25
26
|
BadNameAlert(): void;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Returns whether a preset with given name exists or not
|
|
28
30
|
* @realm client
|
|
29
31
|
* @source https://wiki.facepunch.com/gmod/presets.Exists
|
|
30
32
|
*/
|
|
31
33
|
Exists(type: string, name: string): boolean;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Returns a table with preset names and values from a single preset group.
|
|
34
37
|
* @realm client
|
|
35
38
|
* @source https://wiki.facepunch.com/gmod/presets.GetTable
|
|
36
39
|
*/
|
|
37
40
|
GetTable(groupname: string): table;
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
40
44
|
*
|
|
@@ -45,12 +49,14 @@ interface PresetsLib {
|
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/presets.OverwritePresetPrompt
|
|
46
50
|
*/
|
|
47
51
|
OverwritePresetPrompt(callback: function): void;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Removes a preset entry from a preset group.
|
|
50
55
|
* @realm client
|
|
51
56
|
* @source https://wiki.facepunch.com/gmod/presets.Remove
|
|
52
57
|
*/
|
|
53
58
|
Remove(groupname: string, name: string): void;
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
* Renames preset.
|
|
56
62
|
* @realm client
|
|
@@ -58,10 +64,3 @@ interface PresetsLib {
|
|
|
58
64
|
*/
|
|
59
65
|
Rename(groupname: string, oldname: string, newname: string): void;
|
|
60
66
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
@@ -11,12 +11,14 @@ interface ProjectedTexture {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetAngles
|
|
12
12
|
*/
|
|
13
13
|
GetAngles(self: ProjectedTexture): Angle;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Returns the brightness of the ProjectedTexture, which was previously set by [ProjectedTexture:SetBrightness](https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness)
|
|
16
17
|
* @realm client
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetBrightness
|
|
18
19
|
*/
|
|
19
20
|
GetBrightness(self: ProjectedTexture): number;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Returns the color of the ProjectedTexture, which was previously set by [ProjectedTexture:SetColor](https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor).
|
|
22
24
|
*
|
|
@@ -24,48 +26,56 @@ interface ProjectedTexture {
|
|
|
24
26
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetColor
|
|
25
27
|
*/
|
|
26
28
|
GetColor(self: ProjectedTexture): Color;
|
|
29
|
+
|
|
27
30
|
/**
|
|
28
31
|
* Returns the constant attenuation of the projected texture, which can also be set by [ProjectedTexture:SetConstantAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation).
|
|
29
32
|
* @realm client
|
|
30
33
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetConstantAttenuation
|
|
31
34
|
*/
|
|
32
35
|
GetConstantAttenuation(self: ProjectedTexture): number;
|
|
36
|
+
|
|
33
37
|
/**
|
|
34
38
|
* Returns whether shadows are enabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetEnableShadows](https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows)
|
|
35
39
|
* @realm client
|
|
36
40
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetEnableShadows
|
|
37
41
|
*/
|
|
38
42
|
GetEnableShadows(self: ProjectedTexture): boolean;
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* Returns the projection distance of the ProjectedTexture, which was previously set by [ProjectedTexture:SetFarZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ)
|
|
41
46
|
* @realm client
|
|
42
47
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetFarZ
|
|
43
48
|
*/
|
|
44
49
|
GetFarZ(self: ProjectedTexture): number;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
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)
|
|
47
53
|
* @realm client
|
|
48
54
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetHorizontalFOV
|
|
49
55
|
*/
|
|
50
56
|
GetHorizontalFOV(self: ProjectedTexture): number;
|
|
57
|
+
|
|
51
58
|
/**
|
|
52
59
|
* Returns whenever or not the Texture should light up world geometry.
|
|
53
60
|
* @realm client
|
|
54
61
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLightWorld
|
|
55
62
|
*/
|
|
56
63
|
GetLightWorld(self: ProjectedTexture): boolean;
|
|
64
|
+
|
|
57
65
|
/**
|
|
58
66
|
* Returns the linear attenuation of the projected texture, which can also be set by [ProjectedTexture:SetLinearAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation).
|
|
59
67
|
* @realm client
|
|
60
68
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetLinearAttenuation
|
|
61
69
|
*/
|
|
62
70
|
GetLinearAttenuation(self: ProjectedTexture): number;
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* Returns the NearZ value of the ProjectedTexture, which was previously set by [ProjectedTexture:SetNearZ](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ)
|
|
65
74
|
* @realm client
|
|
66
75
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNearZ
|
|
67
76
|
*/
|
|
68
77
|
GetNearZ(self: ProjectedTexture): number;
|
|
78
|
+
|
|
69
79
|
/**
|
|
70
80
|
* Returns the state of projected texture view-frustum culling. See [ProjectedTexture:SetNoCull](https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull).
|
|
71
81
|
*
|
|
@@ -73,24 +83,28 @@ interface ProjectedTexture {
|
|
|
73
83
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetNoCull
|
|
74
84
|
*/
|
|
75
85
|
GetNoCull(self: ProjectedTexture): boolean;
|
|
86
|
+
|
|
76
87
|
/**
|
|
77
88
|
* Returns the current orthographic settings of the Projected Texture. To set these values, use [ProjectedTexture:SetOrthographic](https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic).
|
|
78
89
|
* @realm client
|
|
79
90
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetOrthographic
|
|
80
91
|
*/
|
|
81
92
|
GetOrthographic(self: ProjectedTexture): (boolean, number, number, number, number);
|
|
93
|
+
|
|
82
94
|
/**
|
|
83
95
|
* Returns the position of the ProjectedTexture, which was previously set by [ProjectedTexture:SetPos](https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos)
|
|
84
96
|
* @realm client
|
|
85
97
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetPos
|
|
86
98
|
*/
|
|
87
99
|
GetPos(self: ProjectedTexture): Vector;
|
|
100
|
+
|
|
88
101
|
/**
|
|
89
102
|
* Returns the quadratic attenuation of the projected texture, which can also be set by [ProjectedTexture:SetQuadraticAttenuation](https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation).
|
|
90
103
|
* @realm client
|
|
91
104
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetQuadraticAttenuation
|
|
92
105
|
*/
|
|
93
106
|
GetQuadraticAttenuation(self: ProjectedTexture): number;
|
|
107
|
+
|
|
94
108
|
/**
|
|
95
109
|
* Returns the shadow depth bias of the projected texture.
|
|
96
110
|
*
|
|
@@ -100,6 +114,7 @@ interface ProjectedTexture {
|
|
|
100
114
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowDepthBias
|
|
101
115
|
*/
|
|
102
116
|
GetShadowDepthBias(self: ProjectedTexture): number;
|
|
117
|
+
|
|
103
118
|
/**
|
|
104
119
|
* Returns the shadow "filter size" of the projected texture. `0` is fully pixelated, higher values will blur the shadow more.
|
|
105
120
|
*
|
|
@@ -109,6 +124,7 @@ interface ProjectedTexture {
|
|
|
109
124
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowFilter
|
|
110
125
|
*/
|
|
111
126
|
GetShadowFilter(self: ProjectedTexture): number;
|
|
127
|
+
|
|
112
128
|
/**
|
|
113
129
|
* Returns the shadow depth slope scale bias of the projected texture.
|
|
114
130
|
*
|
|
@@ -118,12 +134,14 @@ interface ProjectedTexture {
|
|
|
118
134
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetShadowSlopeScaleDepthBias
|
|
119
135
|
*/
|
|
120
136
|
GetShadowSlopeScaleDepthBias(self: ProjectedTexture): number;
|
|
137
|
+
|
|
121
138
|
/**
|
|
122
139
|
* Returns whether shadow updates are disabled for this ProjectedTexture, which was previously set by [ProjectedTexture:SetSkipShadowUpdates](https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates).
|
|
123
140
|
* @realm client
|
|
124
141
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetSkipShadowUpdates
|
|
125
142
|
*/
|
|
126
143
|
GetSkipShadowUpdates(self: ProjectedTexture): boolean;
|
|
144
|
+
|
|
127
145
|
/**
|
|
128
146
|
* Returns the target entity of this projected texture.
|
|
129
147
|
*
|
|
@@ -132,24 +150,28 @@ interface ProjectedTexture {
|
|
|
132
150
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTargetEntity
|
|
133
151
|
*/
|
|
134
152
|
GetTargetEntity(self: ProjectedTexture): Entity;
|
|
153
|
+
|
|
135
154
|
/**
|
|
136
155
|
* Returns the texture of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTexture](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture)
|
|
137
156
|
* @realm client
|
|
138
157
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTexture
|
|
139
158
|
*/
|
|
140
159
|
GetTexture(self: ProjectedTexture): ITexture;
|
|
160
|
+
|
|
141
161
|
/**
|
|
142
162
|
* Returns the texture frame of the ProjectedTexture, which was previously set by [ProjectedTexture:SetTextureFrame](https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame)
|
|
143
163
|
* @realm client
|
|
144
164
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetTextureFrame
|
|
145
165
|
*/
|
|
146
166
|
GetTextureFrame(self: ProjectedTexture): number;
|
|
167
|
+
|
|
147
168
|
/**
|
|
148
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)
|
|
149
170
|
* @realm client
|
|
150
171
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:GetVerticalFOV
|
|
151
172
|
*/
|
|
152
173
|
GetVerticalFOV(self: ProjectedTexture): number;
|
|
174
|
+
|
|
153
175
|
/**
|
|
154
176
|
* Returns true if the projected texture is valid (i.e. has not been removed), false otherwise.
|
|
155
177
|
*
|
|
@@ -167,12 +189,14 @@ interface ProjectedTexture {
|
|
|
167
189
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:IsValid
|
|
168
190
|
*/
|
|
169
191
|
IsValid(self: ProjectedTexture): boolean;
|
|
192
|
+
|
|
170
193
|
/**
|
|
171
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.
|
|
172
195
|
* @realm client
|
|
173
196
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:Remove
|
|
174
197
|
*/
|
|
175
198
|
Remove(self: ProjectedTexture): void;
|
|
199
|
+
|
|
176
200
|
/**
|
|
177
201
|
* Sets the angles (direction) of the projected texture.
|
|
178
202
|
*
|
|
@@ -182,6 +206,7 @@ interface ProjectedTexture {
|
|
|
182
206
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetAngles
|
|
183
207
|
*/
|
|
184
208
|
SetAngles(self: ProjectedTexture, angle: Angle): void;
|
|
209
|
+
|
|
185
210
|
/**
|
|
186
211
|
* Sets the brightness of the projected texture.
|
|
187
212
|
*
|
|
@@ -191,6 +216,7 @@ interface ProjectedTexture {
|
|
|
191
216
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetBrightness
|
|
192
217
|
*/
|
|
193
218
|
SetBrightness(self: ProjectedTexture, brightness: number): void;
|
|
219
|
+
|
|
194
220
|
/**
|
|
195
221
|
* Sets the color of the projected texture.
|
|
196
222
|
*
|
|
@@ -200,6 +226,7 @@ interface ProjectedTexture {
|
|
|
200
226
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetColor
|
|
201
227
|
*/
|
|
202
228
|
SetColor(self: ProjectedTexture, color: Color): void;
|
|
229
|
+
|
|
203
230
|
/**
|
|
204
231
|
* Sets the constant attenuation of the projected texture.
|
|
205
232
|
*
|
|
@@ -211,6 +238,7 @@ interface ProjectedTexture {
|
|
|
211
238
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetConstantAttenuation
|
|
212
239
|
*/
|
|
213
240
|
SetConstantAttenuation(self: ProjectedTexture, constAtten: number): void;
|
|
241
|
+
|
|
214
242
|
/**
|
|
215
243
|
* Enable or disable shadows cast from the projected texture.
|
|
216
244
|
*
|
|
@@ -223,6 +251,7 @@ interface ProjectedTexture {
|
|
|
223
251
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetEnableShadows
|
|
224
252
|
*/
|
|
225
253
|
SetEnableShadows(self: ProjectedTexture, newState: boolean): void;
|
|
254
|
+
|
|
226
255
|
/**
|
|
227
256
|
* Sets the angle of projection.
|
|
228
257
|
*
|
|
@@ -232,6 +261,7 @@ interface ProjectedTexture {
|
|
|
232
261
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFOV
|
|
233
262
|
*/
|
|
234
263
|
SetFOV(self: ProjectedTexture, fov: number): void;
|
|
264
|
+
|
|
235
265
|
/**
|
|
236
266
|
* Sets the distance at which the projected texture ends.
|
|
237
267
|
*
|
|
@@ -241,6 +271,7 @@ interface ProjectedTexture {
|
|
|
241
271
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetFarZ
|
|
242
272
|
*/
|
|
243
273
|
SetFarZ(self: ProjectedTexture, farZ: number): void;
|
|
274
|
+
|
|
244
275
|
/**
|
|
245
276
|
* Sets the horizontal angle of projection without affecting the vertical angle.
|
|
246
277
|
*
|
|
@@ -250,12 +281,14 @@ interface ProjectedTexture {
|
|
|
250
281
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetHorizontalFOV
|
|
251
282
|
*/
|
|
252
283
|
SetHorizontalFOV(self: ProjectedTexture, hFOV: number): void;
|
|
284
|
+
|
|
253
285
|
/**
|
|
254
286
|
* Set whenever or not the Texture should light up world geometry.
|
|
255
287
|
* @realm client
|
|
256
288
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLightWorld
|
|
257
289
|
*/
|
|
258
290
|
SetLightWorld(self: ProjectedTexture, lightworld: boolean): void;
|
|
291
|
+
|
|
259
292
|
/**
|
|
260
293
|
* Sets the linear attenuation of the projected texture.
|
|
261
294
|
*
|
|
@@ -269,6 +302,7 @@ interface ProjectedTexture {
|
|
|
269
302
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetLinearAttenuation
|
|
270
303
|
*/
|
|
271
304
|
SetLinearAttenuation(self: ProjectedTexture, linearAtten: number): void;
|
|
305
|
+
|
|
272
306
|
/**
|
|
273
307
|
* Sets the distance at which the projected texture begins its projection.
|
|
274
308
|
*
|
|
@@ -284,6 +318,7 @@ interface ProjectedTexture {
|
|
|
284
318
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNearZ
|
|
285
319
|
*/
|
|
286
320
|
SetNearZ(self: ProjectedTexture, nearZ: number): void;
|
|
321
|
+
|
|
287
322
|
/**
|
|
288
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.
|
|
289
324
|
*
|
|
@@ -293,6 +328,7 @@ interface ProjectedTexture {
|
|
|
293
328
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetNoCull
|
|
294
329
|
*/
|
|
295
330
|
SetNoCull(self: ProjectedTexture, enable: boolean): void;
|
|
331
|
+
|
|
296
332
|
/**
|
|
297
333
|
* Changes the current projected texture between orthographic and perspective projection.
|
|
298
334
|
*
|
|
@@ -304,6 +340,7 @@ interface ProjectedTexture {
|
|
|
304
340
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetOrthographic
|
|
305
341
|
*/
|
|
306
342
|
SetOrthographic(self: ProjectedTexture, orthographic: boolean, left: number, top: number, right: number, bottom: number): void;
|
|
343
|
+
|
|
307
344
|
/**
|
|
308
345
|
* Move the Projected Texture to the specified position.
|
|
309
346
|
*
|
|
@@ -313,6 +350,7 @@ interface ProjectedTexture {
|
|
|
313
350
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetPos
|
|
314
351
|
*/
|
|
315
352
|
SetPos(self: ProjectedTexture, position: Vector): void;
|
|
353
|
+
|
|
316
354
|
/**
|
|
317
355
|
* Sets the quadratic attenuation of the projected texture.
|
|
318
356
|
*
|
|
@@ -324,6 +362,7 @@ interface ProjectedTexture {
|
|
|
324
362
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetQuadraticAttenuation
|
|
325
363
|
*/
|
|
326
364
|
SetQuadraticAttenuation(self: ProjectedTexture, quadAtten: number): void;
|
|
365
|
+
|
|
327
366
|
/**
|
|
328
367
|
* Sets the shadow depth bias of the projected texture.
|
|
329
368
|
*
|
|
@@ -335,6 +374,7 @@ interface ProjectedTexture {
|
|
|
335
374
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowDepthBias
|
|
336
375
|
*/
|
|
337
376
|
SetShadowDepthBias(self: ProjectedTexture, bias: number): void;
|
|
377
|
+
|
|
338
378
|
/**
|
|
339
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).
|
|
340
380
|
*
|
|
@@ -344,6 +384,7 @@ interface ProjectedTexture {
|
|
|
344
384
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowFilter
|
|
345
385
|
*/
|
|
346
386
|
SetShadowFilter(self: ProjectedTexture, filter: number): void;
|
|
387
|
+
|
|
347
388
|
/**
|
|
348
389
|
* Sets the shadow depth slope scale bias of the projected texture.
|
|
349
390
|
*
|
|
@@ -355,12 +396,14 @@ interface ProjectedTexture {
|
|
|
355
396
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetShadowSlopeScaleDepthBias
|
|
356
397
|
*/
|
|
357
398
|
SetShadowSlopeScaleDepthBias(self: ProjectedTexture, bias: number): void;
|
|
399
|
+
|
|
358
400
|
/**
|
|
359
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.
|
|
360
402
|
* @realm client
|
|
361
403
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetSkipShadowUpdates
|
|
362
404
|
*/
|
|
363
405
|
SetSkipShadowUpdates(self: ProjectedTexture, enable: boolean): void;
|
|
406
|
+
|
|
364
407
|
/**
|
|
365
408
|
* Sets the target entity for this projected texture, meaning it will only be lighting the given entity and the world.
|
|
366
409
|
*
|
|
@@ -370,6 +413,7 @@ interface ProjectedTexture {
|
|
|
370
413
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTargetEntity
|
|
371
414
|
*/
|
|
372
415
|
SetTargetEntity(self: ProjectedTexture, target?: Entity): void;
|
|
416
|
+
|
|
373
417
|
/**
|
|
374
418
|
* Sets the texture to be projected.
|
|
375
419
|
*
|
|
@@ -379,6 +423,7 @@ interface ProjectedTexture {
|
|
|
379
423
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTexture
|
|
380
424
|
*/
|
|
381
425
|
SetTexture(self: ProjectedTexture, texture: string): void;
|
|
426
|
+
|
|
382
427
|
/**
|
|
383
428
|
* For animated textures, this will choose which frame in the animation will be projected.
|
|
384
429
|
*
|
|
@@ -388,6 +433,7 @@ interface ProjectedTexture {
|
|
|
388
433
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetTextureFrame
|
|
389
434
|
*/
|
|
390
435
|
SetTextureFrame(self: ProjectedTexture, frame: number): void;
|
|
436
|
+
|
|
391
437
|
/**
|
|
392
438
|
* Sets the vertical angle of projection without affecting the horizontal angle.
|
|
393
439
|
*
|
|
@@ -397,6 +443,7 @@ interface ProjectedTexture {
|
|
|
397
443
|
* @source https://wiki.facepunch.com/gmod/ProjectedTexture:SetVerticalFOV
|
|
398
444
|
*/
|
|
399
445
|
SetVerticalFOV(self: ProjectedTexture, vFOV: number): void;
|
|
446
|
+
|
|
400
447
|
/**
|
|
401
448
|
* Updates the Projected Light and applies all previously set parameters.
|
|
402
449
|
*
|
|
@@ -407,52 +454,3 @@ interface ProjectedTexture {
|
|
|
407
454
|
*/
|
|
408
455
|
Update(self: ProjectedTexture): void;
|
|
409
456
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
package/types/properties.d.tlua
CHANGED
|
@@ -13,6 +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
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Returns true if given entity can be targeted by the player via the properties system.
|
|
18
19
|
*
|
|
@@ -22,24 +23,28 @@ interface PropertiesLib {
|
|
|
22
23
|
* @source https://wiki.facepunch.com/gmod/properties.CanBeTargeted
|
|
23
24
|
*/
|
|
24
25
|
CanBeTargeted(ent: Entity, ply: Player): boolean;
|
|
26
|
+
|
|
25
27
|
/**
|
|
26
28
|
* Returns an entity player is hovering over with their cursor.
|
|
27
29
|
* @realm client
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/properties.GetHovered
|
|
29
31
|
*/
|
|
30
32
|
GetHovered(pos: Vector, aimVec: Vector): Entity;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Checks if player hovers over any entities and open a properties menu for it.
|
|
33
36
|
* @realm shared
|
|
34
37
|
* @source https://wiki.facepunch.com/gmod/properties.OnScreenClick
|
|
35
38
|
*/
|
|
36
39
|
OnScreenClick(eyepos: Vector, eyevec: Vector): void;
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
42
|
* Opens properties menu for given entity.
|
|
39
43
|
* @realm shared
|
|
40
44
|
* @source https://wiki.facepunch.com/gmod/properties.OpenEntityMenu
|
|
41
45
|
*/
|
|
42
46
|
OpenEntityMenu(ent: Entity, tr: table): void;
|
|
47
|
+
|
|
43
48
|
/**
|
|
44
49
|
* Remove an entity right-click property. See [properties.Add](https://wiki.facepunch.com/gmod/properties.Add) for details.
|
|
45
50
|
* @realm shared
|
|
@@ -47,9 +52,3 @@ interface PropertiesLib {
|
|
|
47
52
|
*/
|
|
48
53
|
Remove(name: string): void;
|
|
49
54
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
package/types/propselect.d.tlua
CHANGED
|
@@ -15,12 +15,14 @@ interface PropSelect extends ContextBase {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/PropSelect:AddModel
|
|
16
16
|
*/
|
|
17
17
|
AddModel(self: PropSelect, model: string, convars: table): void;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Adds a new model to the selection list.
|
|
20
21
|
* @realm client
|
|
21
22
|
* @source https://wiki.facepunch.com/gmod/PropSelect:AddModelEx
|
|
22
23
|
*/
|
|
23
24
|
AddModelEx(self: PropSelect, value: string, model: string, skin: number): void;
|
|
25
|
+
|
|
24
26
|
/**
|
|
25
27
|
* Find and select a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) panel based on the input model path.
|
|
26
28
|
*
|
|
@@ -28,6 +30,7 @@ interface PropSelect extends ContextBase {
|
|
|
28
30
|
* @source https://wiki.facepunch.com/gmod/PropSelect:FindAndSelectButton
|
|
29
31
|
*/
|
|
30
32
|
FindAndSelectButton(self: PropSelect, mdl: string): void;
|
|
33
|
+
|
|
31
34
|
/**
|
|
32
35
|
* Find a [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon) panel based on the input model path.
|
|
33
36
|
*
|
|
@@ -36,8 +39,3 @@ interface PropSelect extends ContextBase {
|
|
|
36
39
|
*/
|
|
37
40
|
FindModelByValue(self: PropSelect, mdl: string): SpawnIcon;
|
|
38
41
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
package/types/radiobutton.d.tlua
CHANGED