From 3e2594289d29d993ba3027288ab2ee29366272fc Mon Sep 17 00:00:00 2001 From: Mikeprod Date: Sat, 29 Oct 2016 11:44:26 +0200 Subject: [PATCH] TOC bump + /xb added with temprorary fix to open options --- XIV_Databar.toc | 2 +- core.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/XIV_Databar.toc b/XIV_Databar.toc index 296df27..a3c5c2c 100644 --- a/XIV_Databar.toc +++ b/XIV_Databar.toc @@ -1,4 +1,4 @@ -## Interface: 70300 +## Interface: 70100 ## Title: XIV_Databar ## Author: |cffbbbbbbMille|cff990000XIV|r ## Version: 2.0.5 diff --git a/core.lua b/core.lua index a0c52de..1f474ca 100644 --- a/core.lua +++ b/core.lua @@ -125,6 +125,7 @@ function XIVBar:OnInitialize() self.timerRefresh = false self:RegisterChatCommand('xivbar', 'ToggleConfig') + self:RegisterChatCommand('xb', 'ToggleConfig') end function XIVBar:OnEnable() @@ -144,7 +145,9 @@ function XIVBar:OnEnable() end function XIVBar:ToggleConfig() - InterfaceOptionsFrame_OpenToCategory(self.optionsFrame) + InterfaceOptionsFrame.selectedTab = 2; + InterfaceOptionsFrame:Show()--weird hack ; options registration is wrong in some way + InterfaceOptionsFrame_OpenToCategory("XIV Bar") end function XIVBar:SetColor(name, r, g, b, a) -- 1.7.9.5