Skip to content

Commit

Permalink
Merge pull request #1 from Scotsoo/toggle-show-hide
Browse files Browse the repository at this point in the history
Toggle show hide with ctrl+click minimap icon
  • Loading branch information
Tercioo authored May 7, 2019
2 parents cc57155 + 2a0d8fa commit 78c96a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/windows.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -3410,7 +3413,7 @@
_detalhes:ShutDownAllInstances()
end
end

elseif (button == "RightButton") then

GameTooltip:Hide()
Expand Down Expand Up @@ -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,
})

Expand Down Expand Up @@ -7466,7 +7470,3 @@ function Details:ShowApi2()


end




0 comments on commit 78c96a7

Please sign in to comment.