summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-14 08:42:45 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-14 08:42:45 +0000
commitbb82872bbf4dbc78abf7381224f794b45669e077 (patch)
tree6695093fe1be95b4b91e1fd2e19786b52a21a114 /window.h
parent524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a (diff)
downloadopenttd-bb82872bbf4dbc78abf7381224f794b45669e077.tar.xz
(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.
Diffstat (limited to 'window.h')
-rw-r--r--window.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/window.h b/window.h
index 6c0a60793..72886b369 100644
--- a/window.h
+++ b/window.h
@@ -452,6 +452,18 @@ typedef struct message_d {
} message_d;
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(message_d));
+typedef struct dropdown_d {
+ WindowClass parent_wnd_class;
+ WindowNumber parent_wnd_num;
+ byte parent_button;
+ byte num_items;
+ byte selected_index;
+ const StringID *items;
+ byte click_delay;
+ bool drag_mode;
+} dropdown_d;
+assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(dropdown_d));
+
enum WindowEvents {
WE_CLICK = 0,
WE_PAINT = 1,