cladhaire
public lua v1 · immutable 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,