diff options
author | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:30 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-04-17 19:44:30 +0000 |
commit | 8b65e041ebd4104bba8b21fc0f9a2b8ff99c3414 (patch) | |
tree | 00edb541be5d830006e776b5757b0c89ead9abbe /src/autoreplace_gui.cpp | |
parent | 37e321044a1c32873980fc6d75c45011639ca2f3 (diff) | |
download | openttd-8b65e041ebd4104bba8b21fc0f9a2b8ff99c3414.tar.xz |
(svn r24140) -Add [FS#1117]: Group name in the replace vehicle window caption. (Juanjo)
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index ad39c8b28..76a4260d0 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -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: { |