From 9a1278bcd6ba1622de1458d582e064759293ff60 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 24 Mar 2023 09:36:49 +0000 Subject: [PATCH] TBTR: Fix tooltips for start/stop replacement buttons --- src/lang/extra/english.txt | 2 ++ src/tbtr_template_gui_main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lang/extra/english.txt b/src/lang/extra/english.txt index 6912cb769d..07e0379e74 100644 --- a/src/lang/extra/english.txt +++ b/src/lang/extra/english.txt @@ -1892,7 +1892,9 @@ STR_TMPL_REFIT :{BLACK}Refit STR_TMPL_GROUP_INFO :{BLACK}Group Info: {ORANGE} STR_TMPL_TEMPLATE_INFO :{BLACK}Template Info: {ORANGE} STR_TMPL_RPL_START :{BLACK}Start replacing +STR_TMPL_RPL_START_TOOLTIP :{BLACK}Press to start replacement of trains in the selected group with the selected template STR_TMPL_RPL_STOP :{BLACK}Stop replacing +STR_TMPL_RPL_STOP_TOOLTIP :{BLACK}Press to stop replacement of trains in the selected group STR_TMPL_TEMPLATE_OVR_VALUE :{BLACK}Buying Cost: {GOLD}{CURRENCY_LONG} STR_TMPL_TEMPLATE_OVR_VALUE_LTBLUE :{BLACK}Buying Cost: {LTBLUE}{CURRENCY_LONG} STR_TMPL_TEMPLATE_OVR_RUNNING_COST :{BLACK}Estimated Running Cost: {LTBLUE}{CURRENCY_LONG} diff --git a/src/tbtr_template_gui_main.cpp b/src/tbtr_template_gui_main.cpp index 2f5985b6c4..385816ac17 100644 --- a/src/tbtr_template_gui_main.cpp +++ b/src/tbtr_template_gui_main.cpp @@ -171,11 +171,11 @@ static const NWidgetPart _widgets[] = { EndContainer(), // Start/Stop buttons NWidget(NWID_HORIZONTAL), - NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, TRW_WIDGET_START), SetMinimalSize(150, 12), SetDataTip(STR_TMPL_RPL_START, STR_REPLACE_ENGINE_WAGON_SELECT_HELP), + NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, TRW_WIDGET_START), SetMinimalSize(150, 12), SetDataTip(STR_TMPL_RPL_START, STR_TMPL_RPL_START_TOOLTIP), NWidget(WWT_PANEL, COLOUR_GREY, TRW_WIDGET_TRAIN_FLUFF_LEFT), SetMinimalSize(15, 12), EndContainer(), NWidget(WWT_DROPDOWN, COLOUR_GREY, TRW_WIDGET_TRAIN_RAILTYPE_DROPDOWN), SetMinimalSize(150, 12), SetDataTip(0x0, STR_REPLACE_HELP_RAILTYPE), SetResize(1, 0), NWidget(WWT_PANEL, COLOUR_GREY, TRW_WIDGET_TRAIN_FLUFF_RIGHT), SetMinimalSize(16, 12), EndContainer(), - NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, TRW_WIDGET_STOP), SetMinimalSize(150, 12), SetDataTip(STR_TMPL_RPL_STOP, STR_REPLACE_REMOVE_WAGON_HELP), + NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, TRW_WIDGET_STOP), SetMinimalSize(150, 12), SetDataTip(STR_TMPL_RPL_STOP, STR_TMPL_RPL_STOP_TOOLTIP), NWidget(WWT_RESIZEBOX, COLOUR_GREY), EndContainer(), };