(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.
This commit is contained in:
12
window.h
12
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,
|
||||
|
||||
Reference in New Issue
Block a user