Add toggle for options window
This commit is contained in:
parent
48cecd9e76
commit
a7e8cffb1e
|
@ -10,8 +10,12 @@ local function OnClick(self, button)
|
||||||
if(IsShiftKeyDown()) then
|
if(IsShiftKeyDown()) then
|
||||||
zzCoords_MinimapToggle()
|
zzCoords_MinimapToggle()
|
||||||
else
|
else
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
InterfaceOptionsFrame:Hide()
|
||||||
|
else
|
||||||
|
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||||
|
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif(button == "LeftButton") then
|
elseif(button == "LeftButton") then
|
||||||
if(IsShiftKeyDown()) then
|
if(IsShiftKeyDown()) then
|
||||||
|
|
Loading…
Reference in New Issue