Merge pull request #1 from Scotsoo/toggle-show-hide

Toggle show hide with ctrl+click minimap icon
This commit is contained in:
Tercio Jose
2019-05-07 09:02:56 -03:00
committed by GitHub
+6 -6
View File
@@ -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 ("|cFFCFCFCFctrl + left click|r: show/hide windows")
end,
})
@@ -7466,7 +7470,3 @@ function Details:ShowApi2()
end