Add popup to disable platebuffs or kui if both enabled

This commit is contained in:
andrew6180
2025-07-29 09:16:04 -07:00
parent ae058b6fc7
commit 1c881ef673
2 changed files with 21 additions and 1 deletions
+17 -1
View File
@@ -1250,4 +1250,20 @@ do
UpdateFrameSize
)
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,
}
+4
View File
@@ -500,6 +500,10 @@ function addon:OnInitialize()
-- on messages
addon.Castbar = addon:GetModule("Castbar")
addon.TankModule = addon:GetModule("TankMode")
if IsAddOnLoaded("PlateBuffs") then
StaticPopup_Show("KUINAMEPLATES_INCOMPATIBLE")
end
end
---------------------------------------------------------------------- enable --
function addon:OnEnable()