so just something like this then?
Lua Code:
local WarforgedSeal = CreateFrame("Frame", "MEC_Warforged_Seal")
WarforgedSeals.obj = LibStub("LibDataBroker-1.1"):NewDataObject("MEC Warforged Seals",{
type = "data source",
text = "0",
label = "Warforged Seal",
icon = "Interface\\Icons\\inv_arcane_orb",
} )
WarforgedSeal:SetScript("OnEvent", function()
local name, count, texture = GetCurrencyInfo(776)
Warforgedseal.obj.text = count or "0"
end)
WarforgedSeal:RegisterEvent("CURRENCY_DISPLAY_UPDATE")
WarforgedSeal:RegisterEvent("PLAYER_ENTERING_WORLD")
I tried this and it still shows 0. unless i'm still doing something wrong