From 171ac3c0b06e1415123794c1f5152814bdccc403 Mon Sep 17 00:00:00 2001 From: Alayan <25536748+Alayan-stk-2@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:29:05 +0200 Subject: [PATCH] Adapt the pause menu in benchmark mode * Use explicit activation and desactivation functions for the profiler to improve code clarity and robustness * In the pause dialog, only display the 'back to race' and 'exit' buttons in benchmark mode * Relabel the buttons in the pause menu in benchmark mode * Use 'Performance test' in user-facing texts to ensure better translations * Fix parts of the UI disappearing when leaving the pause menu in benchmark mode Additional known issue introduced in the previous benchmark commit: * With big text sizes, the performance test button overflows in the graphics settings. --- data/gui/screens/options_video.stkgui | 2 +- src/modes/world_status.cpp | 6 ++-- src/race/race_manager.cpp | 16 +++++++++ src/race/race_manager.hpp | 6 +--- .../dialogs/race_paused_dialog.cpp | 33 ++++++++++++++++--- src/utils/debug.cpp | 5 ++- src/utils/profiler.cpp | 25 +++++++++----- src/utils/profiler.hpp | 3 +- 8 files changed, 72 insertions(+), 24 deletions(-) diff --git a/data/gui/screens/options_video.stkgui b/data/gui/screens/options_video.stkgui index 252b0613a..f7414aed2 100644 --- a/data/gui/screens/options_video.stkgui +++ b/data/gui/screens/options_video.stkgui @@ -133,7 +133,7 @@