From ac6db5a269c45c5e6f7151b43c90be1d8e35c109 Mon Sep 17 00:00:00 2001 From: urnati Date: Sun, 25 Nov 2018 07:28:20 -0500 Subject: [PATCH] Configuration in the Titan menu now goes to the top Titan menu in the Blizz options screen - IF Titan is in the 1st screen (no scrolling needed) --- Titan/TitanPanel.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Titan/TitanPanel.lua b/Titan/TitanPanel.lua index 05f9d23..5ccc45a 100644 --- a/Titan/TitanPanel.lua +++ b/Titan/TitanPanel.lua @@ -304,7 +304,7 @@ _G[TITAN_PANEL_CONTROL]:RegisterEvent("CVAR_UPDATE"); _G[TITAN_PANEL_CONTROL]:RegisterEvent("PLAYER_LOGOUT"); _G[TITAN_PANEL_CONTROL]:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED"); _G[TITAN_PANEL_CONTROL]:RegisterEvent("UNIT_ENTERED_VEHICLE"); -_G[TITAN_PANEL_CONTROL]:RegisterEvent("UNIT_EXITED_VEHICLE"); +--_G[TITAN_PANEL_CONTROL]:RegisterEvent("UNIT_EXITED_VEHICLE"); _G[TITAN_PANEL_CONTROL]:SetScript("OnEvent", function(_, event, ...) _G[TITAN_PANEL_CONTROL][event](_G[TITAN_PANEL_CONTROL], ...) end) @@ -527,7 +527,7 @@ function TitanPanelBarButton:PLAYER_REGEN_ENABLED() -- Outside combat check to see if frames need correction TitanPanel_AdjustFrames() end - +--[ function TitanPanelBarButton:ACTIVE_TALENT_GROUP_CHANGED() TitanMovable_AdjustTimer("DualSpec") end @@ -541,6 +541,7 @@ function TitanPanelBarButton:UNIT_EXITED_VEHICLE(self, ...) -- A combat check will be done inside the adjust TitanPanel_AdjustFrames() end +--]] -- function TitanPanelBarButton:PET_BATTLE_OPENING_START() -- TitanDebug("Pet_battle start: ") @@ -1712,7 +1713,8 @@ local function TitanPanel_MainMenu() info.text = L["TITAN_PANEL_MENU_CONFIGURATION"]; info.value = "Bars"; info.func = function() - InterfaceOptionsFrame_OpenToCategory(L["TITAN_PANEL_MENU_TOP_BARS"]) + InterfaceOptionsFrame_OpenToCategory(L["TITAN_PANEL_MENU_TOP_BARS"]); + InterfaceOptionsFrame_OpenToCategory(L["TITAN_PANEL_MENU_TOP_BARS"]); -- hack for a Blizz bug... end L_UIDropDownMenu_AddButton(info); -- 1.7.9.5