class
Diorite::TextCommand2D
- Diorite::TextCommand2D
- Reference
- Object
Overview
Internal command payload representing an immediate-mode 2D text label request.
Defined in:
diorite/core/debug_command.crConstructors
-
.new(position : Godot::Vector2, text : String, color : Godot::Color, duration : Float64 = 0.0, channel : String = "default")
Creates a new 2D text label command.
Instance Method Summary
-
#channel : String
Filter channel / layer category this command belongs to.
-
#channel=(channel : String)
Filter channel / layer category this command belongs to.
-
#color : Godot::Color
Text color modulate.
-
#color=(color : Godot::Color)
Text color modulate.
-
#duration : Float64
Lifetime duration in seconds.
-
#duration=(duration : Float64)
Lifetime duration in seconds.
-
#expired? : Bool
Returns true if the command has exceeded its duration lifetime.
-
#position : Godot::Vector2
Canvas pixel coordinate of the 2D text label.
-
#position=(position : Godot::Vector2)
Canvas pixel coordinate of the 2D text label.
-
#remaining_time : Float64
Remaining lifetime in seconds.
-
#remaining_time=(remaining_time : Float64)
Remaining lifetime in seconds.
-
#step(delta : Float64) : Void
Advances time by delta seconds.
-
#text : String
String message to display.
-
#text=(text : String)
String message to display.
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.