tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Graphics.Effects.SimpleOverlay Class Reference

Inherits Terraria.Graphics.Effects.Overlay.

Public Member Functions

 SimpleOverlay (string textureName, ScreenShaderData shader, EffectPriority priority=EffectPriority.VeryLow, RenderLayers layer=RenderLayers.All)
 
 SimpleOverlay (string textureName, string shaderName="Default", EffectPriority priority=EffectPriority.VeryLow, RenderLayers layer=RenderLayers.All)
 
override void Activate (Vector2 position, params object[] args)
 
override void Deactivate (params object[] args)
 
override void Draw (SpriteBatch spriteBatch)
 
ScreenShaderData GetShader ()
 
override bool IsVisible ()
 
override void Update (GameTime gameTime)
 
- Public Member Functions inherited from Terraria.Graphics.Effects.Overlay
 Overlay (EffectPriority priority, RenderLayers layer)
 
abstract void Draw (SpriteBatch spriteBatch)
 
abstract void Update (GameTime gameTime)
 
- Public Member Functions inherited from Terraria.Graphics.Effects.GameEffect
abstract void Activate (Vector2 position, params object[] args)
 
abstract void Deactivate (params object[] args)
 
abstract bool IsVisible ()
 
void Load ()
 
virtual void OnLoad ()
 

Public Attributes

Vector2 TargetPosition = Vector2.Zero
 
- Public Attributes inherited from Terraria.Graphics.Effects.Overlay
OverlayMode Mode = OverlayMode.Inactive
 
- Public Attributes inherited from Terraria.Graphics.Effects.GameEffect
float Opacity
 

Additional Inherited Members

- Protected Attributes inherited from Terraria.Graphics.Effects.GameEffect
bool _isLoaded
 
EffectPriority _priority
 
- Properties inherited from Terraria.Graphics.Effects.Overlay
RenderLayers Layer [get]
 
- Properties inherited from Terraria.Graphics.Effects.GameEffect
bool IsLoaded [get]
 
EffectPriority Priority [get]
 

Member Function Documentation

◆ Activate()

override void Terraria.Graphics.Effects.SimpleOverlay.Activate ( Vector2  position,
params object[]  args 
)
virtual

◆ Deactivate()

override void Terraria.Graphics.Effects.SimpleOverlay.Deactivate ( params object[]  args)
virtual

◆ Draw()

override void Terraria.Graphics.Effects.SimpleOverlay.Draw ( SpriteBatch  spriteBatch)
virtual

◆ IsVisible()

override bool Terraria.Graphics.Effects.SimpleOverlay.IsVisible ( )
virtual

◆ Update()

override void Terraria.Graphics.Effects.SimpleOverlay.Update ( GameTime  gameTime)
virtual