View Single Post
10-27-12, 07:53 PM   #6
burnmaker
A Murloc Raider
Join Date: Nov 2008
Posts: 5
Originally Posted by Phanx View Post
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.

This makes

-------------- [Targetcastbar]----------------
-------------- [Playercastbar]----------------
[Player Frame] ---------------- [Target Frame]

Not

[Player Frame] [ Playercastbar ] [Target Frame]
-------------- [Targetcastbar]----------------

sry
  Reply With Quote