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:
Kelsi 2026-03-12 03:09:52 -07:00
parent 46eb66b77f
commit 6ab9ba65f9
3 changed files with 34 additions and 0 deletions

View file

@ -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;