User:THE OWL/Sandbox/Pages/Entity page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Replaced content with "{{delete|reason=unwanted}}")
Tag: Replaced
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:User Interface Kit – Monolith (Preview of Entity page)}}
{{delete|reason=unwanted}}
<div class="infobox" style="max-width:280px; width:100%; box-shadow:0 0 2px rgba(0 0 0 / 60%); background-color:rgb(45 45 47); border-radius:4px; overflow:hidden; position:relative; float:right; margin:0 0 1em 1em">
<div style="background-image:linear-gradient(45deg, rgb(48 75 110), rgb(36 58 85)); border-radius:3px 3px 0 0; text-align:center; text-shadow:1px 1px 0 rgb(0 0 0 / 40%); font-family:monospace; font-size:1.75em; font-weight:900;  color:rgb(255 255 255 / 85%); padding:.3em .4em"> env_fade </div>
 
<div style="display:flex; justify-content:center; align-items:center; background-color:rgb(0 0 0 / 40%); padding:1em"> [[File:env_fade.png|64px|The env_fade icon is used in all Source engine games.]] </div>
 
<div style="text-align:center; padding:.2em .4em"> The '''env_fade''' icon is used in all [[Source]] engine games. </div>
 
<div style="padding:0 .3em .3em .3em"><div style="display:flex; flex-direction:column; gap:.2em; border-radius:2px; overflow:hidden">
<div style="display:flex">
<div style="width:90px; background-color:rgb(65 65 67); color:rgb(255 255 255 / 80%); padding:.2em .5em">Type</div>
<div style="width:100%; background-color:rgb(55 55 57); padding:.2em .5em">[[Point entity|Point entity]]</div>
</div>
 
<div style="display:flex">
<div style="width:90px; background-color:rgb(65 65 67); color:rgb(255 255 255 / 80%); padding:.2em .5em">Category</div>
<div style="width:100%; background-color:rgb(55 55 57); padding:.2em .5em">[[Main Page|Environment entities]]</div>
</div>
 
<div style="display:flex">
<div style="width:90px; background-color:rgb(65 65 67); color:rgb(255 255 255 / 80%); padding:.2em .5em">Engine</div>
<div style="width:100%; background-color:rgb(55 55 57); padding:.2em .5em">{{Source|4}}</div>
</div>
 
<div style="display:flex">
<div style="width:90px; background-color:rgb(65 65 67); color:rgb(255 255 255 / 80%); padding:.2em .5em">Availability</div>
<div style="width:100%; background-color:rgb(55 55 57); padding:.2em .5em">In all games</div>
</div>
</div></div>
</div>
 
</div>
 
{{Code|env_fade}} is a [[point entity]] available in all {{Source|4}} games. It controls screen fades to or from a solid color. Add Duration and Hold Time together for the total time this entity will be in effect.
 
== Keyvalues ==
 
== Inputs ==
{{:User:THE OWL/Sandbox/Templates/OIF
 
| target = Inputs
 
| item 1 = Fade
| item 1 desc = Start the screen fade.
 
| item 2 = FadeReverse
| item 2 desc = Begin doing the reverse of the current fade.
 
| item 3 = Alpha
| item 3 desc = Changes '''Fade Alpha'''.
 
| item 4 = OnMapTransition
| item 4 desc = Changes '''Fade Color'''.
 
}}
 
== Outputs ==
{{:User:THE OWL/Sandbox/Templates/OIF
 
| target = Outputs
 
| item 1 = OnMapSpawn
| item 1 desc = Fired shortly after the entity spawns (including loading saves).
{{Bug|{{tf2}} Also fires when a new round starts}}
 
| item 2 = OnNewGame
| item 2 desc = Fired when the map is loaded to start a new game.
 
| item 3 = OnLoadGame
| item 3 desc = Fired when the map is loaded from a saved game.
 
| item 4 = OnMapTransition
| item 4 desc = Fired when the map is loaded due to a level transition.
 
| item 5 = OnBackgroundMap
| item 5 desc = Fired when the map is loaded as a background to the main menu using {{ent|map_background}}.
 
| item 6 = OnMultiNewMap
| item 6 desc = Fired shortly after the entity spawns but only in multiplayer and if the round wasn't restarted
 
| item 7 = OnMultiNewRound
| item 7 desc = Fired shortly after the entity spawns but only in multiplayer and if round was restarted
{{Warning|{{tf}} Does not get fired when tournament mode is enabled (mp_tournament 1). Use OnMapSpawn instead}}
 
| item 8 = OnViolenceLow
| item 8 desc = <div> {{only|{{sineps}}}} </div> Fired when the map is loaded for any reason if the game is in low-violence mode.
 
| item 9 = OnViolenceHigh
| item 9 desc = <div> {{only|{{sineps}}}} </div> Fired when the map is loaded for any reason if the game is not in low-violence mode.
 
}}
 
== Flags ==
 
== ConCommands ==

Latest revision as of 08:53, 7 September 2025

Warning icon.png
This article has been marked as a candidate for speedy deletion because it is unwanted by the author.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.