From 7e1fdf17b62f758460a55a2717b922787bbda0bb Mon Sep 17 00:00:00 2001 From: Ihar Hubchyk Date: Sat, 18 May 2024 11:18:53 +0800 Subject: [PATCH] Show a warning message for no modification of normal artifacts relates to #6845 --- src/fheroes2/editor/editor_interface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fheroes2/editor/editor_interface.cpp b/src/fheroes2/editor/editor_interface.cpp index 7a55077af20..593a5d0316e 100644 --- a/src/fheroes2/editor/editor_interface.cpp +++ b/src/fheroes2/editor/editor_interface.cpp @@ -1192,6 +1192,11 @@ namespace Interface action.commit(); } + else { + std::string msg = _( "%{object} has no properties to change." ); + StringReplace( msg, "%{object}", _( "This artifact" ) ); + _warningMessage.reset( std::move( msg ) ); + } } else if ( objectType == MP2::OBJ_SPHINX ) { assert( _mapFormat.sphinxMetadata.find( object.id ) != _mapFormat.sphinxMetadata.end() );