All pastes #58543 Raw Edit

cladhaire

public lua v1 · immutable
#58543 ·published 2006-05-24 02:55 UTC
rendered paste body
	SavePosition = function(self)			local f = self.master		local x,y = f:GetLeft(), f:GetTop()		local s = f:GetEffectiveScale()				x,y = x*s,y*s				self:SetOpt("PosX", x)		self:SetOpt("PosY", y)	end,	RestorePosition = function(self)		local x = self.opt.PosX		local y = self.opt.PosY				if not x or not y then return end						local f = PerfectRaidFrame		local s = f:GetEffectiveScale()			x,y = x/s,y/s			f:ClearAllPoints()		f:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", x, y)	end,