class

GSDL::HUDText

Inherits GSDL::HUDElement < Reference < Object

Constructors

new(font : Symbol = FontManager.default, font_size : Num = FontManager.default_size, text : String = "", text_data_template = nil, anchor : GSDL::Anchor = Anchor::TopLeft, offset_x : Float32 | Int32 = 0, offset_y : Float32 | Int32 = 0, origin = {0_f32, 0_f32}, scale : Num | Tuple(Num, Num) = {1_f32, 1_f32}, color = ColorScheme.get(:ui_text), h_align = HorizontalAlign::Left, z_index = 1000, width = nil)
Source

Instance methods

color
Source
color=(color : Color)
Source
draw_relative_to_camera=(val : Bool)
Source
draw_relative_to_camera?
Source
hud_draw(draw : Draw)
Source
hud_update(dt : Float32)
Source
origin
Source
origin=(origin : Tuple(Float32, Float32))
Source
scale
Source
scale=(scale : Tuple(Num, Num))
Source
text
Source
text=(text : String)
Source
text_data_template
Source
text_data_template=(template : String | Nil)
Source
text_element
Source
update(dt : Float32)
Source
z_index
Source
z_index=(z_index : Int32)
Source

Nested types