class

GSDL::Button

Inherits GSDL::Message < GSDL::TextBox < GSDL::Tweenable < GSDL::Centerable < Reference < Object

Constructors

new(font : Symbol | FontOld = FontManager.default, font_size : Num = FontManager.default_size, text : String | GSDL::Text = "", origin = {0_f32, 0_f32}, scale = {1_f32, 1_f32}, width : Int32 | Nil = nil, height : Int32 | Nil = nil, padding = nil, padding_x = nil, padding_y = nil, align = FontOld::Align::Center, x : Num = 0_f32, y : Num = 0_f32, color = ColorScheme.get(:ui_text), border_radius : Num = 0, z_index : Int32 = 900, draw_relative_to_camera : Bool = false, on_click : Callback = ->on_click(String))
Source

Instance methods

draw_border(draw : Draw)
Source
on_click(text : String)
Source
on_click
Source
update(dt : Float32)
Source

Nested types