2012-08-02 04:03:15 +00:00
|
|
|
#ifndef _GUIMENU_H_
|
|
|
|
#define _GUIMENU_H_
|
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "TextListComponent.h"
|
2012-08-02 04:03:15 +00:00
|
|
|
|
2013-01-26 17:47:43 +00:00
|
|
|
class GuiGameList;
|
|
|
|
|
2013-06-02 15:08:32 +00:00
|
|
|
class GuiMenu : public GuiComponent
|
2012-08-02 04:03:15 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-04-08 16:52:40 +00:00
|
|
|
GuiMenu(Window* window, GuiGameList* parent);
|
2013-06-02 15:08:32 +00:00
|
|
|
virtual ~GuiMenu();
|
2012-08-02 04:03:15 +00:00
|
|
|
|
2013-07-10 11:29:43 +00:00
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
void update(int deltaTime) override;
|
|
|
|
void render(const Eigen::Affine3f& parentTrans) override;
|
2012-08-02 04:03:15 +00:00
|
|
|
|
|
|
|
private:
|
2013-01-26 17:47:43 +00:00
|
|
|
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);
|
2012-08-02 04:03:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|