mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Store and display played time on character Stats tab
Save totalTimePlayed/levelTimePlayed from SMSG_PLAYED_TIME. Request a fresh update whenever the character screen is opened. Show total and level-played time in a two-column layout below the stats panel.
This commit is contained in:
parent
46eb66b77f
commit
6ab9ba65f9
3 changed files with 34 additions and 0 deletions
|
|
@ -18149,6 +18149,9 @@ void GameHandler::handlePlayedTime(network::Packet& packet) {
|
|||
return;
|
||||
}
|
||||
|
||||
totalTimePlayed_ = data.totalTimePlayed;
|
||||
levelTimePlayed_ = data.levelTimePlayed;
|
||||
|
||||
if (data.triggerMessage) {
|
||||
// Format total time played
|
||||
uint32_t totalDays = data.totalTimePlayed / 86400;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue