summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-01-27 01:34:30 +0000
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-01-27 12:34:49 +0100
commit6e5b90f4f726c0f53861d725cf5a5ecc4093f477 (patch)
treefc5c447483f593f6f2bd6b01c2dcc2f7a0eec409
parent256b94a03d7eb3c2c0264b6c93f5d83c299ada8a (diff)
downloadopenttd-6e5b90f4f726c0f53861d725cf5a5ecc4093f477.tar.xz
Change: For consistency, add company name to colour scheme window.
-rw-r--r--src/company_gui.cpp4
-rw-r--r--src/lang/english.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 208b798a7..dcf1f3695 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -660,6 +660,10 @@ public:
virtual void SetStringParameters(int widget) const
{
switch (widget) {
+ case WID_SCL_CAPTION:
+ SetDParam(0, (CompanyID)this->window_number);
+ break;
+
case WID_SCL_PRI_COL_DROPDOWN:
case WID_SCL_SEC_COL_DROPDOWN: {
const Company *c = Company::Get((CompanyID)this->window_number);
diff --git a/src/lang/english.txt b/src/lang/english.txt
index a5188d05b..83406296c 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -1820,7 +1820,7 @@ STR_CHEAT_CHANGE_DATE_QUERY_CAPT :{WHITE}Change c
STR_CHEAT_SETUP_PROD :{LTBLUE}Enable modifying production values: {ORANGE}{STRING1}
# Livery window
-STR_LIVERY_CAPTION :{WHITE}New Colour Scheme
+STR_LIVERY_CAPTION :{WHITE}{COMPANY} - Colour Scheme
STR_LIVERY_GENERAL_TOOLTIP :{BLACK}Show general colour schemes
STR_LIVERY_TRAIN_TOOLTIP :{BLACK}Show train colour schemes