Skip to content

Commit

Permalink
cache texts
Browse files Browse the repository at this point in the history
  • Loading branch information
zenseii committed Jan 3, 2025
1 parent 71709a9 commit 3fb0fa8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/fheroes2/battle/battle_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3211,8 +3211,8 @@ void Battle::Interface::OpenAutoModeDialog( const Unit & unit, Actions & actions

fheroes2::Display & display = fheroes2::Display::instance();

fheroes2::Text title( _( "Automatic Battle Modes" ), { fheroes2::FontSize::NORMAL, fheroes2::FontColor::YELLOW } );
fheroes2::Text header( _( "Choose an automatic battle mode:" ), { fheroes2::FontSize::NORMAL, fheroes2::FontColor::WHITE } );
const fheroes2::Text title( _( "Automatic Battle Modes" ), { fheroes2::FontSize::NORMAL, fheroes2::FontColor::YELLOW } );
const fheroes2::Text header( _( "Choose an automatic battle mode:" ), { fheroes2::FontSize::NORMAL, fheroes2::FontColor::WHITE } );

const bool isEvilInterface = Settings::Get().isEvilInterfaceEnabled();

Expand Down Expand Up @@ -3272,8 +3272,7 @@ void Battle::Interface::OpenAutoModeDialog( const Unit & unit, Actions & actions
}
else if ( le.isMouseRightButtonPressedInArea( autoResolve.area() ) ) {
fheroes2::showStandardTextMessage( _( "Auto Resolve" ),
_( "The battle will be resolved instantly by the computer from the current state.\n\nThis cannot be reverted." ),
Dialog::ZERO );
_( "Instantly resolves the battle by the computer from the current state.\n\nThis cannot be reverted." ), Dialog::ZERO );
}
}
}
Expand Down

0 comments on commit 3fb0fa8

Please sign in to comment.