PointClickEngine::UI::DialogPortrait
Inherits Reference < Object
Animated character portrait for dialog scenes
Constructors
new(character_name : String)
SourceInstance methods
add_expression_frames(expression : PortraitExpression, frame_rects : Array(RL::Rectangle), frame_duration : Float32 = 0.1_f32)
Add animation frames for a specific expression
animation_speed
Sourceanimation_speed=(animation_speed : Float32)
Sourceblink_duration
Sourceblink_duration=(blink_duration : Float32)
Sourceblink_interval
Sourceblink_interval=(blink_interval : Float32)
Sourcecharacter_name
Sourcecharacter_name=(character_name : String)
Sourcecurrent_expression
Sourcecurrent_expression=(current_expression : PortraitExpression)
Sourceframe_timer
Sourceframe_timer=(frame_timer : Float32)
Sourceframes
Sourceframes=(frames : Hash(PortraitExpression, Array(PortraitFrame)))
Sourceget_screen_position(screen_width : Int32, screen_height : Int32, character_pos : RL::Vector2 | Nil = nil) : RL::Vector2
Get screen position based on portrait position setting
is_blinking
Sourceis_blinking=(is_blinking : Bool)
Sourcemouth_frame_index
Sourcemouth_frame_index=(mouth_frame_index : Int32)
Sourcemouth_speed
Sourcemouth_speed=(mouth_speed : Float32)
Sourcemouth_timer
Sourcemouth_timer=(mouth_timer : Float32)
Sourceportrait_texture
Sourceportrait_texture=(portrait_texture : RL::Texture2D | Nil)
Sourceposition
Sourceposition=(position : PortraitPosition)
Sourcescale
Sourcescale=(scale : Float32)
Sourceset_expression(expression : PortraitExpression, immediate : Bool = false)
Set current expression with smooth transition
size
Sourcesize=(size : RL::Vector2)
Sourcetalking
Sourcetalking=(talking : Bool)
Sourcetint
Sourcetint=(tint : RL::Color)
Sourcevisible
Sourcevisible=(visible : Bool)
Source