From 69d99fe19e34b8d678c967b05337bd526479f778 Mon Sep 17 00:00:00 2001 From: AeroScripts <9335832+AeroScripts@users.noreply.github.com> Date: Mon, 23 Aug 2021 23:02:28 -0400 Subject: [PATCH] Implement API update warning message --- loot.lua | 5 +++++ ui.lua | 2 ++ 2 files changed, 7 insertions(+) diff --git a/loot.lua b/loot.lua index b794018..245e106 100755 --- a/loot.lua +++ b/loot.lua @@ -756,6 +756,11 @@ function GogoLoot:EventHandler(evt, arg, message, a, b, c, ...) end end end + + if not GogoLoot_Config._has_notified_api_change then + GogoLoot_Config._has_notified_api_change = true + print(GogoLoot.API_WARNING) + end GameTooltip:HookScript("OnHide", function() GogoLoot:HideNotification() diff --git a/ui.lua b/ui.lua index 37bbbe0..b8e61bc 100755 --- a/ui.lua +++ b/ui.lua @@ -22,6 +22,8 @@ GogoLoot.TRADE_COMPLETE_RECEIVED = "{rt4} GogoLoot : I received %s from %s" GogoLoot.TRADE_CANCELLED = "{rt4} GogoLoot : Trade with %s cancelled." GogoLoot.TRADE_FAILED = "{rt4} GogoLoot : Trade with %s failed." +GogoLoot.API_WARNING = "\124TInterface\\TargetingFrame\\UI-RaidTargetingIcon_4.png:0\124t GogoLoot : Due to a recent Blizzard API change, you may occasionally see a Loot Window if you attempt loot while in combat. Sorry!" + GogoLoot.conflicts = { -- name must match the .TOC filename "AutoDestroy", "AutoLootAssist",