Skip to content

Commit

Permalink
Match construction UI (#38765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupsi-Mupsi authored and ZhilkinSerg committed Mar 17, 2020
1 parent 377b84c commit 497c0fa
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/construction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,19 @@ construction_id construction_menu( const bool blueprint )

std::vector<std::string> notes;
if( tabindex == tabcount - 1 && !filter.empty() ) {
notes.push_back( string_format( _( "Press %s to clear filter" ),
notes.push_back( string_format( _( "Press [<color_yellow>%s</color>] to clear filter" ),
ctxt.get_desc( "RESET_FILTER" ) ) );
}
notes.push_back( string_format( _( "Press %s or %s to tab." ), ctxt.get_desc( "LEFT" ),
notes.push_back( string_format( _( "Press [<color_yellow>%s or %s</color>] "
"to tab." ), ctxt.get_desc( "LEFT" ),
ctxt.get_desc( "RIGHT" ) ) );
notes.push_back( string_format( _( "Press %s to search." ), ctxt.get_desc( "FILTER" ) ) );
notes.push_back( string_format( _( "Press %s to toggle unavailable constructions." ),
notes.push_back( string_format( _( "Press [<color_yellow>%s</color>] "
"to search." ), ctxt.get_desc( "FILTER" ) ) );
notes.push_back( string_format( _( "Press [<color_yellow>%s</color>] "
"to toggle unavailable constructions." ),
ctxt.get_desc( "TOGGLE_UNAVAILABLE_CONSTRUCTIONS" ) ) );
notes.push_back( string_format( _( "Press %s to view and edit key-bindings." ),
notes.push_back( string_format( _( "Press [<color_yellow>%s</color>] "
"to view and edit keybindings." ),
ctxt.get_desc( "HELP_KEYBINDINGS" ) ) );

//leave room for top and bottom UI text
Expand Down

0 comments on commit 497c0fa

Please sign in to comment.