From 6acbc775e5f467fadabbf19a9046e2d4f1cfe8f2 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Tue, 4 Mar 2025 11:58:28 -0500 Subject: [PATCH] Fix #13725: Use proper query strings for changing timetable values (#13737) --- src/lang/english.txt | 3 ++- src/timetable_gui.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lang/english.txt b/src/lang/english.txt index aec6ce2bc7..f01be923a2 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -4792,17 +4792,18 @@ STR_TIMETABLE_STATUS_START_IN_SECONDS :{BLACK}This tim STR_TIMETABLE_START :{BLACK}Start Timetable STR_TIMETABLE_START_TOOLTIP :{BLACK}Select when this timetable starts. Ctrl+Click to evenly distribute the start of all vehicles sharing this order based on their relative order, if the order is completely timetabled - STR_TIMETABLE_START_SECONDS_QUERY :Seconds until timetable starts STR_TIMETABLE_CHANGE_TIME :{BLACK}Change Time STR_TIMETABLE_WAIT_TIME_TOOLTIP :{BLACK}Change the amount of time that the highlighted order should take. Ctrl+Click to set the time for all orders +STR_TIMETABLE_CHANGE_TIME_QUERY :Change time STR_TIMETABLE_CLEAR_TIME :{BLACK}Clear Time STR_TIMETABLE_CLEAR_TIME_TOOLTIP :{BLACK}Clear the amount of time for the highlighted order. Ctrl+Click to clear the time for all orders STR_TIMETABLE_CHANGE_SPEED :{BLACK}Change Speed Limit STR_TIMETABLE_CHANGE_SPEED_TOOLTIP :{BLACK}Change the maximum travel speed of the highlighted order. Ctrl+Click to set the speed for all orders +STR_TIMETABLE_CHANGE_SPEED_QUERY :Change speed limit STR_TIMETABLE_CLEAR_SPEED :{BLACK}Clear Speed Limit STR_TIMETABLE_CLEAR_SPEED_TOOLTIP :{BLACK}Clear the maximum travel speed of the highlighted order. Ctrl+Click to clear the speed for all orders diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 66acffe370..7626f0aa2c 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -685,7 +685,7 @@ struct TimetableWindow : Window { } this->change_timetable_all = _ctrl_pressed && (order != nullptr); - ShowQueryString(current, STR_TIMETABLE_CHANGE_TIME, 31, this, CS_NUMERAL, QSF_ACCEPT_UNCHANGED); + ShowQueryString(current, STR_TIMETABLE_CHANGE_TIME_QUERY, 31, this, CS_NUMERAL, QSF_ACCEPT_UNCHANGED); break; } @@ -705,7 +705,7 @@ struct TimetableWindow : Window { } this->change_timetable_all = _ctrl_pressed && (order != nullptr); - ShowQueryString(current, STR_TIMETABLE_CHANGE_SPEED, 31, this, CS_NUMERAL, QSF_NONE); + ShowQueryString(current, STR_TIMETABLE_CHANGE_SPEED_QUERY, 31, this, CS_NUMERAL, QSF_NONE); break; }