class

GSDL::HUDProgressBar

Inherits GSDL::HUDElement < GSDL::ProgressBar < GSDL::Tweenable < Reference < Object

Constructors

new(data_key : Nil | String = nil, anchor : GSDL::Anchor = Anchor::TopLeft, offset_x : Float32 | Int32 = 0, offset_y : Float32 | Int32 = 0, width = 100, height = 20, value = 0.0_f32, background_color = ColorScheme.get(:alt), foreground_color = ColorScheme.get(:success), border_color = ColorScheme.get(:border), border_width = 1, border_radius = 0, orientation = Orientation::Horizontal, origin = {0_f32, 0_f32}, scale : Num | Tuple(Num, Num) = {1_f32, 1_f32}, rotation = 0.0_f32, z_index = 1000)
Source

Instance methods

data_key
Source
data_key=(data_key : String | Nil)
Source
hud_draw(draw : Draw)
Source
hud_update(dt : Float32)
Source
update(dt : Float32)
Source