nothing to see here, just storing progress before errors sneak in!

This commit is contained in:
Hendrik Leppkes
2007-11-30 17:43:02 +00:00
parent cd9e02cd5b
commit 75deac4e1e
4 changed files with 97 additions and 4 deletions
+9 -2
View File
@@ -118,8 +118,7 @@ function Bar:LoadPosition()
local x, y, s = pos.x, pos.y, UIParent:GetEffectiveScale()
local point, relPoint = pos.point, pos.relPoint
x, y = x/s, y/s
self:ClearAllPoints()
self:SetPoint(point, UIParent, relPoint, x, y)
self:ClearSetPoint(point, UIParent, relPoint, x, y)
end
function Bar:SavePosition()
@@ -136,3 +135,11 @@ function Bar:SetSize(width, height)
self:SetWidth(width)
self:SetHeight(height or width)
end
--[[
Lazyness functions
]]
function Bar:ClearSetPoint(...)
self:ClearAllPoints()
self:SetPoint(...)
end