From 7a2ea8365435519274342f7ea3bcb1b3f5e89ff4 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 27 Feb 2024 18:27:45 +0000 Subject: [PATCH] Plans: Adjust button tooltips --- src/lang/extra/english.txt | 7 ++++--- src/plans_gui.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lang/extra/english.txt b/src/lang/extra/english.txt index b0813d54c8..db3c4176c2 100644 --- a/src/lang/extra/english.txt +++ b/src/lang/extra/english.txt @@ -1842,6 +1842,7 @@ STR_PLANS_CAPTION :{WHITE}Plans STR_PLANS_NEW_PLAN :{BLACK}New STR_PLANS_NEW_PLAN_TOOLTIP :{BLACK}Create a new plan STR_PLANS_ADD_LINES :{BLACK}Add lines +STR_PLANS_ADD_LINES_TOOLTIP :{BLACK}Add lines to the selected plan STR_PLANS_ADDING_LINES :{BLACK}Adding... STR_PLANS_HIDE_ALL :{BLACK}Hide all STR_PLANS_HIDE_ALL_TOOLTIP :{BLACK}Set the visibility of all the plans and all their lines to false @@ -1851,11 +1852,11 @@ STR_PLANS_VISIBILITY_PRIVATE :{BLACK}Make pri STR_PLANS_VISIBILITY_PUBLIC :{BLACK}Make public STR_PLANS_VISIBILITY_TOOLTIP :{BLACK}Toggle the visibility of a plan. A public plan will be displayed in the plan window of the other companies but only its owner can add lines to it. STR_PLANS_COLOUR :{BLACK}Colour -STR_PLANS_COLOUR_TOOLTIP :{BLACK}Set the colour of a plan. +STR_PLANS_COLOUR_TOOLTIP :{BLACK}Set the colour of a plan STR_PLANS_DELETE :{BLACK}Delete -STR_PLANS_DELETE_TOOLTIP :{BLACK}Delete the selected item in the list +STR_PLANS_DELETE_TOOLTIP :{BLACK}Delete the selected plan STR_PLANS_TAKE_OWNERSHIP :{BLACK}Take ownership -STR_PLANS_TAKE_OWNERSHIP_TOOLTIP :{BLACK}Take ownership of the selected unowned item in the list +STR_PLANS_TAKE_OWNERSHIP_TOOLTIP :{BLACK}Take ownership of the selected unowned plan STR_PLANS_LIST_ITEM_PLAN_PRIVATE :[Private]: {STRING3} STR_PLANS_LIST_ITEM_PLAN :Plan #{NUM}: {NUM} line{P "" s} ({DATE_SHORT}) STR_PLANS_LIST_ITEM_NAMED_PLAN :{RAW_STRING}: {NUM} line{P "" s} ({DATE_SHORT}) diff --git a/src/plans_gui.cpp b/src/plans_gui.cpp index 2258bcd909..fc88b8a3fc 100644 --- a/src/plans_gui.cpp +++ b/src/plans_gui.cpp @@ -51,7 +51,7 @@ static constexpr NWidgetPart _nested_plans_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(NWID_HORIZONTAL, NC_EQUALSIZE), NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_PLN_NEW), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_PLANS_NEW_PLAN, STR_PLANS_NEW_PLAN_TOOLTIP), - NWidget(WWT_TEXTBTN_2, COLOUR_GREY, WID_PLN_ADD_LINES), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_PLANS_ADD_LINES, STR_PLANS_ADDING_LINES), + NWidget(WWT_TEXTBTN_2, COLOUR_GREY, WID_PLN_ADD_LINES), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_PLANS_ADD_LINES, STR_PLANS_ADD_LINES_TOOLTIP), NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_PLN_VISIBILITY), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_PLANS_VISIBILITY_PUBLIC, STR_PLANS_VISIBILITY_TOOLTIP), NWidget(WWT_DROPDOWN, COLOUR_GREY, WID_PLN_COLOUR), SetResize(1, 0), SetFill(1, 0), SetDataTip(STR_JUST_STRING, STR_PLANS_COLOUR_TOOLTIP), NWidget(NWID_SELECTION, INVALID_COLOUR, WID_PLN_HIDE_ALL_SEL),