1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00

Add dedicated 'clear' string for clear button (#24387)

This commit is contained in:
Aaron van Geffen
2025-05-12 17:53:46 +02:00
committed by GitHub
parent 991351e6a3
commit f949e17f09
3 changed files with 4 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ namespace OpenRCT2
STR_CHANGE_BASE_LAND_TIP = 2294,
STR_CHANGE_VERTICAL_LAND_TIP = 2295,
STR_CHAT = 5913,
STR_CLEAR_BUTTON = 6766,
STR_CLOSE_WINDOW_TIP = 828,
STR_COMMA16 = 5919,
STR_CONSOLE_HELPER_TEXT = 6623,

View File

@@ -421,7 +421,7 @@ namespace OpenRCT2::Ui::Windows
MakeWidget ({ 10, kRCT1Start + 16}, {276, 12}, WindowWidgetType::Label, WindowColour::Secondary, STR_PATH_TO_RCT1, STR_PATH_TO_RCT1_TIP ), // RCT 1 path label
MakeWidget ({ 10, kRCT1Start + 30}, {290, 14}, WindowWidgetType::Label, WindowColour::Secondary, kStringIdNone, STR_STRING_TOOLTIP ), // RCT 1 path path
MakeWidget ({239, kRCT1Start + 15}, { 60, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_BROWSE ), // RCT 1 path browse
MakeWidget ({249, kRCT1Start + 15}, { 50, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_SHORTCUT_CLEAR, STR_PATH_TO_RCT1_CLEAR_TIP ), // RCT 1 path clear
MakeWidget ({249, kRCT1Start + 15}, { 50, 14}, WindowWidgetType::Button, WindowColour::Secondary, STR_CLEAR_BUTTON, STR_PATH_TO_RCT1_CLEAR_TIP ), // RCT 1 path clear
MakeWidget ({ 5, kSavingStart + 0}, {300, 80}, WindowWidgetType::Groupbox, WindowColour::Secondary, STR_GROUP_SAVING ),
MakeWidget ({ 10, kSavingStart + 16}, {290, 12}, WindowWidgetType::Checkbox, WindowColour::Tertiary, STR_SAVE_PLUGIN_DATA, STR_SAVE_PLUGIN_DATA_TIP ), // Export plug-in objects with saved games
@@ -2096,7 +2096,7 @@ namespace OpenRCT2::Ui::Windows
widgets[WIDX_PATH_TO_RCT1_CLEAR].type = WindowWidgetType::Button;
// Get 'Clear' button string width
auto clearLabel = LanguageGetString(STR_SHORTCUT_CLEAR);
auto clearLabel = LanguageGetString(STR_CLEAR_BUTTON);
auto clearLabelWidth = GfxGetStringWidth(clearLabel, FontStyle::Medium) + 12;
widgets[WIDX_PATH_TO_RCT1_CLEAR].right = widgets[WIDX_PAGE_BACKGROUND].right - 12;