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
|
||||
zzCoords_MinimapToggle()
|
||||
else
|
||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
|
||||
InterfaceOptionsFrame:Hide()
|
||||
else
|
||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
||||
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
||||
end
|
||||
end
|
||||
elseif(button == "LeftButton") then
|
||||
if(IsShiftKeyDown()) then
|
||||
|
|
Loading…
Reference in New Issue