tModLoader v2025.03
A mod to make and play Terraria mods
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
SimpleOverlay Class Reference

Inherits 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 Overlay
 Overlay (EffectPriority priority, RenderLayers layer)
 
abstract void Draw (SpriteBatch spriteBatch)
 
abstract void Update (GameTime gameTime)
 
- Public Member Functions inherited from 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 Overlay
OverlayMode Mode = OverlayMode.Inactive
 
- Public Attributes inherited from GameEffect
float Opacity
 

Additional Inherited Members

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

Member Function Documentation

◆ Activate()

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

Implements GameEffect.

◆ Deactivate()

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

Implements GameEffect.

◆ Draw()

override void SimpleOverlay.Draw ( SpriteBatch  spriteBatch)
virtual

Implements Overlay.

◆ IsVisible()

override bool SimpleOverlay.IsVisible ( )
virtual

Implements GameEffect.

◆ Update()

override void SimpleOverlay.Update ( GameTime  gameTime)
virtual

Implements Overlay.