(svn r24140) -Add [FS#1117]: Group name in the replace vehicle window caption. (Juanjo)

This commit is contained in:
michi_cc
2012-04-17 19:44:30 +00:00
parent 37e321044a
commit 8b65e041eb
52 changed files with 61 additions and 50 deletions

View File

@@ -308,6 +308,20 @@ public:
switch (widget) {
case WID_RV_CAPTION:
SetDParam(0, STR_REPLACE_VEHICLE_TRAIN + this->window_number);
switch (this->sel_group) {
case ALL_GROUP:
SetDParam(1, STR_GROUP_ALL_TRAINS + this->window_number);
break;
case DEFAULT_GROUP:
SetDParam(1, STR_GROUP_DEFAULT_TRAINS + this->window_number);
break;
default:
SetDParam(1, STR_GROUP_NAME);
SetDParam(2, sel_group);
break;
}
break;
case WID_RV_TRAIN_WAGONREMOVE_TOGGLE: {