class

PointClickEngine::Graphics::UI::DialogRenderer

Inherits Reference < Object

Dialog renderer for various dialog types

Constructors

new(nine_patch : NinePatch | Nil = nil)
Source

Instance methods

animating?

Check if dialog is animating

Source
current_text

Current state

Source
draw(x : Float32, y : Float32, width : Float32 | Nil = nil, anchor : DialogAnchor = DialogAnchor::TopLeft, target_pos : RL::Vector2 | Nil = nil)

Draw dialog at position

Source
draw_at_target(target_pos : RL::Vector2, anchor : DialogAnchor = DialogAnchor::AboveTarget)

Draw dialog following a target

Source
fade_speed
Source
fade_speed=(fade_speed : Float32)
Source
fully_visible?

Check if dialog is fully visible

Source
hide(instant : Bool = false)

Hide dialog

Source
line_spacing
Source
line_spacing=(line_spacing : Float32)
Source
max_width
Source
max_width=(max_width : Float32)
Source
min_height
Source
min_height=(min_height : Float32)
Source
min_width
Source
min_width=(min_width : Float32)
Source
nine_patch

Dialog box properties

Source
nine_patch=(nine_patch : NinePatch | Nil)

Dialog box properties

Source
opacity
Source
padding
Source
padding=(padding : Float32)
Source
show(text : String, instant : Bool = false)

Show dialog with text

Source
show_tail

Speech bubble tail

Source
show_tail=(show_tail : Bool)

Speech bubble tail

Source
skip_typewriter

Skip typewriter animation

Source
tail_height
Source
tail_height=(tail_height : Float32)
Source
tail_offset
Source
tail_offset=(tail_offset : Float32)
Source
tail_width
Source
tail_width=(tail_width : Float32)
Source
text_color
Source
text_color=(text_color : RL::Color)
Source
text_renderer

Text properties

Source
text_renderer=(text_renderer : TextRenderer)

Text properties

Source
typewriter_progress
Source
typewriter_speed

Animation

Source
typewriter_speed=(typewriter_speed : Float32)

Animation

Source
update(dt : Float32)

Update animation

Source
visible
Source