progressbar.ui.lua
bar = UI.ProgressBar:Create();
bar:Set({
x = UI:GetCenterPosition().x
, y = UI:GetCenterPosition().y
, width = 256
, height = 64
, r = 0
, g = 0
, b = 0
, a = 153
, stroke =
{
visible = true,
size = 8,
r = Common.COLOR.REDISH.r,
g = Common.COLOR.REDISH.g,
b = Common.COLOR.REDISH.b,
a = 255,
}
, bar =
{
percent = math.random(),
r = Common.COLOR.GREENISH.r,
g = Common.COLOR.GREENISH.g,
b = Common.COLOR.GREENISH.b,
a = 255,
}
});
bar:Set({
x = UI:GetCenterPosition( bar:Get() ).x
, y = UI:GetCenterPosition( bar:Get() ).y
});
bar:Show();
print( "bar:IsVisible() => ", bar:IsVisible() );