local CFrame = CreateFrame("Frame", "OmaRFFrame", UIParent);
local inheritedFrames = "SecureUnitButtonTemplate,SecureHandlerStateTemplate";
+local barTexture = "Interface\\AddOns\\OmaRF\\images\\minimalist";
local class = nil;
local party = {};
local raid = {};
frame.background:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -1, 1);
frame.background:SetColorTexture(unpack(bgColor));
frame.health = frame:CreateTexture(nil, "BORDER");
- frame.health:SetTexture("Interface\\RaidFrame\\Raid-Bar-Hp-Fill");
+ frame.health:SetTexture(barTexture);
frame.health:SetPoint("TOPLEFT", frame.background, "TOPLEFT");
frame.health:SetPoint("BOTTOMLEFT", frame.background, "BOTTOMLEFT");
frame.health:SetVertexColor(unpack(healthColor));
frame.shield = frame:CreateTexture(nil, "BORDER");
frame.shield:SetPoint("TOPLEFT", frame.health, "TOPRIGHT");
frame.shield:SetPoint("BOTTOMLEFT", frame.health, "BOTTOMRIGHT");
- frame.shield:SetColorTexture(unpack(shieldColor));
+ frame.shield:SetTexture(barTexture);
+ frame.shield:SetVertexColor(unpack(shieldColor));
frame.shield:Hide();
frame.shieldhl = frame:CreateTexture(nil, "ARTWORK");
frame.shieldhl:SetPoint("TOPLEFT", frame.background, "TOPRIGHT", -1, 0);
_, class = UnitClass("player");
anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
attributes = Settings.Character.Clickheal;
+ CFrame:SetFrameStrata("LOW");
CFrame:SetPoint("CENTER", nil, "CENTER", anchorX, anchorY);
CFrame:SetHeight((height+2)*8);
CFrame:SetWidth((width+2)*5);
hideBlizzardRaidButton();
-- hide focus frame
- for _, frame in pairs({FocusFrame, FocusFrameToT}) do
+ for _, frame in pairs({FocusFrame, FocusFrameToT, FocusFrameSpellBar}) do
frame:UnregisterAllEvents();
- frame.healthbar:UnregisterAllEvents();
- frame.manabar:UnregisterAllEvents();
+ if frame.healthbar then frame.healthbar:UnregisterAllEvents() end
+ if frame.manabar then frame.manabar:UnregisterAllEvents() end
if frame.spellbar then frame.spellbar:UnregisterAllEvents() end
if frame.powerBarAlt then frame.powerBarAlt:UnregisterAllEvents() end
frame:Hide();