2012-08-02 04:03:15 +00:00
|
|
|
#ifndef _GUIMENU_H_
|
|
|
|
#define _GUIMENU_H_
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
|
|
|
#include "GuiList.h"
|
|
|
|
|
2012-09-07 21:44:07 +00:00
|
|
|
//This is a very simple menu that is opened by pressing the Menu key.
|
2012-08-02 04:03:15 +00:00
|
|
|
class GuiMenu : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiMenu(GuiComponent* parent);
|
|
|
|
~GuiMenu();
|
|
|
|
|
|
|
|
void onInput(InputManager::InputButton button, bool keyDown);
|
|
|
|
void onRender();
|
|
|
|
|
|
|
|
private:
|
|
|
|
GuiComponent* mParent;
|
2012-08-02 04:50:18 +00:00
|
|
|
GuiList<std::string>* mList;
|
|
|
|
|
|
|
|
void populateList();
|
|
|
|
|
2012-08-02 04:03:15 +00:00
|
|
|
bool mSkippedMenuClose;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|