mirror of
https://github.com/jhbruhn/eurorack.git
synced 2025-03-15 02:55:49 +00:00
26 lines
467 B
C++
26 lines
467 B
C++
#pragma once
|
|
|
|
#include "../config.h"
|
|
#include "part_menu.h"
|
|
#include <U8g2lib.h>
|
|
|
|
class MainMenu {
|
|
public:
|
|
void back();
|
|
void enter();
|
|
void up();
|
|
void down();
|
|
|
|
void render(U8G2* u8g2, int x, int y, int width, int height);
|
|
|
|
MainMenu(Part** parts)
|
|
: partMenus({ parts[0], parts[1], parts[2], parts[3] })
|
|
, activePartMenu(0)
|
|
, selectedPart(0) {};
|
|
|
|
private:
|
|
PartMenu partMenus[PART_COUNT];
|
|
int activePartMenu;
|
|
|
|
int selectedPart;
|
|
};
|