Fixed initial positions for all bars
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user