Fixed initial positions for all bars

This commit is contained in:
Hendrik Leppkes
2009-02-21 15:53:41 +01:00
parent 204ac6a671
commit 044899f525
7 changed files with 16 additions and 14 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ end
function ActionBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then initialPosition(self) end
if not self.config.position.x then initialPosition(self) end
self:UpdateButtons()
self:UpdateSelfCast(true)
+1 -1
View File
@@ -43,7 +43,7 @@ end
function BagBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
if not self.config.position.x then
self:ClearSetPoint("CENTER", 142, -18)
self:SavePosition()
end
+6 -4
View File
@@ -240,10 +240,12 @@ function Bar:UpgradeConfig()
self:SetScale(pos.scale)
local x, y, s = pos.x, pos.y, self:GetEffectiveScale()
local point, relPoint = pos.point, pos.relPoint
x, y = x/s, y/s
self:ClearSetPoint(point, UIParent, relPoint, x, y)
self:SavePosition()
pos.relPoint = nil
if x and y and point and relPoint then
x, y = x/s, y/s
self:ClearSetPoint(point, UIParent, relPoint, x, y)
self:SavePosition()
pos.relPoint = nil
end
end
end
if version < 3 then
+2 -2
View File
@@ -72,8 +72,8 @@ MicroMenuBar.vpad_offset = -21
function MicroMenuBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
self:ClearSetPoint("CENTER", -105, 27)
if not self.config.position.x then
self:ClearSetPoint("CENTER", -105, 30)
self:SavePosition()
end
+1 -1
View File
@@ -95,7 +95,7 @@ end
function PetBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
if not self.config.position.x then
self:ClearSetPoint("CENTER", 0, 70)
self:SavePosition()
end
+1 -1
View File
@@ -208,7 +208,7 @@ end
function StanceBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
if not self.config.position.x then
self:ClearSetPoint("CENTER", -55, -10)
self:SavePosition()
end
+4 -4
View File
@@ -65,14 +65,14 @@ function VehicleBarMod:ApplyConfig()
self.bar:ApplyConfig(self.db.profile)
end
VehicleBar.button_width = 30
VehicleBar.button_height = 30
VehicleBar.button_width = 40
VehicleBar.button_height = 40
VehicleBar.LBFOverride = true
function VehicleBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
if not self.config.position then
self:ClearSetPoint("CENTER", -105, 27)
if not self.config.position.x then
self:ClearSetPoint("CENTER", 120, 27)
self:SavePosition()
end