ES-DE/src/components/MenuComponent.h
Aloshi 3ba7cd1247 Finished re-implementing OptionListComponent.
More new art to go with it (thanks Nils!).
2014-03-06 13:45:03 -06:00

21 lines
444 B
C++

#pragma once
#include "NinePatchComponent.h"
#include "ComponentList.h"
#include "TextComponent.h"
class MenuComponent : public GuiComponent
{
public:
MenuComponent(Window* window, const char* title);
void onSizeChanged() override;
inline void addRow(const ComponentListRow& row, bool setCursorHere = false) { mList.addRow(row, setCursorHere); }
private:
NinePatchComponent mBackground;
TextComponent mTitle;
ComponentList mList;
};