Mercurial > hg > openttd
comparison src/build_vehicle_gui.cpp @ 17579:105b4e4eb168 draft
(svn r22343) -Change: Remove pixel limiter for query strings.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Sun, 17 Apr 2011 18:42:17 +0000 |
parents | e7672bafbe1c |
children | 6bf2acbcbea5 |
comparison
equal
deleted
inserted
replaced
17578:0a544af855e3 | 17579:105b4e4eb168 |
---|---|
1209 case BUILD_VEHICLE_WIDGET_RENAME: { | 1209 case BUILD_VEHICLE_WIDGET_RENAME: { |
1210 EngineID sel_eng = this->sel_engine; | 1210 EngineID sel_eng = this->sel_engine; |
1211 if (sel_eng != INVALID_ENGINE) { | 1211 if (sel_eng != INVALID_ENGINE) { |
1212 this->rename_engine = sel_eng; | 1212 this->rename_engine = sel_eng; |
1213 SetDParam(0, sel_eng); | 1213 SetDParam(0, sel_eng); |
1214 ShowQueryString(STR_ENGINE_NAME, STR_QUERY_RENAME_TRAIN_TYPE_CAPTION + this->vehicle_type, MAX_LENGTH_ENGINE_NAME_CHARS, MAX_LENGTH_ENGINE_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS); | 1214 ShowQueryString(STR_ENGINE_NAME, STR_QUERY_RENAME_TRAIN_TYPE_CAPTION + this->vehicle_type, MAX_LENGTH_ENGINE_NAME_CHARS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS); |
1215 } | 1215 } |
1216 break; | 1216 break; |
1217 } | 1217 } |
1218 } | 1218 } |
1219 } | 1219 } |