From f1b188038c6a6bf68192f2702266e3a7b38d90c8 Mon Sep 17 00:00:00 2001 From: Scotsoo Date: Sun, 5 May 2019 13:15:35 +0100 Subject: [PATCH 1/2] Functionality to ctrl+click minimap icon to hide/show windows Translations pending --- core/windows.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/windows.lua b/core/windows.lua index a5a9317b4..128886844 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -3384,7 +3384,10 @@ OnClick = function (self, button) if (button == "LeftButton") then - + if (IsControlKeyDown()) then + _detalhes:ToggleWindows() + return + end --> 1 = open options panel if (_detalhes.minimap.onclick_what_todo == 1) then local lower_instance = _detalhes:GetLowerInstanceNumber() @@ -3410,7 +3413,7 @@ _detalhes:ShutDownAllInstances() end end - + elseif (button == "RightButton") then GameTooltip:Hide() @@ -3493,6 +3496,7 @@ tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP12"]) end tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP2"]) + tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP3"]) end, }) @@ -7466,7 +7470,3 @@ function Details:ShowApi2() end - - - - From 2a0d8fa25321222b59c8223c929c1c82bdea78f7 Mon Sep 17 00:00:00 2001 From: Scotsoo Date: Mon, 6 May 2019 17:12:40 +0100 Subject: [PATCH 2/2] Ignoring translations :) --- core/windows.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/windows.lua b/core/windows.lua index 128886844..8a0da08b5 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -3496,7 +3496,7 @@ tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP12"]) end tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP2"]) - tooltip:AddLine (Loc ["STRING_MINIMAP_TOOLTIP3"]) + tooltip:AddLine ("|cFFCFCFCFctrl + left click|r: show/hide windows") end, })