@@ -13349,6 +13349,11 @@ bool Character::can_lift( const T &obj ) const
13349
13349
template bool Character::can_lift<item>( const item &obj ) const ;
13350
13350
template bool Character::can_lift<vehicle>( const vehicle &obj ) const ;
13351
13351
13352
+ static std::string wrap60 ( const std::string &text )
13353
+ {
13354
+ return string_join ( foldstring ( text, 60 ), " \n " );
13355
+ }
13356
+
13352
13357
bool character_martial_arts::pick_style ( const Character &you ) // Style selection menu
13353
13358
{
13354
13359
enum style_selection {
@@ -13379,9 +13384,8 @@ bool character_martial_arts::pick_style( const Character &you ) // Style selecti
13379
13384
ctxt.register_action ( " SHOW_DESCRIPTION" );
13380
13385
13381
13386
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>, "
13385
13389
" PER: <color_white>%d</color>, INT: <color_white>%d</color>\n "
13386
13390
" Press [<color_yellow>%s</color>] for technique details and compatible weapons.\n " ),
13387
13391
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
13393
13397
kmenu.desc_enabled = true ;
13394
13398
kmenu.addentry_desc ( KEEP_HANDS_FREE, true , ' h' ,
13395
13399
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." ) ) );
13397
13401
13398
13402
kmenu.selected = STYLE_OFFSET;
13399
13403
@@ -13412,7 +13416,8 @@ bool character_martial_arts::pick_style( const Character &you ) // Style selecti
13412
13416
kmenu.selected = i + STYLE_OFFSET;
13413
13417
entry_text = colorize ( entry_text, c_pink );
13414
13418
}
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 () ) );
13416
13421
}
13417
13422
13418
13423
kmenu.query ();
0 commit comments