Added options to adjust the vertical and horizontal growth direction
This commit is contained in:
@@ -147,9 +147,7 @@ function Bartender4.Bar:Create(id, config, name)
|
||||
overlay:SetScript("OnClick", barOnClick)
|
||||
|
||||
overlay:SetFrameLevel(bar:GetFrameLevel() + 10)
|
||||
overlay:ClearAllPoints()
|
||||
local anchor = bar:GetAnchor()
|
||||
overlay:SetPoint(anchor, bar, anchor)
|
||||
bar:AnchorOverlay()
|
||||
overlay:Hide()
|
||||
|
||||
bar.elapsed = 0
|
||||
@@ -200,6 +198,12 @@ function Bar:GetAnchor()
|
||||
return ((self.config.position.growVertical == "DOWN") and "TOP" or "BOTTOM") .. ((self.config.position.growHorizontal == "RIGHT") and "LEFT" or "RIGHT")
|
||||
end
|
||||
|
||||
function Bar:AnchorOverlay()
|
||||
self.overlay:ClearAllPoints()
|
||||
local anchor = self:GetAnchor()
|
||||
self.overlay:SetPoint(anchor, self, anchor)
|
||||
end
|
||||
|
||||
function Bar:UpgradeConfig()
|
||||
local version = self.config.version or 1
|
||||
if version < 2 then
|
||||
|
||||
Reference in New Issue
Block a user