View Single Post
10-11-12, 05:06 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
core.lua, after line 1166, add the 3 green lines:

Code:
		if unit == "player" then
			Castbar:ClearAllPoints()
			Castbar:SetPoint("BOTTOM", UIParent, "CENTER", 0, -100)
			Castbar:SetWidth(config.width)

			Castbar.SafeZone = Castbar:CreateTexture(nil, "BORDER")
core.lua, after line 1174 (line 1177 after the previous addition), add the 5 green lines:

Code:
		elseif (uconfig.width or 1) > 0.75 then
			if unit == "target" then
				Castbar:ClearAllPoints()
				Castbar:SetPoint("TOP", UIParent, "CENTER", 0, -112)
				Castbar:SetWidth(config.width)
			end

			Castbar.Text = ns.CreateFontString(Castbar, 16, "LEFT")
Not tested. If it doesn't work, post the actual error message you get from BugSack, or a screenshot if there is no error message but things are not in the right place.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote