Clicking on the minimap while the options panel is open will close it

This commit is contained in:
Tercio Jose
2021-07-15 14:25:52 -03:00
parent 10b1c14f2d
commit 9a69703ea7
+8
View File
@@ -1347,6 +1347,14 @@
end
--> 1 = open options panel
if (_detalhes.minimap.onclick_what_todo == 1) then
if (_G.DetailsOptionsWindow) then
if (_G.DetailsOptionsWindow:IsShown()) then
_G.DetailsOptionsWindow:Hide()
return
end
end
local lower_instance = _detalhes:GetLowerInstanceNumber()
if (not lower_instance) then
local instance = _detalhes:GetInstance (1)