So there is another issue that has popped up. On first load in, it will show all values as 0. Once I do a /console reloadui, it will display correctly for the rest of the session but the same thing happens if I logout and then log back in. For example, let's say I have 1000 honor, 100 arena points, and 100 AV marks. When I login, it says 0 Honor. If I click to update, it says 0 Arena and then 0 AV. If I reload the ui, the values will change to 1000 honor, 100 arena, 100 marks. I logout, then log back in, its back to 0 Honor, etc.
...I have no idea. It works fine for me. I log in, cycle through the currencies and only get 0 for the ones I have none of. Shows my honor, arena points, etc just fine.
Hey, tell me if you are seeing this as well. Before, the frame would update values dynamically. Say I am tracking honor. If I go to Wintergrasp and kill stuff, the frame updates to the correct value. Right now, it is staying at what it is on login and you have to reload to reset it. The tooltip works ok, but not the frame. I think there is something not firing somewhere that was doing so before. Same goes for marks too.
Edit: Let me clarify. The HONOR_CURRENCY_UPDATE() event would fire and the frame would update the honor total. The BAG_UPDATE() event would fire and update the marks dynamically when you received them (looting, end of battleground, quest hand in, etc.).
I've tried playing with it all day to no avail. I can't figure out why it is not updating. I have uninstalled and deleted savedvariables, messed with the code and my head is about to explode. It looks to me like everything you did shouldn't have stopped this from occurring but it won't update. : /
Actually, putting it in a table the way I did is the problem. It sets the value of values[1] to be whatever GetHonorCurrency() returns, for example. Here's the correct way to do this:
Edit: Let me clarify. The HONOR_CURRENCY_UPDATE() event would fire and the frame would update the honor total. The BAG_UPDATE() event would fire and update the marks dynamically when you received them (looting, end of battleground, quest hand in, etc.).
And then change the Update() function to: