From d63144e8c00ca6776771012dfc2503cc6a671fc1 Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 4 Jan 2005 21:28:09 +0000 Subject: (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! --- player_gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player_gui.c') 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}, }; -- cgit v1.2.3-54-g00ecf