class

PointClickEngine::UI::FloatingTextManager

Inherits Reference < Object

Manager for floating text instances

Constructors

Instance methods

active_texts
Source
active_texts=(active_texts : Array(FloatingText))
Source
auto_dismiss
Source
auto_dismiss=(auto_dismiss : Bool)
Source
clear_all

Clear all floating texts

Source
clear_character_texts(character_name : String)

Clear texts for specific character

Source
default_duration
Source
default_duration=(default_duration : Float32)
Source
draw

Draw all floating texts

Source
frame_context
Source
frame_context=(context : PointClickEngine::Graphics::FrameContext | Nil)
Source
has_active_text?(character_name : String) : Bool

Check if character has active text

Source
show_choice(character_name : String, prompt : String, choices : Array(String), position : RL::Vector2, callback : Proc(Int32, Nil)) : FloatingText

Show floating text with choices

Source
show_text(character_name : String, text : String, position : RL::Vector2, duration : Float32 | Nil = nil) : FloatingText

Show floating text for a character

Source
update(dt : Float32)

Update all floating texts

Source
update_character_position(character_name : String, new_position : RL::Vector2)

Update character position for all their floating texts

Source