Add popup to disable platebuffs or kui if both enabled
This commit is contained in:
@@ -1251,3 +1251,19 @@ do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
StaticPopupDialogs.KUINAMEPLATES_INCOMPATIBLE = {
|
||||||
|
text = "KuiNameplates is not compatible with PlateBuffs. Please disable PlateBuffs or KuiNameplates.",
|
||||||
|
button1 = "Disable PlateBuffs",
|
||||||
|
button2 = "Disable KuiNameplates",
|
||||||
|
whileDead = 1,
|
||||||
|
OnButton1 = function()
|
||||||
|
DisableAddOn("PlateBuffs")
|
||||||
|
ReloadUI()
|
||||||
|
end,
|
||||||
|
OnButton2 = function()
|
||||||
|
DisableAddOn("KuiNameplates")
|
||||||
|
ReloadUI()
|
||||||
|
end,
|
||||||
|
hideOnEscape = 0,
|
||||||
|
}
|
||||||
@@ -500,6 +500,10 @@ function addon:OnInitialize()
|
|||||||
-- on messages
|
-- on messages
|
||||||
addon.Castbar = addon:GetModule("Castbar")
|
addon.Castbar = addon:GetModule("Castbar")
|
||||||
addon.TankModule = addon:GetModule("TankMode")
|
addon.TankModule = addon:GetModule("TankMode")
|
||||||
|
|
||||||
|
if IsAddOnLoaded("PlateBuffs") then
|
||||||
|
StaticPopup_Show("KUINAMEPLATES_INCOMPATIBLE")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
---------------------------------------------------------------------- enable --
|
---------------------------------------------------------------------- enable --
|
||||||
function addon:OnEnable()
|
function addon:OnEnable()
|
||||||
|
|||||||
Reference in New Issue
Block a user