mirror of
https://github.com/GaryOderNichts/DRXUtil.git
synced 2024-11-01 07:05:09 +01:00
37 lines
620 B
C++
37 lines
620 B
C++
|
#pragma once
|
||
|
|
||
|
#include "Screen.hpp"
|
||
|
#include <memory>
|
||
|
#include <map>
|
||
|
|
||
|
class MenuScreen : public Screen
|
||
|
{
|
||
|
public:
|
||
|
MenuScreen();
|
||
|
virtual ~MenuScreen();
|
||
|
|
||
|
void Draw();
|
||
|
|
||
|
bool Update(VPADStatus& input);
|
||
|
|
||
|
private:
|
||
|
std::unique_ptr<Screen> mSubscreen;
|
||
|
|
||
|
enum MenuID {
|
||
|
MENU_ID_INFO,
|
||
|
MENU_ID_FLASH,
|
||
|
MENU_ID_SET_REGION,
|
||
|
MENU_ID_ABOUT,
|
||
|
|
||
|
MENU_ID_MIN = MENU_ID_INFO,
|
||
|
MENU_ID_MAX = MENU_ID_ABOUT,
|
||
|
};
|
||
|
|
||
|
struct MenuEntry {
|
||
|
uint16_t icon;
|
||
|
const char* name;
|
||
|
};
|
||
|
std::map<MenuID, MenuEntry> mEntries;
|
||
|
MenuID mSelected = MENU_ID_MIN;
|
||
|
};
|