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
commit6124ee09747fdac32a0b3af8616fd7813e0fe746 (patch)
tree6695093fe1be95b4b91e1fd2e19786b52a21a114 /window.h
parent833032adc09ce95c68d4a4b412221a0b3f88e670 (diff)
downloadopenttd-6124ee09747fdac32a0b3af8616fd7813e0fe746.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,