class

PointClickEngine::UI::FloatingDialog

Inherits Reference < Object

Individual floating dialog instance

Constructors

new(text : String, character_name : String, character_position : RL::Vector2, duration : Float32, color : RL::Color | Nil = nil)
Source

Instance methods

background_color
Source
background_color=(background_color : RL::Color)
Source
character_name
Source
character_name=(character_name : String)
Source
character_position
Source
character_position=(character_position : RL::Vector2)
Source
color
Source
color=(color : RL::Color)
Source
draw

Draw the floating dialog

Source
duration
Source
duration=(duration : Float32)
Source
elapsed
Source
elapsed=(elapsed : Float32)
Source
fade_alpha
Source
fade_alpha=(fade_alpha : Float32)
Source
float_amplitude
Source
float_amplitude=(float_amplitude : Float32)
Source
float_offset

Animation properties

Source
float_offset=(float_offset : Float32)

Animation properties

Source
float_speed
Source
float_speed=(float_speed : Float32)
Source
font_size
Source
font_size=(font_size : Int32)
Source
frame_context
Source
frame_context=(frame_context : PointClickEngine::Graphics::FrameContext | Nil)
Source
max_width
Source
max_width=(max_width : Int32)
Source
scale
Source
scale=(scale : Float32)
Source
screen_anchor_position
Source
style
Source
style=(style : DialogStyle)
Source
text
Source
text=(text : String)
Source
typewriter_enabled

Typewriter effect

Source
typewriter_enabled=(typewriter_enabled : Bool)

Typewriter effect

Source
typewriter_speed
Source
typewriter_speed=(typewriter_speed : Float32)
Source
update(dt : Float32) : Bool

Update the floating dialog

Source
visible
Source
visible=(visible : Bool)
Source
visible_characters
Source
visible_characters=(visible_characters : Int32)
Source