diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-14 08:42:45 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-14 08:42:45 +0000 |
commit | 6124ee09747fdac32a0b3af8616fd7813e0fe746 (patch) | |
tree | 6695093fe1be95b4b91e1fd2e19786b52a21a114 /window.h | |
parent | 833032adc09ce95c68d4a4b412221a0b3f88e670 (diff) | |
download | openttd-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.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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, |