View Single Post
11-11-22, 10:30 AM   #1
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2011
Posts: 37
visibleAuras in ouf 11

I do this to force nameplates aura icon justify to center, but visibleAuras was removed in ouf 11, dunno what new argument should i replaced

Code:
local function PreSetPosition(self, max)
	return 1, self.visibleAuras
end

local function SetPosition(self, from, to)
	for i = from, to do
		local button = self[i]
		if not button then break end

		if i == 1 then
			button:SetPoint("CENTER", -(((self.size + self.spacing) * (to - 1)) / 2), 0)
		else
			button:SetPoint("LEFT", self[i-1], "RIGHT", self.spacing, 0)
		end
	end
end
  Reply With Quote