mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 02:41:58 -05:00
Make file window button captions fit in more languages.
The window is made 10px wider to accommodate button captions in languages like Japanese.
This commit is contained in:
parent
fc70d6c851
commit
8c0186d9a4
1 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
#pragma region Widgets
|
||||
|
||||
constexpr int32_t WW = 340;
|
||||
constexpr int32_t WW = 350;
|
||||
constexpr int32_t WH = 400;
|
||||
|
||||
// clang-format off
|
||||
|
@ -65,10 +65,10 @@ static rct_widget window_loadsave_widgets[] =
|
|||
{ WWT_CAPTION, 0, 1, WW - 2, 1, 14, STR_NONE, STR_WINDOW_TITLE_TIP },
|
||||
{ WWT_CLOSEBOX, 0, WW - 13, WW - 3, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP }, //Window close button
|
||||
{ WWT_RESIZE, 1, 0, WW - 1, WH - 1, WH - 1, 0xFFFFFFFF, STR_NONE }, // tab content panel
|
||||
{ WWT_BUTTON, 0, 4, 85, 36, 49, STR_LOADSAVE_DEFAULT, STR_LOADSAVE_DEFAULT_TIP }, // Go to default directory
|
||||
{ WWT_BUTTON, 0, 86, 167, 36, 49, STR_FILEBROWSER_ACTION_UP, STR_NONE}, // Up
|
||||
{ WWT_BUTTON, 0, 168, 251, 36, 49, STR_FILEBROWSER_ACTION_NEW_FOLDER, STR_NONE }, // New
|
||||
{ WWT_BUTTON, 0, 252, 334, 36, 49, STR_FILEBROWSER_ACTION_NEW_FILE, STR_NONE }, // New
|
||||
{ WWT_BUTTON, 0, 4, 87, 36, 49, STR_LOADSAVE_DEFAULT, STR_LOADSAVE_DEFAULT_TIP }, // Go to default directory
|
||||
{ WWT_BUTTON, 0, 88, 171, 36, 49, STR_FILEBROWSER_ACTION_UP, STR_NONE}, // Up
|
||||
{ WWT_BUTTON, 0, 172, 258, 36, 49, STR_FILEBROWSER_ACTION_NEW_FOLDER, STR_NONE }, // New
|
||||
{ WWT_BUTTON, 0, 259, 345, 36, 49, STR_FILEBROWSER_ACTION_NEW_FILE, STR_NONE }, // New
|
||||
{ WWT_TABLE_HEADER, 0, 4, (WW - 5) / 2, 55, 68, STR_NONE, STR_NONE }, // Name
|
||||
{ WWT_TABLE_HEADER, 0, (WW - 5) / 2 + 1, WW - 5 - 1, 55, 68, STR_NONE, STR_NONE }, // Date
|
||||
{ WWT_SCROLL, 0, 4, WW - 5, 68, WH - 30, SCROLL_VERTICAL, STR_NONE }, // File list
|
||||
|
|
Loading…
Reference in a new issue