removed the order hall bar when databar on top
Mikeprod [09-02-16 - 15:58]
removed the order hall bar when databar on top
diff --git a/core.lua b/core.lua
index 9bb95c7..649e0e2 100644
--- a/core.lua
+++ b/core.lua
@@ -238,11 +238,23 @@ function XIVBar:GetHeight()
end
function XIVBar:Refresh()
+ local b = OrderHallCommandBar
+
if self.frames.bar == nil then return; end
self.miniTextPosition = "TOP"
+ if b and not b:IsVisible() and self.OHBarHide then
+ b:SetScript("OnShow", b.Show)
+ self.OHBarHide = false
+ end
if self.db.profile.general.barPosition == 'TOP' then
self.miniTextPosition = 'BOTTOM'
+ if b and b:IsVisible() then
+ b:UnregisterAllEvents()
+ b:SetScript("OnShow", b.Hide)
+ b:Hide()
+ self.OHBarHide = true
+ end
end
local barColor = self.db.profile.color.barColor