Quantcast

- TitanConfig : Cleanup history; add clarity to BG / Arena top bar hide

urnati [04-20-23 - 15:39]
- TitanConfig : Cleanup history; add clarity to BG / Arena top bar hide
- TitanLDB : Pull Notes from TOC to show in Config > Plugins to help user determine which addon is selected
Filename
Titan/Titan.toc
Titan/TitanConfig.lua
Titan/TitanLDB.lua
diff --git a/Titan/Titan.toc b/Titan/Titan.toc
index b27708e..96e86b8 100644
--- a/Titan/Titan.toc
+++ b/Titan/Titan.toc
@@ -32,7 +32,7 @@ locale\Localization.CN.lua
 locale\Localization.DE.lua
 locale\Localization.ES.lua
 locale\Localization.FR.lua
-locale\Localization.IT.lua
+locale\Localization.IT.lua
 locale\Localization.KR.lua
 locale\Localization.MX.lua
 locale\Localization.RU.lua
diff --git a/Titan/TitanConfig.lua b/Titan/TitanConfig.lua
index 27bfaa2..3eb9a77 100644
--- a/Titan/TitanConfig.lua
+++ b/Titan/TitanConfig.lua
@@ -35,18 +35,18 @@ local notes = ""
 local changes = ""
 do -- recent change history
 changes = changes
-	..TitanUtils_GetGoldText("7.00.00.100007 : 2023/03/31\n")
+	..TitanUtils_GetGoldText("7.00.01.100007 : 2023/03/31\n")
 	..TitanUtils_GetGreenText("Titan : \n")
 	..TitanUtils_GetHighlightText(""
 		.."- NEW : 10 Short bars! See new consolidated Configuration > Titan Bar Help for enabling and using.\n"
 		.."- NEW : Skins OR solid color selectable in Config - Global or per bar. \n"
 		.."- NEW : Can Hide any Titan bar by right click on the Titan bar (not a plugin) then click Hide.\n"
 		.."- NEW : Hide in Combat is now selectable in Config - Global or per bar.\n"
-		.."- NOTE : Solid colors are done via the default color picker. Download an enhacned color picker for more options.\n"
-		.."- NOTE : Downgrading from 7.xx to 6.xx bars - Prior to downgrading, place any plugins on a short bar to one of the original full width Titan Bars or Hide the plugin. \nTitan 6.xx will throw an error IF any plugin is assigned to any Short Bar. If Titan throws an error, wipe the Titan saved variables.\n"
+		.."- NOTE : Solid colors are done via the default color picker. Download an enhanced color picker for more options.\n"
+		.."- NOTE : Downgrading from 7.xx to 6.xx bars - Prior to downgrading, move any plugins on a short bar to one of the original full width Titan Bars or Hide the plugin. \nTitan 6.xx will throw an error IF any plugin is assigned to any Short Bar. If Titan throws an error, wipe the Titan saved variables.\n"
 		.."- Configuration > Bars has a new consolidated config for all Titan bars.\n"
 		.."- Configuration > Transparency moved into Bars.\n"
-		.."- Configuration > Titan Bar Help has details on using Titan bars.\n"
+		.."- Configuration > Titan Panel Help has details on using Titan bars.\n"
 		.."- Configuration > Skins shows available skins.\n"
 		.."- Remove adjustment of XP & status bars and Bag & Menu buttons.\n"
 		.."- Remove unused timers; only LDB timer left.\n"
@@ -1286,20 +1286,6 @@ local optionsGlobals = {
 			type = "header",
 			name = L["TITAN_PANEL_MENU_GLOBAL_SKIN_TITLE"],
 		},
---[===[
-		setskinuseglobal = {
-			name = L["TITAN_PANEL_MENU_GLOBAL_SKIN"],
-			desc = L["TITAN_PANEL_MENU_GLOBAL_SKIN_TIP"],
-			order = 15, type = "toggle", width = "full",
-			get = function() return TitanPanelGetVar("UseGlobalTexture") end,
-			set = function() TitanPanelToggleVar("UseGlobalTexture");
-				for idx, v in pairs (TitanBarData) do
-					TitanPanel_SetBarTexture(idx)
---					TitanPanel_SetTexture(idx)
-				end
-			end,
-		},
---]===]
 		setskinuseglobal = {
 			name = "", --L["TITAN_PANEL_MENU_GLOBAL_SKIN"],
 			desc = "", --L["TITAN_PANEL_MENU_GLOBAL_SKIN_TIP"],
@@ -1385,14 +1371,6 @@ local optionsGlobals = {
 			hasAlpha = true,
 			get = function()
 				local color = TitanBarDataVars["Global"].color
---[===[
-print("Color:"
-.." "..tostring(format("%0.1f", color.r))..""
-.." "..tostring(format("%0.1f", color.g))..""
-.." "..tostring(format("%0.1f", color.b))..""
-.." "..tostring(format("%0.1f", color.alpha))..""
-)
---]===]
 				return color.r,
 					color.g,
 					color.b,
@@ -1441,11 +1419,15 @@ print("Color new:"
 		confarenadesc = {
 			order = 201, width = "full",
 			type = "header",
-			name = BATTLEGROUND.." / "..ARENA, --L["TITAN_PANEL_MENU_COMMAND"],
+			name = BATTLEGROUND.." / "..ARENA,
 		},
 		setarenauseglobal = {
-			name = HIDE, --L["TITAN_PANEL_MENU_HIDE_IN_COMBAT"],
-			desc = "Hide in Battleground or Arena",  --L["TITAN_PANEL_MENU_HIDE_IN_COMBAT_DESC"],
+			name = HIDE,
+			desc = "Hide"
+				.." "..TitanBarData[TitanVariables_GetFrameName("Bar")].locale_name
+				.." and"
+				.." "..TitanBarData[TitanVariables_GetFrameName("Bar2")].locale_name
+				.." in Battleground or Arena",
 			order = 205, type = "toggle", width = "full",
 			get = function() return TitanPanelGetVar("HideBarsInPVP") end,
 			set = function()
diff --git a/Titan/TitanLDB.lua b/Titan/TitanLDB.lua
index 584a1f5..bd1a942 100644
--- a/Titan/TitanLDB.lua
+++ b/Titan/TitanLDB.lua
@@ -758,6 +758,7 @@ function LDBToTitan:TitanLDBCreateObject(_, name, obj)
 							or (obj.version)
 							or ""
 		registry["version"]= addonversion;
+		registry["notes"]= (GetAddOnMetadata(tempname, "Notes") or "").."\n"
 --	end

 	-- Depending on the LDB type set the control and saved Variables appropriately