class

PointClickEngine::Actions::ActionOverlayManager

Inherits Reference < Object

Manages visual overlays for action sequences

Constructors

Instance methods

active

Whether overlays are currently active

Source
active=(active : Bool)

Whether overlays are currently active

Source
add_sprite(path : String, position : Raylib::Vector2, scale : Float32 = 1.0_f32, glow : Bool = false, glow_color : Raylib::Color | Nil = nil, tint : Raylib::Color = Raylib::WHITE, fade_in : Float32 = 0.0_f32, animate : Bool = false, animation_frames : Int32 = 1, animation_fps : Float32 = 0.0_f32, glow_pulse : Bool = false, glow_pulse_speed : Float32 = 1.0_f32)

Add a sprite to the overlay

Source
background

Get current background

Source
base_dir

Base directory for asset loading

Source
base_dir=(base_dir : String)

Base directory for asset loading

Source
canvas_height
Source
canvas_height=(canvas_height : Int32)
Source
canvas_width

Canvas size used for authored sequence coordinates.

Source
canvas_width=(canvas_width : Int32)

Canvas size used for authored sequence coordinates.

Source
cleanup

Cleanup all loaded textures (call on engine shutdown)

Source
clear_all

Clear all overlays (sprites, background)

Source
clear_background

Clear the background

Source
clear_backgrounds
Source
clear_sprites

Clear all sprites

Source
draw
Source
has_sprite?(identifier : String) : Bool

Check whether a sprite is currently registered.

Source
move_sprite(identifier : String, target : Raylib::Vector2, progress : Float32)

Move a sprite (interpolate position)

Source
remove_sprite(identifier : String, fade_out : Float32 = 0.0_f32)

Remove a sprite

Source
render_position_for(position : Raylib::Vector2) : Raylib::Vector2
Source
render_scale_for(scale : Float32) : Float32
Source
resolve_sprite_key(identifier : String) : String | Nil

Resolve a sprite identifier to the canonical stored key.

Source
set_background(image_path : String, layer : Int32 = 0)

Set the overlay background

Source
set_canvas(width : Int32, height : Int32)
Source
sprites

Get all sprites for rendering

Source
target_height
Source
target_height=(target_height : Int32)
Source
target_width
Source
target_width=(target_width : Int32)
Source
update(dt : Float32)

Update active overlays

Source