@@ -13349,6 +13349,11 @@ bool Character::can_lift( const T &obj ) const
1334913349template bool Character::can_lift<item>( const item &obj ) const ;
1335013350template bool Character::can_lift<vehicle>( const vehicle &obj ) const ;
1335113351
13352+ static std::string wrap60 ( const std::string &text )
13353+ {
13354+ return string_join ( foldstring ( text, 60 ), " \n " );
13355+ }
13356+
1335213357bool character_martial_arts::pick_style ( const Character &you ) // Style selection menu
1335313358{
1335413359 enum style_selection {
@@ -13379,9 +13384,8 @@ bool character_martial_arts::pick_style( const Character &you ) // Style selecti
1337913384 ctxt.register_action ( " SHOW_DESCRIPTION" );
1338013385
1338113386 uilist kmenu;
13382- kmenu.text = string_format ( _ ( " Select a style.\n "
13383- " \n "
13384- " STR: <color_white>%d</color>, DEX: <color_white>%d</color>, "
13387+ kmenu.title = _ ( " Select a style.\n " );
13388+ kmenu.text = string_format ( _ ( " STR: <color_white>%d</color>, DEX: <color_white>%d</color>, "
1338513389 " PER: <color_white>%d</color>, INT: <color_white>%d</color>\n "
1338613390 " Press [<color_yellow>%s</color>] for technique details and compatible weapons.\n " ),
1338713391 you.get_str (), you.get_dex (), you.get_per (), you.get_int (),
@@ -13393,7 +13397,7 @@ bool character_martial_arts::pick_style( const Character &you ) // Style selecti
1339313397 kmenu.desc_enabled = true ;
1339413398 kmenu.addentry_desc ( KEEP_HANDS_FREE, true , ' h' ,
1339513399 keep_hands_free ? _ ( " Keep hands free (on)" ) : _ ( " Keep hands free (off)" ),
13396- _ ( " When this is enabled, player won't wield things unless explicitly told to." ) );
13400+ wrap60 ( _ ( " When this is enabled, player won't wield things unless explicitly told to." ) ) );
1339713401
1339813402 kmenu.selected = STYLE_OFFSET;
1339913403
@@ -13412,7 +13416,8 @@ bool character_martial_arts::pick_style( const Character &you ) // Style selecti
1341213416 kmenu.selected = i + STYLE_OFFSET;
1341313417 entry_text = colorize ( entry_text, c_pink );
1341413418 }
13415- kmenu.addentry_desc ( i + STYLE_OFFSET, true , -1 , entry_text, style.description .translated () );
13419+ kmenu.addentry_desc ( i + STYLE_OFFSET, true , -1 , entry_text,
13420+ wrap60 ( style.description .translated () ) );
1341613421 }
1341713422
1341813423 kmenu.query ();
0 commit comments