Skip to content

Commit

Permalink
Match armor layers ui and help text (#38762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupsi-Mupsi authored and ZhilkinSerg committed Apr 1, 2020
1 parent fd8004d commit 32fd86a
Showing 1 changed file with 32 additions and 27 deletions.
59 changes: 32 additions & 27 deletions src/armor_layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ void player::sort_armor()
wprintz( w_sort_cat, c_white, _( "Sort Armor" ) );
wprintz( w_sort_cat, c_yellow, " << %s >>", armor_cat[tabindex] );
right_print( w_sort_cat, 0, 0, c_white, string_format(
_( "Press %s for help. Press %s to change keybindings." ),
_( "Press [<color_yellow>%s</color>] for help. "
"Press [<color_yellow>%s</color>] to change keybindings." ),
ctxt.get_desc( "USAGE_HELP" ),
ctxt.get_desc( "HELP_KEYBINDINGS" ) ) );

Expand Down Expand Up @@ -847,32 +848,36 @@ void player::sort_armor()
}
}
} else if( action == "USAGE_HELP" ) {
popup_getkey( _( "Use the arrow- or keypad keys to navigate the left list.\n"
"[%s] to select highlighted armor for reordering.\n"
"[%s] / [%s] to scroll the right list.\n"
"[%s] to assign special inventory letters to clothing.\n"
"[%s] to change the side on which item is worn.\n"
"[%s] to sort armor into natural layer order.\n"
"[%s] to equip a new item.\n"
"[%s] to equip a new item at the currently selected position.\n"
"[%s] to remove selected armor from oneself.\n"
"\n"
"[Encumbrance and Warmth] explanation:\n"
"The first number is the summed encumbrance from all clothing on that bodypart.\n"
"The second number is an additional encumbrance penalty caused by wearing multiple items "
"on one of the bodypart's layers or wearing items outside of other items they would "
"normally be work beneath (e.g. a shirt over a backpack).\n"
"The sum of these values is the effective encumbrance value your character has for that bodypart." ),
ctxt.get_desc( "MOVE_ARMOR" ),
ctxt.get_desc( "PREV_TAB" ),
ctxt.get_desc( "NEXT_TAB" ),
ctxt.get_desc( "ASSIGN_INVLETS" ),
ctxt.get_desc( "CHANGE_SIDE" ),
ctxt.get_desc( "SORT_ARMOR" ),
ctxt.get_desc( "EQUIP_ARMOR" ),
ctxt.get_desc( "EQUIP_ARMOR_HERE" ),
ctxt.get_desc( "REMOVE_ARMOR" )
);
popup_getkey(
_( "Use the [<color_yellow>arrow- or keypad keys</color>] to navigate the left list.\n"
"[<color_yellow>%s</color>] to select highlighted armor for reordering.\n"
"[<color_yellow>%s</color>] / [<color_yellow>%s</color>] to scroll the right list.\n"
"[<color_yellow>%s</color>] to assign special inventory letters to clothing.\n"
"[<color_yellow>%s</color>] to change the side on which item is worn.\n"
"[<color_yellow>%s</color>] to sort armor into natural layer order.\n"
"[<color_yellow>%s</color>] to equip a new item.\n"
"[<color_yellow>%s</color>] to equip a new item at the currently selected position.\n"
"[<color_yellow>%s</color>] to remove selected armor from oneself.\n"
"\n"
"\n"
"Encumbrance explanation:\n"
"\n"
"<color_light_gray>The first number is the summed encumbrance from all clothing "
"on that bodypart. The second number is an additional encumbrance penalty "
"caused by wearing either multiple items on one of the bodypart's layers or "
"wearing items the wrong way (e.g. a shirt over a backpack). "
"The sum of these values is the effective encumbrance value "
"your character has for that bodypart.</color>" ),
ctxt.get_desc( "MOVE_ARMOR" ),
ctxt.get_desc( "PREV_TAB" ),
ctxt.get_desc( "NEXT_TAB" ),
ctxt.get_desc( "ASSIGN_INVLETS" ),
ctxt.get_desc( "CHANGE_SIDE" ),
ctxt.get_desc( "SORT_ARMOR" ),
ctxt.get_desc( "EQUIP_ARMOR" ),
ctxt.get_desc( "EQUIP_ARMOR_HERE" ),
ctxt.get_desc( "REMOVE_ARMOR" )
);
draw_grid( w_sort_armor, left_w, middle_w );
} else if( action == "HELP_KEYBINDINGS" ) {
draw_grid( w_sort_armor, left_w, middle_w );
Expand Down

0 comments on commit 32fd86a

Please sign in to comment.