Template:I Sprite: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(updates)
Line 1: Line 1:
; <code>SetScale <[[float]]></code>
{{minititle|Sprite}}
: Set the scale (0 - 8.0).
{{IO|SetScale|param=float|Sets '''Scale'''.}}
; <code>HideSprite</code>
{{IO|HideSprite|Makes the sprite invisible.}}
; <code>ShowSprite</code>
{{IO|ShowSprite|Makes sprite visible.}}
; <code>ToggleSprite</code>
{{IO|ToggleSprite|Make sprite invisible or visible depending on the current state.}}
: Whether to draw the sprite.
{{IO|ColorRedValue|param=float|Change the intensity of the red channel (0-255).}}
; {{EP2 add|<code>ColorRedValue <float></code>}}
{{IO|ColorGreenValue|param=float|Change the intensity of the green channel (0-255).}}
; {{EP2 add|<code>ColorGreenValue <float></code>}}
{{IO|ColorBlueValue|param=float|Change the intensity of the blue channel (0-255).}}
; {{EP2 add|<code>ColorBlueValue <float></code>}}
: Change the intensity of the sprite's [[RGB|three color channels]] (0-255).
{{ScrollBox|
{{I Parentname}}
{{I RenderFields}}
{{I Targetname}}
}}

Revision as of 12:22, 2 October 2018

Sprite:

SetScale <float>
Sets Scale.
HideSprite
Makes the sprite invisible.
ShowSprite
Makes sprite visible.
ToggleSprite
Make sprite invisible or visible depending on the current state.
ColorRedValue <float>
Change the intensity of the red channel (0-255).
ColorGreenValue <float>
Change the intensity of the green channel (0-255).
ColorBlueValue <float>
Change the intensity of the blue channel (0-255).