From e1fdac42fd55f9dd3a54e62381883b479a9d0355 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:50:53 +0200 Subject: [PATCH] code review --- client/mainmenu/CHighScoreScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/mainmenu/CHighScoreScreen.cpp b/client/mainmenu/CHighScoreScreen.cpp index 83092658c..aaf5fec32 100644 --- a/client/mainmenu/CHighScoreScreen.cpp +++ b/client/mainmenu/CHighScoreScreen.cpp @@ -209,8 +209,8 @@ CHighScoreInputScreen::CHighScoreInputScreen(bool won, HighScoreCalculation calc if (settings["general"]["enableUiEnhancements"].Bool()) { - statisticButton = std::make_shared(Point(726, 10), AnimationPath::builtin("TPTAV02.DEF"), CButton::tooltip(CGI->generaltexth->translate("vcmi.statisticWindow.statistic")), [this](){ GH.windows().createAndPushWindow(stat); }, EShortcut::HIGH_SCORES_STATISTIC); - texts.push_back(std::make_shared(716, 25, EFonts::FONT_HIGH_SCORE, ETextAlignment::CENTERRIGHT, Colors::WHITE, CGI->generaltexth->translate("vcmi.statisticWindow.statistic") + ":")); + statisticButton = std::make_shared(Point(726, 10), AnimationPath::builtin("TPTAV02.DEF"), CButton::tooltip(CGI->generaltexth->translate("vcmi.statisticWindow.statistics")), [this](){ GH.windows().createAndPushWindow(stat); }, EShortcut::HIGH_SCORES_STATISTICS); + texts.push_back(std::make_shared(716, 25, EFonts::FONT_HIGH_SCORE, ETextAlignment::CENTERRIGHT, Colors::WHITE, CGI->generaltexth->translate("vcmi.statisticWindow.statistics") + ":")); } } @@ -291,7 +291,7 @@ void CHighScoreInputScreen::clickPressed(const Point & cursorPosition) void CHighScoreInputScreen::keyPressed(EShortcut key) { - if(key == EShortcut::HIGH_SCORES_STATISTIC) + if(key == EShortcut::HIGH_SCORES_STATISTICS) // ignore shortcut for skipping video with key return; clickPressed(Point()); }