This commit is contained in:
NoM0Re
2025-10-09 21:17:44 +02:00
committed by GitHub
parent ad6a8b3cab
commit 7c7fafe5a8
46 changed files with 768 additions and 212 deletions
+20
View File
@@ -1629,6 +1629,26 @@ local methods = {
end
end,
Import = function(self)
--[[if WeakAuras.IsClassicEra() and C_GameRules.IsHardcoreActive() then
StaticPopupDialogs["WEAKAURAS_CONFIRM_IMPORT_HARDCORE"] = {
text = L["You are about to Import an Aura with custom Lua code on a Hardcore server.\n\n|cFFFF0000There is a risk the custom code could be used to kill your hardcore character!|r\n\nWould you like to continue?"],
button1 = L["Import"],
button2 = L["Cancel"],
OnShow = function(self)
self.text:SetFontObject(GameFontNormalLarge)
end,
OnHide = function(self)
self.text:SetFontObject(GameFontNormal)
end,
OnAccept = function()
OptionsPrivate.Private.Threads:Add("import", coroutine.create(function()
self:ImportImpl()
end))
end,
}
StaticPopup_Show("WEAKAURAS_CONFIRM_IMPORT_HARDCORE")
return
end]]
OptionsPrivate.Private.Threads:Add("import", coroutine.create(function()
self:ImportImpl()
end))