Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Casting Bar
- SBF={CastingBarFrame,TargetFrameSpellBar,FocusFrameSpellBar}
- for i,v in pairs(SBF) do
- v.Border:Hide()
- v.Text:ClearAllPoints()
- v.Text:SetPoint("CENTER",v)
- v.Text:SetFont(STANDARD_TEXT_FONT,14,"OUTLINE")
- v:SetSize(208,21)
- v.Icon:Show()
- v.Icon:SetSize(25,25)
- v.Icon:SetPoint("RIGHT",v,30,0)
- v:HookScript("OnShow",function (self)
- if self.BorderShield then
- self.BorderShield:SetSize(273,65)
- self.BorderShield:ClearAllPoints()
- self.BorderShield:SetPoint("CENTER",self,5,0)
- end
- end)
- v.Flash.Show=function() return end
- end
- CBF={CastingBarFrame}
- for i,v in pairs(CBF) do
- v:SetSize(230,28)
- v:ClearAllPoints()
- v:SetPoint("CENTER",0,-175)
- v.SetPoint = function() end
- v.Icon:SetSize(33,33)
- v.Icon:SetPoint("RIGHT",v,40,0)
- end
- FSB={TargetFrameSpellBar,FocusFrameSpellBar}
- for i,v in pairs(FSB) do
- v:HookScript("OnShow",function (self)
- Target_Spellbar_AdjustPosition(self)
- end)
- end
- function Target_Spellbar_AdjustPosition(self)
- local parentFrame = self:GetParent();
- if ( self.boss ) then
- self:SetPoint("TOPLEFT", parentFrame, "BOTTOMLEFT", 5, 10 );
- elseif ( parentFrame.haveToT ) then
- if ( parentFrame.buffsOnTop or parentFrame.auraRows <= 1 ) then
- self:SetPoint("TOPLEFT", parentFrame, "BOTTOMLEFT", 5, -21 );
- else
- self:SetPoint("TOPLEFT", parentFrame.spellbarAnchor, "BOTTOMLEFT", 0, -15);
- end
- elseif ( parentFrame.haveElite ) then
- if ( parentFrame.buffsOnTop or parentFrame.auraRows <= 1 ) then
- self:SetPoint("TOPLEFT", parentFrame, "BOTTOMLEFT", 5, -5 );
- else
- self:SetPoint("TOPLEFT", parentFrame.spellbarAnchor, "BOTTOMLEFT", 0, -15);
- end
- else
- if ( (not parentFrame.buffsOnTop) and parentFrame.auraRows > 0 ) then
- self:SetPoint("TOPLEFT", parentFrame.spellbarAnchor, "BOTTOMLEFT", 0, -15);
- else
- self:SetPoint("TOPLEFT", parentFrame, "BOTTOMLEFT", 5, 7 );
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement