Ara Broker XP

Ara Broker XP

16.2k Downloads

`GetAddOnMetadata` --> `C_AddOns.GetAddOnMetadata`

tflo opened this issue · 3 comments

commented

GetAddOnMetadata and friends were moved to the C_AddOns table in Dragonflight. Now these functions are no longer deprecated, i.e. it throws an error now (at least in Retail, for Classic etc. I don’t know).

--- /Applications/World of Warcraft/_retail_/Interface/AddOns/Ara_Broker_XP/Ara_Broker_XP.lua	2024-10-31 20:08:23.000000000 
+++ /Users/tom/_tmp/Ara_Broker_XP/Ara_Broker_XP.lua	2024-10-25 19:40:39.000000000 
@@ -46,13 +46,13 @@
 
 function f:InitConfigMenu()
     configMenu = CreateFrame("Frame", "AraXPConfigMenu")
     configMenu.displayMode = "MENU"
     info = {}
     options = {
-    { text = ("|cffffb366Ara|r XP (%s)"):format( GetAddOnMetadata(addonName, "Version") ), isTitle = true },
+    { text = ("|cffffb366Ara|r XP (%s)"):format( C_AddOns.GetAddOnMetadata(addonName, "Version") ), isTitle = true },
     { text = "Pattern...", func = function() StaticPopup_Show"SET_ABXP_PATTERN" end },
     { text = "Length...", func = function() StaticPopup_Show"SET_ABXP_LENGTH" end },
     { text = "Colors", submenu = {
         { text = "XP", color = "colorXP" },
         { text = "Rested XP", color = "colorRested" },
         { text = "Remaining XP", color = "colorRemaining" },}},
commented

What are you doing to trigger this? It's not popping for me?

commented

I don’t know. I got an error some time ago and fixed it in my copy. Don’t remember how I triggered it ;)

Posted it just because I have seen you’ve updated the addon, but missed this old function.

commented

Fixed in R33