class Godot::PropertyTweenerStep

Overview

Expressive step wrapper around Godot::PropertyTweener supporting fluent chaining

Defined in:

libgodot/extensions/tween.cr

Constructors

Macro Summary

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(tweener : PropertyTweener, builder : TweenBuilder) #

Macro Detail

macro method_missing(call) #

Instance Method Detail

def animate(target : Object, prop : String | NodePath | Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep #

Chains another animation step directly on target


def animate(prop : String | NodePath | Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep #

Chains another animation on owner node directly


def animate(prop : Symbol, sub_prop : Symbol, to val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color, duration : Float64 | ::Time::Span = 0.2, in in_duration : Float64 | ::Time::Span | Nil = nil, from from_val : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color | Nil = nil, trans : Tween::TransitionType | Trans | Symbol | Int = :linear, ease : Tween::EaseType | Ease | Symbol | Int = :in_out) : PropertyTweenerStep #

Chains sub-property animation on owner node directly


def as_relative : self #

Interprets the destination value as relative to the starting value


def builder : TweenBuilder #

def chain : TweenBuilder #

Chains sequential execution and returns the TweenBuilder for the next step


def delay(duration : Float64 | ::Time::Span) : self #

Sets a delay in seconds or ::Time::Span before this tweener executes


def delay_step(duration : Float64 | ::Time::Span) : IntervalTweenerStep #

Chains an interval delay step


def ease(type : Tween::EaseType | Ease | Symbol | Int) : self #

Configures the easing curve type (e.g. :in, :out, :in_out)


def from(value : Variant | Object | Int32 | Int64 | Float32 | Float64 | Bool | String | Vector2 | Vector3 | Vector4 | Color) : self #

Sets the starting value for the tweened property


def from_current : self #

Sets the starting value to the current value at runtime


def kill : TweenBuilder #

def loops(count : Int = 0) : TweenBuilder #

def parallel : TweenBuilder #

Sets parallel execution and returns the TweenBuilder for concurrent steps


def pause : TweenBuilder #

def play : TweenBuilder #

def raw_tweener : PropertyTweener #

Returns the underlying raw Godot::PropertyTweener


def speed_scale(scale : Float64) : TweenBuilder #

def trans(type : Tween::TransitionType | Trans | Symbol | Int) : self #

Configures the transition curve type (e.g. :cubic, :elastic, :linear)


def tweener : PropertyTweener #