Skip to content

Instantly share code, notes, and snippets.

View KyrosKrane's full-sized avatar

KyrosKrane Sylvanblade KyrosKrane

View GitHub Profile
local bar = CreateFrame("StatusBar", nil, UIParent);
bar:SetPoint("CENTER");
bar:SetSize(400, 32);
bar:SetStatusBarTexture([[Interface\Buttons\White8x8]])
bar:SetStatusBarColor(0, 0, 1);
bar:SetMinMaxValues(0, 100);
bar:SetValue(50);
local backgroundFill = bar:CreateTexture(nil, "BACKGROUND");
backgroundFill:SetAllPoints(true);