Skip to content

Commit

Permalink
Implement API update warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
AeroScripts committed Aug 24, 2021
1 parent ac275a6 commit 69d99fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 69d99fe

Please sign in to comment.