Quantcast

- Location : Fix error shown when in instances; Options same in all versions: Show Zone Text shows text or not; Show ONLY subzone removes zone text.

urnati [07-14-24 - 19:04]
- Location : Fix error shown when in instances;  Options same in all versions: Show Zone Text shows text or not; Show ONLY subzone removes zone text.
- AutoHide : Fix error when toggling auto hide.
Filename
Titan/TitanAutoHide.lua
Titan/TitanHistory.lua
TitanLocation/TitanLocation.lua
diff --git a/Titan/TitanAutoHide.lua b/Titan/TitanAutoHide.lua
index afe6341..9bd7b99 100644
--- a/Titan/TitanAutoHide.lua
+++ b/Titan/TitanAutoHide.lua
@@ -146,7 +146,7 @@ OUT:  None
 --]]
 local function Titan_AutoHide_OnClick(self, button)
 	if (button == "LeftButton") then
-		Titan_AutoHide_ToggleAutoHide(self.bar_name);
+		Titan_AutoHide_ToggleAutoHide(self.registry.short_name);
 	end
 end

diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua
index 22041f7..e1ad67c 100644
--- a/Titan/TitanHistory.lua
+++ b/Titan/TitanHistory.lua
@@ -15,9 +15,21 @@ Green - 'header' - Titan or plugin
 Highlight - notes. tips. and details
 --]]
 Titan_Global.recent_changes = ""
-.. TitanUtils_GetGoldText("8.0.14 : 2024/07/xx\n")
+.. TitanUtils_GetGoldText("8.0.15 : 2024/07/14\n")
+.. TitanUtils_GetGreenText("Location : \n")
+.. TitanUtils_GetHighlightText(""
+.. "- Fix error shown when in instances.\n"
+.. "- Options same in all versions: Show Zone Text shows text or not; Show ONLY subzone removes zone text.\n"
+)
+.. TitanUtils_GetGreenText("Auto Hide (full bars) : \n")
+.. TitanUtils_GetHighlightText(""
+.. "- Fix error on clicking 'pin' to toggle auto hide.\n"
+)
+.. "\n\n"
+.. TitanUtils_GetGoldText("8.0.14 : 2024/07/12\n")
 .. TitanUtils_GetGreenText("Titan : \n")
 .. TitanUtils_GetHighlightText(""
+.. "- Updated Classic Era version to 1.15.3."
 .. "- AutoHide : Fix tooltip error; shows Enabled / Disabled.\n"
 .. "- Deprecated Titan Child template plugin code removed.\n"
 .. "- Cleanup Titan tool tip code.\n"
@@ -63,33 +75,6 @@ Titan_Global.recent_changes = ""
 .. TitanUtils_GetHighlightText(""
 .. "- TOC update for Cataclysm.\n")
 .. "\n\n"
-.. TitanUtils_GetGoldText("8.0.11 : 2024/04/10\n")
-.. TitanUtils_GetGreenText("Ammo : \n")
-.. TitanUtils_GetHighlightText(""
-.. "- Fix to remove plugin error text when wand (non-ammo) weapon is equipped in Classic (Wrath or Era) .\n")
-.. TitanUtils_GetGreenText("Volume : \n")
-.. TitanUtils_GetHighlightText(""
-.. "- Double click (left) will mute / unmute. Note: tooltip will flash, not sure how to prevent that.\n"
-.. "- Icon should reflect volume % : = 0 | <= 33% | <= 66% | <= 100% .\n"
-)
-.. TitanUtils_GetGreenText("XP : \n")
-    .. TitanUtils_GetHighlightText(""
-        .. "- Do not output time played - can spam Chat.\n"
-        .. "- /played   Use this command instead to see same output.\n"
-    )
-    .. TitanUtils_GetGreenText("Config : \n")
-    .. TitanUtils_GetHighlightText(""
-        .. "- Plugins : Add to Notes <version> <category - Titan menu> <if LDB>.\n"
-        .. "- Skins : Add text to use Bars / Bars - All to change skins.\n"
-    )
-    .. TitanUtils_GetGreenText("Titan : \n")
-    .. TitanUtils_GetHighlightText(""
-        .. "- Changed annotations and comments for better documentation.\n"
-        .. "- Better handling of routines different between retail and Classic API.\n"
-        ..
-        "- Deprecated the Titan 'child' template, it has not been used in years. Template and param will be deleted in a future release.\n"
-    )
-    .. "\n\n"

 --[[ Var Notes
 Use for important notes in the Titan Config About
diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua
index 9e188b7..0fc2fc1 100755
--- a/TitanLocation/TitanLocation.lua
+++ b/TitanLocation/TitanLocation.lua
@@ -422,6 +422,7 @@ local function GetButtonText(id)
 		-- Zone text, if requested
 		if TitanGetVar(TITAN_LOCATION_ID, "ShowZoneText") then
 			zone_text = TitanUtils_ToString(place.zoneText)
+				.." "..TitanUtils_ToString(place.subZoneText)
 			-- overwrite with subZone text, if requested
 			if TitanGetVar(TITAN_LOCATION_ID, "ShowSubZoneText") then
 				if place.subZoneText == "" then
@@ -619,7 +620,7 @@ local function CreateMenu()
 			info.checked = TitanGetVar(TITAN_LOCATION_ID, "ShowZoneText");
 			TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());

-			if TITAN_ID == "TitanClassic" then
+--			if TITAN_ID == "TitanClassic" then
 				info = {};
 				info.text = L["TITAN_LOCATION_MENU_SHOW_SUBZONE_ON_PANEL_TEXT"];
 				info.func = function()
@@ -628,9 +629,9 @@ local function CreateMenu()
 				end
 				info.checked = TitanGetVar(TITAN_LOCATION_ID, "ShowSubZoneText");
 				TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());
-			else
+--			else
 				-- no work needed
-			end
+--			end

 			info = {};
 			info.text = L["TITAN_LOCATION_MENU_SHOW_COORDS_ON_PANEL_TEXT"];
@@ -772,7 +773,9 @@ end
 ---@param self Button
 local function OnLoad(self)
 	local notes = ""
-		.. "Adds coordinates and location information to Titan Panel.\n"
+	.. "Adds coordinates and location information to Titan Panel.\n"
+	.. "Option Show Zone Text shows zone text - or not.\n"
+	.. "- Show ONLY Subzone Text removes zone text from plugin.\n"
 	--		.."- xxx.\n"
 	self.registry = {
 		id = TITAN_LOCATION_ID,