diff --git a/src/fheroes2/gui/ui_dialog.cpp b/src/fheroes2/gui/ui_dialog.cpp index bcbaa35f51..7e60410664 100644 --- a/src/fheroes2/gui/ui_dialog.cpp +++ b/src/fheroes2/gui/ui_dialog.cpp @@ -1,6 +1,6 @@ /*************************************************************************** * fheroes2: https://github.com/ihhub/fheroes2 * - * Copyright (C) 2021 - 2024 * + * Copyright (C) 2021 - 2025 * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -45,6 +45,8 @@ #include "resource.h" #include "screen.h" #include "spell_info.h" +#include "tools.h" +#include "translations.h" #include "ui_button.h" #include "ui_constants.h" #include "ui_keyboard.h" @@ -927,6 +929,14 @@ namespace fheroes2 return true; } + if ( le.isMouseRightButtonPressedInArea( _editBox ) ) { + std::string message = _( "The available values range from %{min} to %{max}." ); + StringReplace( message, "%{min}", _minimum ); + StringReplace( message, "%{max}", _maximum ); + + fheroes2::showStandardTextMessage( {}, std::move( message ), Dialog::ZERO ); + } + return false; }