mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 02:53:25 -08:00
* [Client] Add option to use game time in game log timestamps (#2202) Game log timestamps showed the local clock time, which is meaningless in a replay or in a log read after the fact — nobody can tell when a play happened relative to the game. Add a "Use game time instead of local time in game logs" setting. When enabled, the message log stamps entries with the elapsed game time (HH:MM:SS since the game started); regular chat views keep the local clock. * [Game] Move formatElapsedTime helper out of public slots (#2202) The message log needs the HH:MM:SS formatter used by the game timer, but it lives in GameState's public slots, tying a pure formatting helper to the signal-slot machinery. Move formatElapsedTime into a public section of GameState so the log can call it directly, and add the missing trailing newline to game_state.cpp. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> |
||
|---|---|---|
| .. | ||
| board | ||
| player | ||
| zones | ||
| abstract_game.cpp | ||
| abstract_game.h | ||
| arrow_registry.cpp | ||
| arrow_registry.h | ||
| game.cpp | ||
| game.h | ||
| game_event_handler.cpp | ||
| game_event_handler.h | ||
| game_meta_info.cpp | ||
| game_meta_info.h | ||
| game_state.cpp | ||
| game_state.h | ||
| phase.cpp | ||
| phase.h | ||
| replay.cpp | ||
| replay.h | ||