From 498b5ddf2e5343a57d4ddf3b42b0715e6a6ce67d Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sun, 19 Jul 2026 09:59:56 +0200 Subject: [PATCH] Add files via upload --- .../Interface/Addons/SuperAPI/SuperAPI.lua | 22 +++++++++++++++++++ .../Addons/SuperAPI/SuperAPIOptions.lua | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Payload/Interface/Addons/SuperAPI/SuperAPI.lua b/Payload/Interface/Addons/SuperAPI/SuperAPI.lua index d850295..0161abd 100644 --- a/Payload/Interface/Addons/SuperAPI/SuperAPI.lua +++ b/Payload/Interface/Addons/SuperAPI/SuperAPI.lua @@ -2,7 +2,29 @@ local version = tonumber(SUPERWOW_VERSION) if not version or version < 2.2 then + StaticPopupDialogs["UPDATE_SUPERWOW"] = { + text = "No SuperWoW detected. Please download latest version.", + button1 = "Download", + button2 = TEXT(IGNORE), + OnAccept = function(data) + local url = "https://github.com/balakethelock/SuperWoW/releases/tag/Release" + + if not ChatFrameEditBox:IsVisible() then + ChatFrameEditBox:Show() + end + + ChatFrameEditBox:SetText(url) + ChatFrameEditBox:SetFocus() + ChatFrameEditBox:HighlightText() + end, + timeout = 0, + exclusive = 1, + whileDead = 1, + hideOnEscape = 1 + }; + DEFAULT_CHAT_FRAME:AddMessage("No SuperWoW detected. Please download latest version https://github.com/balakethelock/SuperWoW "); + StaticPopup_Show("UPDATE_SUPERWOW"); return end diff --git a/Payload/Interface/Addons/SuperAPI/SuperAPIOptions.lua b/Payload/Interface/Addons/SuperAPI/SuperAPIOptions.lua index d1d9413..3fabab4 100644 --- a/Payload/Interface/Addons/SuperAPI/SuperAPIOptions.lua +++ b/Payload/Interface/Addons/SuperAPI/SuperAPIOptions.lua @@ -1,5 +1,5 @@ -- No superwow, no superapi -if not SetAutoloot then +if not SuperAPI then return end