Skip to content

Commit 9107bd5

Browse files
authored
Merge pull request CleverRaven#83345 from a666/vehiclenam
Allow for bigger vehicle names, add current one to text input
2 parents 13c7368 + 2756e6b commit 9107bd5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/construction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ void construct::done_vehicle( const tripoint_bub_ms &p, Character & )
17981798
{
17991799
std::string name = string_input_popup()
18001800
.title( _( "Enter new vehicle name:" ) )
1801-
.width( 20 )
1801+
.width( 60 )
18021802
.query_string();
18031803
if( name.empty() ) {
18041804
name = _( "Car" );

src/veh_interact.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,8 @@ void veh_interact::do_rename()
20432043
{
20442044
std::string name = string_input_popup()
20452045
.title( _( "Enter new vehicle name:" ) )
2046-
.width( 20 )
2046+
.width( 60 )
2047+
.text( veh->name )
20472048
.query_string();
20482049
if( !name.empty() ) {
20492050
veh->name = name;
@@ -2793,6 +2794,7 @@ void veh_interact::display_details( const vpart_info *part )
27932794
int line = 0;
27942795
bool small_mode = column_width < 20;
27952796

2797+
// TODO: show mod part comes from
27962798
// line 0: part name
27972799
fold_and_print( w_details, point( col_1, line ), details_w, c_light_green, part->name() );
27982800

0 commit comments

Comments
 (0)