git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
96ad366 - Add Shaman settings
[wowui.git]
/
OmaUF
/
BossFrames.lua
diff --git
a/OmaUF/BossFrames.lua
b/OmaUF/BossFrames.lua
index
d2a7ef7
..
1b607ca
100644
(file)
--- a/
OmaUF/BossFrames.lua
+++ b/
OmaUF/BossFrames.lua
@@
-17,7
+17,6
@@
local bgColor = Settings.BgColor;
local healthColor = Settings.HealthColor;
local shieldColor = Settings.ShieldColor;
local shieldhlColor = Settings.ShieldhlColor;
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;
local healabsorbColor = Settings.HealabsorbColor;
local width, height = Settings.Boss.Width, Settings.Boss.Height;
local anchorX, anchorY = Settings.Boss.AnchorX, Settings.Boss.AnchorY;
@@
-147,12
+146,13
@@
local function createFrame(framename, securename, parent, unit, anchorX, anchorY
frame:SetScript("OnEvent", unitEvent);
secure:SetScript("OnEnter", showTooltip);
secure:SetScript("OnLeave", hideTooltip);
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
-- 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");
-- rest give target and menu
secure:SetAttribute("*type1", "target");
secure:SetAttribute("*type2", "togglemenu");