diff --git a/Titan/TitanConfig.lua b/Titan/TitanConfig.lua
index b5f9032..b16a101 100644
--- a/Titan/TitanConfig.lua
+++ b/Titan/TitanConfig.lua
@@ -77,6 +77,54 @@ changes = changes
.."\n\n"
end
+local function TitanPanel_ScreenAdjustReload()
+ if TitanPanelGetVar("ScreenAdjust") then
+ -- if set then clear it - the screen will adjust
+ TitanPanelBarButton_ToggleScreenAdjust()
+ else
+ -- if NOT set then need a reload - the screen will NOT adjust
+ StaticPopupDialogs["TITAN_RELOAD"] = {
+ text = TitanUtils_GetNormalText(L["TITAN_PANEL_MENU_TITLE"]).."\n\n"
+ ..L["TITAN_PANEL_RELOAD"],
+ button1 = ACCEPT,
+ button2 = CANCEL,
+ OnAccept = function(self)
+ TitanPanelToggleVar("ScreenAdjust");
+ ReloadUI();
+ end,
+ showAlert = 1,
+ timeout = 0,
+ whileDead = 1,
+ hideOnEscape = 1
+ };
+ StaticPopup_Show("TITAN_RELOAD");
+ end
+end
+local function TitanPanel_AuxScreenAdjustReload()
+ if TitanPanelGetVar("AuxScreenAdjust") then
+ -- if set then clear it - the screen will adjust
+ TitanPanelBarButton_ToggleAuxScreenAdjust()
+ else
+ -- if NOT set then need a reload - the screen will NOT adjust
+ StaticPopupDialogs["TITAN_RELOAD"] = {
+ text = TitanUtils_GetNormalText(L["TITAN_PANEL_MENU_TITLE"]).."\n\n"
+ ..L["TITAN_PANEL_RELOAD"],
+ button1 = ACCEPT,
+ button2 = CANCEL,
+ OnAccept = function(self)
+ TitanPanelToggleVar("AuxScreenAdjust");
+ ReloadUI();
+-- TitanPanelBarButton_ToggleAuxScreenAdjust();
+ end,
+ showAlert = 1,
+ timeout = 0,
+ whileDead = 1,
+ hideOnEscape = 1
+ };
+ StaticPopup_Show("TITAN_RELOAD");
+ end
+end
+
TITAN_PANEL_CONFIG = {
topic = {
About = L["TITAN_PANEL"],
@@ -969,6 +1017,7 @@ print("Color new:"
.." "..TitanBarData[TitanVariables_GetFrameName("Bar2")].locale_name
.." in "..BATTLEGROUND.." / "..ARENA,
order = 205, type = "toggle", width = "full",
+ disabled = (TITAN_ID == "TitanClassic"),
get = function() return TitanPanelGetVar("HideBarsInPVP") end,
set = function()
TitanPanelToggleVar("HideBarsInPVP")
@@ -976,6 +1025,40 @@ print("Color new:"
.." "..tostring(TitanPanelGetVar("HideBarsInPVP")))
end,
},
+ topbarspacer = { -- spacer
+ order = 300, type = "description", width = "full",
+ name = " ",
+ },
+ conftopbardesc = {
+ order = 301, width = "full",
+ type = "header",
+ name = L["TITAN_PANEL_MENU_TOP_BARS"],
+ },
+ settopbar = {
+ name = L["TITAN_PANEL_MENU_DISABLE_PUSH"] ,
+ desc = L["TITAN_PANEL_MENU_DISABLE_PUSH"],
+ order = 305, type = "toggle", width = "full",
+ disabled = (TITAN_ID == "Titan"),
+ get = function() return TitanPanelGetVar("ScreenAdjust") end,
+ set = function() TitanPanel_ScreenAdjustReload() end,
+ },
+ bottombarspacer = { -- spacer
+ order = 400, type = "description", width = "full",
+ name = " ",
+ },
+ confbottombardesc = {
+ order = 401, width = "full",
+ type = "header",
+ name = L["TITAN_PANEL_MENU_BOTTOM_BARS"],
+ },
+ setbottombar = {
+ name = L["TITAN_PANEL_MENU_DISABLE_PUSH"] ,
+ desc = L["TITAN_PANEL_MENU_DISABLE_PUSH"],
+ order = 405, type = "toggle", width = "full",
+ disabled = (TITAN_ID == "Titan"),
+ get = function() return TitanPanelGetVar("AuxScreenAdjust") end,
+ set = function() TitanPanel_AuxScreenAdjustReload() end,
+ },
}
}
-------------