summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-01-18 18:12:49 +0000
committerDarkvater <Darkvater@openttd.org>2006-01-18 18:12:49 +0000
commitc2d8fd45834549287b39e195428be2d6f512ef08 (patch)
tree46789d6ab59ba352a9c8526388e8d1391b369de5
parent3173a0e502cf3d498ec6f752158513c57eda80a8 (diff)
downloadopenttd-c2d8fd45834549287b39e195428be2d6f512ef08.tar.xz
(svn r3405) - Feature: Make subsidies window pinnable. Don't ask me why this wasn't included in the first round of pinning.
-rw-r--r--subsidy_gui.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/subsidy_gui.c b/subsidy_gui.c
index 85cc060f7..ee7609b43 100644
--- a/subsidy_gui.c
+++ b/subsidy_gui.c
@@ -144,23 +144,24 @@ static void SubsidiesListWndProc(Window *w, WindowEvent *e)
case WE_CLICK:
switch (e->click.widget) {
- case 2: HandleSubsidyClick(e->click.pt.y - 25); break;
+ case 3: HandleSubsidyClick(e->click.pt.y - 25); break;
}
break;
}
}
static const Widget _subsidies_list_widgets[] = {
-{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
-{ WWT_CAPTION, RESIZE_NONE, 13, 11, 629, 0, 13, STR_2025_SUBSIDIES, STR_018C_WINDOW_TITLE_DRAG_THIS},
-{ WWT_PANEL, RESIZE_NONE, 13, 0, 629, 14, 126, 0x0, STR_01FD_CLICK_ON_SERVICE_TO_CENTER},
+{ WWT_CLOSEBOX, RESIZE_NONE, 13, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
+{ WWT_CAPTION, RESIZE_NONE, 13, 11, 617, 0, 13, STR_2025_SUBSIDIES, STR_018C_WINDOW_TITLE_DRAG_THIS},
+{ WWT_STICKYBOX, RESIZE_NONE, 13, 618, 629, 0, 13, STR_NULL, STR_STICKY_BUTTON},
+{ WWT_PANEL, RESIZE_NONE, 13, 0, 629, 14, 126, STR_NULL, STR_01FD_CLICK_ON_SERVICE_TO_CENTER},
{ WIDGETS_END},
};
static const WindowDesc _subsidies_list_desc = {
-1, -1, 630, 127,
WC_SUBSIDIES_LIST,0,
- WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
+ WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
_subsidies_list_widgets,
SubsidiesListWndProc
};