Battleground scoring
I'm attempting to recreate an addon that tracks your killing blows, honorable kills, etc. in a broker frame. Right now I'm using the following API to find these values:
GetNumBattlefieldScores() GetBattlefieldScore(i) These work perfectly for what I'm trying to do except for ONE thing; they won't seem to update unless I open and close the PvP stats frame. Is there a way to get these to work without having to open/close the PvP Stats frame? Thanks in advance! |
There doesn't seem to be any simple way to get it to update..
In WorldStateFrame.lua it calls WorldStateScoreFrame_Update() which updates GetNumBattlefieldScores() and GetBattlefieldScore(index) .. but it doesn't seem to work :confused: I also tried a quick opening and then hiding the frame in this macro, but it also didn't work though Code:
/run ShowUIPanel(WorldStateScoreFrame) |
Quote:
you should register the event "UPDATE_BATTLEFIELD_SCORE" then periodically call RequestBattlefieldScoreData() i think. edit: i've always thought a great mod would be to mimic a sports ticker scrolling at the bottom of the screen. have sliding text show the latest stats and interesting info from the current match or even have it listen to a global broadcast from other people running the mod and then show stats from other battlegrounds. not necessarily useful, but it'd be pretty funny. |
Did some quick testing and yes lilsparky is right ..
|
Woohoo, that was the problem thank you very much you two. I was so confused why it wasn't updating!
Thanks again very much guys! |
Quote:
Code:
- What do you want to broadcast? |
All times are GMT -6. The time now is 11:06 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI