class

GSDL::RichText

Inherits GSDL::TextOld < GSDL::Centerable < GSDL::Entity < GSDL::Saveable < GSDL::Tweenable < Reference < Object

Constructors

new(font = FontOld.default, text : String = "", x : Num = 0, y : Num = 0, origin : Tuple(Float32, Float32) = {0_f32, 0_f32}, scale : Tuple(Num, Num) = {1_f32, 1_f32}, color : Color = ColorScheme.get(:ui_text), align : FontOld::Align = FontOld::Align::Left, wrap_width : Int32 = 0, visible_characters : Int32 = -1, z_index : Int32 = 0, oversample_ratio : Float32 = TextOld::OversampleRatio, draw_relative_to_camera : Bool = true)
Source

Instance methods

_draw(x : Float32, y : Float32)
Source
bake!
Source
destroy
Source
draw(draw : Draw)
Source
height
Source
layout!
Source
text=(text : String)
Source
total_characters

Returns the total number of characters (excluding tags)

Source
width
Source
wrap_width=(val : Int32)
Source

Nested types