From d2a22784017f7b024f4f909ad62fa98d6061f8de Mon Sep 17 00:00:00 2001 From: urnati Date: Wed, 2 Nov 2022 20:06:20 -0400 Subject: [PATCH] - 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 --- TitanLocation/TitanLocation.lua | 8 +++++--- TitanLootType/TitanLootType.lua | 11 ++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) 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()); -- 1.7.9.5