View Single Post
09-22-12, 08:27 AM   #10
Lordyfrb
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 71
I've just had a quick look at the code for SpartanUI and to remove the cast bar do the following:

Comment out the lines 150 to 171 inclusive from the file SpartanUI_PlayerFrames\Global-Framework.lua
Lua Code:
  1. do -- cast bar
  2.             local cast = CreateFrame("StatusBar",nil,self);
  3.             cast:SetFrameStrata("BACKGROUND"); cast:SetFrameLevel(2);
  4.             cast:SetWidth(153); cast:SetHeight(16);
  5.             cast:SetPoint("TOPLEFT",self,"TOPLEFT",36,-23);
  6.            
  7.             cast.Text = cast:CreateFontString(nil, "OVERLAY", "SUI_FontOutline10");
  8.             cast.Text:SetWidth(135); cast.Text:SetHeight(11);
  9.             cast.Text:SetJustifyH("RIGHT"); cast.Text:SetJustifyV("MIDDLE");
  10.             cast.Text:SetPoint("LEFT",cast,"LEFT",4,0);
  11.            
  12.             cast.Time = cast:CreateFontString(nil, "OVERLAY", "SUI_FontOutline10");
  13.             cast.Time:SetWidth(90); cast.Time:SetHeight(11);
  14.             cast.Time:SetJustifyH("RIGHT"); cast.Time:SetJustifyV("MIDDLE");
  15.             cast.Time:SetPoint("RIGHT",cast,"LEFT",-2,0);
  16.            
  17.             self.Castbar = cast;
  18.             self.Castbar.OnUpdate = OnCastbarUpdate;
  19.             self.Castbar.PostCastStart = PostCastStart;
  20.             self.Castbar.PostChannelStart = PostChannelStart;
  21.             self.Castbar.PostCastStop = PostCastStop;
  22.         end
They'll be this bit of code, that creates the player cast bar, commenting out these will remove the built in one and enable the blizzard cast bar.

then you'll need to reanchor the health bar, so on line 176 there will be this:
Lua Code:
  1. health:SetPoint("TOPLEFT",self.Castbar,"BOTTOMLEFT",0,-2);
Change it to this:
Lua Code:
  1. health:SetPoint("TOPLEFT",self,"TOPLEFT",36,-39);

Hopefully this will help you out.
__________________
  Reply With Quote