diff options
author | frosch <frosch@openttd.org> | 2012-06-01 10:43:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-01 10:43:50 +0000 |
commit | 88fff21b932eca52599d66239cc05dc97f5a998e (patch) | |
tree | 581ba716af2c29f949088265218de8ec6b330631 /src/widgets/dropdown_type.h | |
parent | 6207a6017f55729aa3fe365e00c1a4940a917c06 (diff) | |
download | openttd-88fff21b932eca52599d66239cc05dc97f5a998e.tar.xz |
(svn r24308) -Add: ShowDropDownListAt() for drawing dropdown windows independent of dropdown widgets.
Diffstat (limited to 'src/widgets/dropdown_type.h')
-rw-r--r-- | src/widgets/dropdown_type.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/widgets/dropdown_type.h b/src/widgets/dropdown_type.h index 6edc5b847..b923445bb 100644 --- a/src/widgets/dropdown_type.h +++ b/src/widgets/dropdown_type.h @@ -85,19 +85,8 @@ public: */ typedef std::list<DropDownListItem *> DropDownList; -/** - * Show a drop down list. - * @param w Parent window for the list. - * @param list Prepopulated DropDownList. Will be deleted when the list is - * closed. - * @param selected The initially selected list item. - * @param button The widget within the parent window that is used to determine - * the list's location. - * @param width Override the width determined by the selected widget. - * @param auto_width Maximum width is determined by the widest item in the list. - * @param instant_close Set to true if releasing mouse button should close the - * list regardless of where the cursor is. - */ +void ShowDropDownListAt(Window *w, DropDownList *list, int selected, int button, Rect wi_rect, Colours wi_colour, bool auto_width = false, bool instant_close = false); + void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, uint width = 0, bool auto_width = false, bool instant_close = false); #endif /* WIDGETS_DROPDOWN_TYPE_H */ |