diff options
Diffstat (limited to 'Menu.hpp')
-rw-r--r-- | Menu.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Menu.hpp b/Menu.hpp new file mode 100644 index 0000000..957d6c4 --- /dev/null +++ b/Menu.hpp @@ -0,0 +1,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; +}; |