Skip to content

Commit

Permalink
Match advanced inventory UI and info text (#38763)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupsi-Mupsi authored and ZhilkinSerg committed Apr 2, 2020
1 parent d46d5c8 commit d97ef19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/advanced_inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,10 +1084,9 @@ void advanced_inventory::display()
draw_border( head );
Messages::display_messages( head, 2, 1, w_width - 1, head_height - 2 );
draw_minimap();
const std::string msg = string_format( _( "< [%s] Show help >" ),
ctxt.get_desc( "HELP_KEYBINDINGS" ) );
mvwprintz( head, point( w_width - ( minimap_width + 2 ) - utf8_width( msg ) - 1, 0 ),
c_white, msg );
right_print( head, 0, +3, c_white, string_format(
_( "< [<color_yellow>%s</color>] keybindings >" ),
ctxt.get_desc( "HELP_KEYBINDINGS" ) ) );
if( g->u.has_watch() ) {
const std::string time = to_string_time_of_day( calendar::turn );
mvwprintz( head, point( 2, 0 ), c_white, time );
Expand Down
8 changes: 5 additions & 3 deletions src/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,21 +745,23 @@ void draw_item_filter_rules( const catacurses::window &win, int starty, int heig

starty += fold_and_print( win, point( 1, starty ), len, c_white,
// NOLINTNEXTLINE(cata-text-style): literal comma
_( "Separate multiple items with ," ) );
_( "Separate multiple items with [<color_yellow>,</color>]." ) );
starty += 1 + fold_and_print( win, point( 1, starty ), len, c_white,
//~ An example of how to separate multiple items with a comma when filtering items.
_( "Example: back,flash,aid, ,band" ) ); // NOLINT(cata-text-style): literal comma

if( type == item_filter_type::FILTER ) {
starty += fold_and_print( win, point( 1, starty ), len, c_white,
_( "To exclude items, place - in front." ) );
_( "To exclude items, place [<color_yellow>-</color>] in front." ) );
starty += 1 + fold_and_print( win, point( 1, starty ), len, c_white,
//~ An example of how to exclude items with - when filtering items.
_( "Example: -pipe,-chunk,-steel" ) );
}

starty += fold_and_print( win, point( 1, starty ), len, c_white,
_( "Search [c]ategory, [m]aterial, [q]uality, [n]otes or [d]isassembled components:" ) );
_( "Search [<color_yellow>c</color>]ategory, [<color_yellow>m</color>]aterial, "
"[<color_yellow>q</color>]uality, [<color_yellow>n</color>]otes or "
"[<color_yellow>d</color>]isassembled components." ) );
fold_and_print( win, point( 1, starty ), len, c_white,
//~ An example of how to filter items based on category or material.
_( "Examples: c:food,m:iron,q:hammering,n:toolshelf,d:pipe" ) );
Expand Down

0 comments on commit d97ef19

Please sign in to comment.