Fix OnClick for Dragonflight
This commit is contained in:
parent
81e9724a29
commit
24a9da55a2
26
broker.lua
26
broker.lua
|
@ -8,13 +8,23 @@ local folder = addonName ~= childName and format("Interface\\AddOns\\%s\\%s", a
|
||||||
local function OnClick(self, button)
|
local function OnClick(self, button)
|
||||||
if(button == 'RightButton') then
|
if(button == 'RightButton') then
|
||||||
if(IsShiftKeyDown()) then
|
if(IsShiftKeyDown()) then
|
||||||
zzCoords_MinimapToggle()
|
-- zzCoords_MinimapToggle()
|
||||||
else
|
else
|
||||||
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
|
if(not InCombatLockdown()) then
|
||||||
InterfaceOptionsFrame:Hide()
|
if(SettingsPanel) then
|
||||||
else
|
if(SettingsPanel:IsVisible()) then
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName)
|
SettingsPanel:Hide()
|
||||||
InterfaceOptionsFrame_OpenToCategory(childName) -- Twice because of a bug in InterfaceOptionsFrame_OpenToCategory
|
else
|
||||||
|
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
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif(button == "LeftButton") then
|
elseif(button == "LeftButton") then
|
||||||
|
@ -40,8 +50,8 @@ local function OnTooltipShow(tip)
|
||||||
tip:AddLine(format("%s: %s",childName, child['playerCoords']))
|
tip:AddLine(format("%s: %s",childName, child['playerCoords']))
|
||||||
tip:AddLine(L['HINT'])
|
tip:AddLine(L['HINT'])
|
||||||
tip:AddLine(L['HINT2'])
|
tip:AddLine(L['HINT2'])
|
||||||
tip:AddLine(L['HINT3'])
|
-- tip:AddLine(L['HINT3'])
|
||||||
tip:AddLine(L['HINT4'])
|
-- tip:AddLine(L['HINT4'])
|
||||||
end
|
end
|
||||||
child['ldb'] = { -- https://github.com/tekkub/libdatabroker-1-1/wiki/Data-Specifications
|
child['ldb'] = { -- https://github.com/tekkub/libdatabroker-1-1/wiki/Data-Specifications
|
||||||
['type'] = 'data source', -- required: 'data source' or 'launcher'
|
['type'] = 'data source', -- required: 'data source' or 'launcher'
|
||||||
|
|
Loading…
Reference in New Issue