(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include "../window_func.h"
|
||||
#include "dropdown_type.h"
|
||||
|
||||
#include "dropdown_widget.h"
|
||||
|
||||
|
||||
void DropDownListItem::Draw(int left, int right, int top, int bottom, bool sel, int bg_colour) const
|
||||
{
|
||||
@@ -79,13 +81,6 @@ static void DeleteDropDownList(DropDownList *list)
|
||||
delete list;
|
||||
}
|
||||
|
||||
/** Widget numbers of the dropdown menu. */
|
||||
enum DropdownMenuWidgets {
|
||||
DDM_ITEMS, ///< Panel showing the dropdown items.
|
||||
DDM_SHOW_SCROLL, ///< Hide scrollbar if too few items.
|
||||
DDM_SCROLL, ///< Scrollbar.
|
||||
};
|
||||
|
||||
static const NWidgetPart _nested_dropdown_menu_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_PANEL, COLOUR_END, DDM_ITEMS), SetMinimalSize(1, 1), SetScrollbar(DDM_SCROLL), EndContainer(),
|
||||
|
Reference in New Issue
Block a user