I guess the other alternative would be to do a "scroll 'n scrape" of the actual stat rows. The entries in the "value" key will be formatted for display (like icons for gold/silver/copper etc.) so they will need to be broken down for "saving" but something like:
As above, the print() would need to be converted to a Save process.
Lua Code:
SLASH_doublebrutalStats1 = "/dbs"
local achievs = {}
SlashCmdList.doublebrutalStats = function(msg)
if not AchievementFrame or not AchievementFrameStatsContainer:IsVisible() then
print("Can't see Achievement Frame!")
return
end
if strupper(msg) == "CLR" then
wipe(achievs)
return
end
if strupper(msg) == "PRT" then
for k, v in pairs(achievs) do
print(k, v.text, v.value)
end
return
end
local count = 0
while true do
count = count + 1
local button = _G["AchievementFrameStatsContainerButton"..count]
if not button then break end
if button.text:GetText() then
if achievs[button.id] then
achievs[button.id].text = button.text:GetText()
achievs[button.id].value = button.value:GetText()
else
achievs[button.id] = { text=button.text:GetText(), value=button.value:GetText() }
end
end
end
end
/dbs <scroll> /dbs to scrape the infomration from the list
/dbs prt to print the scraped information
/dbs clr to clear the scraped information