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 | bb82872bbf4dbc78abf7381224f794b45669e077 (patch) | |
tree | 6695093fe1be95b4b91e1fd2e19786b52a21a114 /window.h | |
parent | 524fd25cbd2b32fd8166e196c5eab1f2f7e82a8a (diff) | |
download | openttd-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.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, |