blob: 47cd5332efc8d35fcb7ad2103617ca9bf90c29f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include "Cursor.hpp"
#include "cfg.hpp"
class Menu {
private:
static const int _ybegin = CFG_DHEIGHT - 24;
static const int _yend = CFG_DHEIGHT;
static const int _entries = 3;
static const int _wentry = CFG_DWIDTH / _entries;
bool _was_down;
int _hovered;
int _selected;
public:
Menu();
void update(const Cursor& cursor);
void draw() const;
int get_selection() const;
};
|