ES-DE/src/components/GuiMenu.h

28 lines
540 B
C
Raw Normal View History

#ifndef _GUIMENU_H_
#define _GUIMENU_H_
2013-06-02 15:08:32 +00:00
#include "../GuiComponent.h"
#include "TextListComponent.h"
class GuiGameList;
2013-06-02 15:08:32 +00:00
class GuiMenu : public GuiComponent
{
public:
2013-04-08 16:52:40 +00:00
GuiMenu(Window* window, GuiGameList* parent);
2013-06-02 15:08:32 +00:00
virtual ~GuiMenu();
bool input(InputConfig* config, Input input) override;
void update(int deltaTime) override;
void render(const Eigen::Affine3f& parentTrans) override;
private:
GuiGameList* mParent;
2013-06-02 15:08:32 +00:00
TextListComponent<std::string>* mList;
2012-08-02 04:50:18 +00:00
void populateList();
2012-11-14 15:07:09 +00:00
void executeCommand(std::string command);
};
#endif