Hi,
After the advice on /api helper
I easily succeded in implement a simple tracking of the new artifact in my LDB gmexp.
The only thing that I am unable to do is to get the name ("HEART OF AZEROTH") from the item
Is it defined as a global value G_* ?
Now I have made an ugly string but I'd like to avoid a variable to prevent to localize it by hand.
Lua Code:
if C_AzeriteItem.HasActiveAzeriteItem() then
tooltip:AddLine(" ")
local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem()
local xp, totalLevelXP = C_AzeriteItem.GetAzeriteItemXPInfo(azeriteItemLocation)
tooltip:AddDoubleLine(L["Artifact"], "Heart of Azeroth",1, 1, 1, 0, 1, 1)
tooltip:AddDoubleLine(L["Artifact Power"],C_AzeriteItem.GetPowerLevel(azeriteItemLocation), 1, 1, 1, 0, 1, 0)
tooltip:AddDoubleLine(L["Power to next rank"],totalLevelXP - xp, 1, 1, 1, 1, 0, 0)
tooltip:AddDoubleLine(L["Progress in rank %"], string_format("%.1f", xp/totalLevelXP*100) , 1, 1, 1, 0, 1, 0)
end
Thanks to everyone for attention.