local healthColor = Settings.HealthColor;
local shieldColor = Settings.ShieldColor;
local shieldhlColor = Settings.ShieldhlColor;
-local healpredColor = Settings.HealpredColor;
local healabsorbColor = Settings.HealabsorbColor;
local width, height = Settings.Boss.Width, Settings.Boss.Height;
local anchorX, anchorY = Settings.Boss.AnchorX, Settings.Boss.AnchorY;
frame:SetScript("OnEvent", unitEvent);
secure:SetScript("OnEnter", showTooltip);
secure:SetScript("OnLeave", hideTooltip);
+ -- set PowerBarAlt
+ local powerbar = _G[string.format("Boss%iTargetFramePowerBarAlt", string.sub(unit, 5, 5))];
+ powerbar:SetParent(secure);
+ powerbar:ClearAllPoints();
+ powerbar:SetPoint("RIGHT", secure, "LEFT");
-- set attributes
-- TODO other set of click cast on boss frames possibly
- --secure:RegisterForClicks("AnyDown");
- --for attr, val in pairs(attributes) do
- -- secure:SetAttribute(attr, val);
- --end
-- rest give target and menu
secure:SetAttribute("*type1", "target");
secure:SetAttribute("*type2", "togglemenu");
WarlockPowerFrame, MonkHarmonyBarFrame, PaladinPowerBarFrame,
MageArcaneChargesFrame, CastingBarFrame, PetCastingBarFrame};
for i = 1,MAX_BOSS_FRAMES do
- --table.insert(frames, _G["Boss"..i.."TargetFrame"]);
- --table.insert(frames, _G["Boss"..i.."TargetFrameHealthBar"]);
- --table.insert(frames, _G["Boss"..i.."TargetFrameManaBar"]);
+ table.insert(frames, _G["Boss"..i.."TargetFrame"]);
+ table.insert(frames, _G["Boss"..i.."TargetFrameHealthBar"]);
+ table.insert(frames, _G["Boss"..i.."TargetFrameManaBar"]);
+ -- keep boss frame powerBarAlt
end
for _, frame in pairs(frames) do
frame: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
+ --if frame.powerBarAlt then frame.powerBarAlt:UnregisterAllEvents() end
frame:Hide();
end