class Diorite::TextCommand2D

Overview

Internal command payload representing an immediate-mode 2D text label request.

Defined in:

diorite/core/debug_command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(position : Godot::Vector2, text : String, color : Godot::Color, duration : Float64 = 0.0, channel : String = "default") #

Creates a new 2D text label command.


[View source]

Instance Method Detail

def channel : String #

Filter channel / layer category this command belongs to.


[View source]
def channel=(channel : String) #

Filter channel / layer category this command belongs to.


[View source]
def color : Godot::Color #

Text color modulate.


[View source]
def color=(color : Godot::Color) #

Text color modulate.


[View source]
def duration : Float64 #

Lifetime duration in seconds.


[View source]
def duration=(duration : Float64) #

Lifetime duration in seconds.


[View source]
def expired? : Bool #

Returns true if the command has exceeded its duration lifetime.


[View source]
def position : Godot::Vector2 #

Canvas pixel coordinate of the 2D text label.


[View source]
def position=(position : Godot::Vector2) #

Canvas pixel coordinate of the 2D text label.


[View source]
def remaining_time : Float64 #

Remaining lifetime in seconds.


[View source]
def remaining_time=(remaining_time : Float64) #

Remaining lifetime in seconds.


[View source]
def step(delta : Float64) : Void #

Advances time by delta seconds.


[View source]
def text : String #

String message to display.


[View source]
def text=(text : String) #

String message to display.


[View source]