Modules/NamePlates: Add support for new nameplates

This commit is contained in:
andrew6180
2024-04-09 16:41:00 -07:00
parent 7ca1b5967b
commit d2e86421cc
5 changed files with 44 additions and 31 deletions
+8 -1
View File
@@ -166,7 +166,14 @@ E.PopupDialogs.DISABLE_INCOMPATIBLE_ADDON = {
E.PopupDialogs.INCOMPATIBLE_ADDON = {
text = L["INCOMPATIBLE_ADDON"],
OnAccept = function() DisableAddOn(E.PopupDialogs.INCOMPATIBLE_ADDON.addon) ReloadUI() end,
OnAccept = function()
if E.PopupDialogs.INCOMPATIBLE_ADDON.addon == "Ascension_NamePlates" then
C_CVar.Set("useNewNamePlates", "0")
else
DisableAddOn(E.PopupDialogs.INCOMPATIBLE_ADDON.addon)
end
ReloadUI()
end,
OnCancel = function() E.private[strlower(E.PopupDialogs.INCOMPATIBLE_ADDON.module)].enable = false ReloadUI() end,
button3 = L["Disable Warning"],
OnAlt = function ()