Quantcast

- Location : Add back the option to not show coords on world map

urnati [11-03-22 - 00:06]
- Location : Add back the option to not show coords on world map
- Location : Change coord on world map to use frame elements to position rather than outer frame and offsets; allows better positioning when scaling UI
- LootType : Add current spec into option to show loot spec; change option to Show Specification
Filename
TitanLocation/TitanLocation.lua
TitanLootType/TitanLootType.lua
diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua
index 6b4b12c..a99a0e7 100755
--- a/TitanLocation/TitanLocation.lua
+++ b/TitanLocation/TitanLocation.lua
@@ -308,13 +308,13 @@ function TitanPanelRightClickMenu_PrepareLocationMenu()
 			end
 			info.checked = TitanGetVar(TITAN_LOCATION_ID, "ShowCoordsText");
 			TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());
---[=[
 			info = {};
 			info.text = L["TITAN_LOCATION_MENU_SHOW_COORDS_ON_MAP_TEXT"];
 			info.func = TitanPanelLocationButton_ToggleLocationOnMap;
 			info.checked = TitanGetVar(TITAN_LOCATION_ID, "ShowCoordsOnMap");
 			TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());

+--[=[
 			info = {};
 			info.text = L["TITAN_LOCATION_MENU_SHOW_LOC_ON_MINIMAP_TEXT"];
 			info.func = function()
@@ -553,8 +553,10 @@ function TitanPanelLocation_CreateMapFrames()
 		hooksecurefunc(WorldMapFrame.BorderFrame.MaximizeMinimizeFrame, "Maximize", function()
 			playertext:ClearAllPoints();
 			cursortext:ClearAllPoints();
-			playertext:SetPoint("TOPRIGHT", WorldMapFrame, "TOPRIGHT", -10, -28)
-			cursortext:SetPoint("TOPRIGHT", WorldMapFrame, "TOPRIGHT", -10, -43)
+			playertext:SetPoint("LEFT", WorldMapFrame.BorderFrame.MaximizeMinimizeFrame, "TOPRIGHT", 0, 0)
+--			playertext:SetPoint("TOPRIGHT", WorldMapFrame, "TOPRIGHT", -10, -28)
+			cursortext:SetPoint("RIGHT", WorldMapFrame.BorderFrame.Tutorial, "LEFT", 0, 8)
+--			cursortext:SetPoint("TOPRIGHT", WorldMapFrame, "TOPRIGHT", -10, -43)
 --[==[
 print("TLoc max"
 .." p "..tostring(playertext and true or false).." "
diff --git a/TitanLootType/TitanLootType.lua b/TitanLootType/TitanLootType.lua
index 890964f..8437aaf 100644
--- a/TitanLootType/TitanLootType.lua
+++ b/TitanLootType/TitanLootType.lua
@@ -224,8 +224,13 @@ print("T Loot"
 		ltd = ""
 	end

-	csl = (SPECIALIZATION or "Spec")..": "
-	csd = current_spec
+	if show_loot_spec then
+		csl = (SPECIALIZATION or "Spec")..": "
+		csd = current_spec
+	else
+		csl = ""
+		csd = ""
+	end

 	if show_loot_spec then
 		lsl = loot_label
@@ -530,7 +535,7 @@ function TitanPanelRightClickMenu_PrepareLootTypeMenu()
 		TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());

 		info = {};
-		info.text = SHOW.." "..(SELECT_LOOT_SPECIALIZATION or "Loot Spec")
+		info.text = SHOW.." "..(SPECIALIZATION or "Spec")
 		info.func = function() TitanPanelRightClickMenu_ToggleVar({TITAN_LOOTTYPE_ID, "ShowLootSpec"}) end
 		info.checked = TitanGetVar(TITAN_LOOTTYPE_ID, "ShowLootSpec")
 		TitanPanelRightClickMenu_AddButton(info, TitanPanelRightClickMenu_GetDropdownLevel());