diff options
author | darkvater <darkvater@openttd.org> | 2005-01-04 21:28:09 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-04 21:28:09 +0000 |
commit | 4c5f6fe3602395e114dab4cd9961134cc08151a1 (patch) | |
tree | 90af100ef9047dc5f4fc292a408855edcf2dc159 /player_gui.c | |
parent | 0fe19ed2ac84cb4fa785ac230a5184da35922189 (diff) | |
download | openttd-4c5f6fe3602395e114dab4cd9961134cc08151a1.tar.xz |
(svn r1379) -Fix: various GUI glitches. Added default sizes to various widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
Diffstat (limited to 'player_gui.c')
-rw-r--r-- | player_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/player_gui.c b/player_gui.c index 07adb6c7e..4c7fab8cb 100644 --- a/player_gui.c +++ b/player_gui.c @@ -145,7 +145,7 @@ static void PlayerFinancesWndProc(Window *w, WindowEvent *e) case WE_PAINT: { Player *p = DEREF_PLAYER(w->window_number); - w->disabled_state = p->current_loan != 0 ? 0 : (1 << 6); + w->disabled_state = p->current_loan != 0 ? 0 : (1 << 7); SetDParam(0, p->name_1); SetDParam(1, p->name_2); @@ -298,8 +298,8 @@ static void SelectPlayerColorWndProc(Window *w, WindowEvent *e) static const Widget _select_player_color_widgets[] = { { WWT_TEXTBTN, RESIZE_NONE, 14, 0, 10, 0, 13, STR_00C5,STR_018B_CLOSE_WINDOW}, { WWT_CAPTION, RESIZE_NONE, 14, 11, 149, 0, 13, STR_7007_NEW_COLOR_SCHEME, STR_018C_WINDOW_TITLE_DRAG_THIS}, -{ WWT_IMGBTN, RESIZE_NONE, 14, 0, 138, 14, 127, 0x0, STR_7034_CLICK_ON_SELECTED_NEW_COLOR}, -{ WWT_SCROLLBAR, RESIZE_NONE, 14, 139, 149, 14, 127, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST}, +{ WWT_IMGBTN, RESIZE_NONE, 14, 0, 137, 14, 127, 0x0, STR_7034_CLICK_ON_SELECTED_NEW_COLOR}, +{ WWT_SCROLLBAR, RESIZE_NONE, 14, 138, 149, 14, 127, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST}, { WIDGETS_END}, }; |