Implement 75% off menu

This commit is contained in:
2022-01-19 09:13:53 +01:00
parent 4ba7995bb4
commit 241123e6c9
6 changed files with 197 additions and 27 deletions
+8 -3
View File
@@ -13,20 +13,25 @@
#include "menu.h"
class Menu;
class MenuEntry {
public:
MenuEntry(const char* name, void (*function) (), void (*callback) ());
MenuEntry(const char* name, void (*function) ());
MenuEntry(const char* name, Menu* menu);
void run();
void runAction();
const char* getName();
bool getIsMenu();
Menu* getMenu();
private:
const char* name;
void (*function) ();
void (*callback) ();
void (*callback) () = nullptr;
bool isMenu;
bool isMenu = false;
Menu *menu;
};