mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Add compile option to move close box to the left
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
constexpr int32_t WW = 600;
|
||||
constexpr int32_t WH = 400;
|
||||
#define WINDOW_TITLE STR_INVENTION_LIST
|
||||
|
||||
// clang-format off
|
||||
enum {
|
||||
@@ -45,9 +46,7 @@ enum {
|
||||
};
|
||||
|
||||
static rct_widget window_editor_inventions_list_widgets[] = {
|
||||
{ WWT_FRAME, 0, 0, 599, 0, 399, STR_NONE, STR_NONE },
|
||||
{ WWT_CAPTION, 0, 1, 598, 1, 14, STR_INVENTION_LIST, STR_WINDOW_TITLE_TIP },
|
||||
{ WWT_CLOSEBOX, 0, 587, 597, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP },
|
||||
WINDOW_SKELETON,
|
||||
{ WWT_RESIZE, 1, 0, 599, 43, 399, STR_NONE, STR_NONE },
|
||||
{ WWT_TAB, 1, 3, 33, 17, 43, IMAGE_TYPE_REMAP | SPR_TAB, STR_NONE },
|
||||
{ WWT_SCROLL, 1, 4, 371, 56, 216, SCROLL_VERTICAL, STR_NONE },
|
||||
@@ -505,8 +504,10 @@ static void window_editor_inventions_list_invalidate(rct_window* w)
|
||||
w->widgets[WIDX_BACKGROUND].right = w->width - 1;
|
||||
w->widgets[WIDX_BACKGROUND].bottom = w->height - 1;
|
||||
w->widgets[WIDX_TITLE].right = w->width - 2;
|
||||
w->widgets[WIDX_CLOSE].left = w->width - 13;
|
||||
w->widgets[WIDX_CLOSE].right = w->width - 3;
|
||||
#ifndef LEFT_CLOSEBOX
|
||||
w->widgets[WIDX_CLOSE].left = w->width - 13;
|
||||
w->widgets[WIDX_CLOSE].right = w->width - 3;
|
||||
#endif
|
||||
w->widgets[WIDX_RESIZE].right = w->width - 1;
|
||||
w->widgets[WIDX_RESIZE].bottom = w->height - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user