Compare commits

...

2 Commits

Author SHA1 Message Date
Robin Hüskes d43427c8d3 Change filemode 2022-10-06 18:42:09 +02:00
Robin Hüskes ee082d2568 Rewrite Onclick Settings to not open/close in combat 2022-10-06 18:41:17 +02:00
5 changed files with 13 additions and 11 deletions

View File

@ -23,14 +23,15 @@ function lib:DefaultOnClick(_, button, addon, childName)
end
else
if(not InCombatLockdown()) then
if(SettingsPanel and SettingsPanel.CloseButton:IsVisible()) then
if(SettingsPanel) then
if(SettingsPanel:IsVisible()) then
SettingsPanel:Hide()
elseif(InterfaceOptionsFrame and InterfaceOptionsFrame:IsVisible()) then
InterfaceOptionsFrame:Hide()
end
else
if(Settings and Settings.OpenToCategory) then
Settings.OpenToCategory(childName)
end
elseif(InterfaceOptionsFrame) then
if(InterfaceOptionsFrame:IsVisible()) then
InterfaceOptionsFrame:Hide()
else
InterfaceOptionsFrame_OpenToCategory(childName)
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
@ -38,6 +39,7 @@ function lib:DefaultOnClick(_, button, addon, childName)
end
end
end
end
function lib:DefaultOnText(objname, message)
local ldbobj = lib:GetLDB(objname)
if(ldbobj['text'] ~= message) then

0
zzLib-Classic.toc Normal file → Executable file
View File

0
zzLib-Wrath.toc Normal file → Executable file
View File

0
zzLib.lua Normal file → Executable file
View File

0
zzLib.toc Normal file → Executable file
View File