CastingBarFrame.timer =CastingBarFrame:CreateFontString(nil);
CastingBarFrame.timer:SetFont(STANDARD_TEXT_FONT,12,"OUTLINE");
--CastingBarFrame.timer:SetPoint("RIGHT",CastingBarFrame,"RIGHT",-5,-2);
CastingBarFrame.timer:SetPoint("RIGHT",CastingBarFrame,"RIGHT",2,-15);
CastingBarFrame.update =.1;
hooksecurefunc("CastingBarFrame_OnUpdate",function(self, elapsed)
if not self.timer then return end
if self.update and self.update < elapsed then
if self.casting then
self.timer:SetText(format("%2.1f/%1.1f", max(self.maxValue -self.value,0),self.maxValue))
elseif self.channeling then
self.timer:SetText(format("%.1f", max(self.value,0)))
else
self.timer:SetText("")
end
self.update =.1
else
self.update =self.update - elapsed
end
end)
for i = 1, 12 do _G["BonusActionButton"..i.."HotKey"]:SetAlpha(0) end
for i = 1, 12 do _G["MultiBarBottomLeftButton"..i.."HotKey"]:SetAlpha(0) end
for i = 1, 12 do _G["MultiBarBottomRightButton"..i.."HotKey"]:SetAlpha(0) end
for i = 1, 12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0) end
for i = 1, 12 do _G["BonusActionButton"..i.."Name"]:Hide() end
for i = 1, 12 do _G["ActionButton"..i.."Name"]:Hide() end
for i = 1, 12 do _G["MultiBarBottomLeftButton"..i.."Name"]:Hide() end
for i = 1, 12 do _G["MultiBarBottomRightButton"..i.."Name"]:Hide() end
for i = 1, 12 do _G["MultiBarLeftButton"..i.."HotKey"]:SetAlpha(0) end
for i = 1, 12 do _G["MultiBarRightButton"..i.."HotKey"]:SetAlpha(0) end
CTT=CreateFrame("Frame")CTT:SetParent(TargetFrame)CTT:SetPoint("Left",TargetFrame,-30,5)CTT:SetSize(25,25)CTT.t=CTT:CreateTexture(nil,BORDER)CTT.t:SetAllPoints()CTT.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")CTT:Hide()
local function FrameOnUpdate(self) if UnitAffectingCombat("target") then self:Show() else self:Hide() end end local g = CreateFrame("Frame") g:SetScript("OnUpdate", function(self) FrameOnUpdate(CTT) end)
CFT=CreateFrame("Frame")CFT:SetParent(FocusFrame)CFT:SetPoint("Left",FocusFrame,-30,5)CFT:SetSize(25,25)CFT.t=CFT:CreateTexture(nil,BORDER)CFT.t:SetAllPoints()CFT.t:SetTexture("Interface\\Icons\\ABILITY_DUALWIELD")CFT:Hide()
local function FrameOnUpdate(self) if UnitAffectingCombat("focus") then self:Show() else self:Hide() end end local g = CreateFrame("Frame") g:SetScript("OnUpdate", function(self) FrameOnUpdate(CFT) end)
V={B="ArenaEnemyFrame"} for i=1,5 do _G[V.B..i]:SetScale(1.23); _G[V.B..i.."CastingBar"]:SetPoint("RIGHT",95,0); end;
[свернуть]