2014-06-25 16:29:58 +00:00
|
|
|
#pragma once
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_GUIS_GUI_MENU_H
|
|
|
|
#define ES_APP_GUIS_GUI_MENU_H
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
#include "components/MenuComponent.h"
|
2017-11-01 22:21:10 +00:00
|
|
|
#include "GuiComponent.h"
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
class GuiMenu : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
GuiMenu(Window* window);
|
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input) override;
|
|
|
|
void onSizeChanged() override;
|
|
|
|
std::vector<HelpPrompt> getHelpPrompts() override;
|
2017-05-28 18:13:00 +00:00
|
|
|
HelpStyle getHelpStyle() override;
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void addEntry(const char* name, unsigned int color, bool add_arrow, const std::function<void()>& func);
|
2017-09-08 14:49:47 +00:00
|
|
|
void addVersionInfo();
|
2017-06-12 16:38:59 +00:00
|
|
|
void openCollectionSystemSettings();
|
2017-09-08 14:49:47 +00:00
|
|
|
void openConfigInput();
|
|
|
|
void openOtherSettings();
|
|
|
|
void openQuitMenu();
|
|
|
|
void openScraperSettings();
|
|
|
|
void openScreensaverOptions();
|
|
|
|
void openSoundSettings();
|
|
|
|
void openUISettings();
|
|
|
|
|
2014-06-25 16:29:58 +00:00
|
|
|
MenuComponent mMenu;
|
|
|
|
TextComponent mVersion;
|
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_MENU_H
|