summaryrefslogtreecommitdiff
path: root/Menu.hpp
blob: 957d6c4db3647020666a6106d372e0ea5408caff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "Cursor.hpp"
#include "cfg.hpp"

class Menu {
private:
	static const int _ybegin = CFG_DHEIGHT - 32;
	static const int _yend = CFG_DHEIGHT;
	static const int _entries = 3;
	static const int _wentry = CFG_DWIDTH / _entries;
	int _hovered;
public:
	Menu();
	void update(const Cursor& cursor);
	void draw() const;
};