diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-14 16:10:58 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-14 16:10:58 +0000 |
commit | e4c05f8d789b8a83159313d3ce745745038a7b67 (patch) | |
tree | 3a4930e55ee49d4a3da2e6070bc4f6751fd11cda /src/window_gui.h | |
parent | 7beb63a93bf48b38cbd1e6a258968acf50099a2c (diff) | |
download | openttd-e4c05f8d789b8a83159313d3ce745745038a7b67.tar.xz |
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index bb7c23199..df825e6d1 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -439,20 +439,6 @@ struct message_d { }; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(message_d)); -struct dropdown_d { - uint32 disabled_state; - uint32 hidden_state; - 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; -}; -assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(dropdown_d)); - struct vehiclelist_d { const Vehicle** sort_list; // List of vehicles (sorted) Listing *_sorting; // pointer to the appropiate subcategory of _sorting @@ -592,7 +578,6 @@ static inline void GuiShowTooltips(StringID str) /* widget.cpp */ int GetWidgetFromPos(const Window *w, int x, int y); void DrawWindowWidgets(const Window *w); -void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask); Window *GetCallbackWnd(); |