diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-03-13 09:29:47 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-03-13 15:34:50 -0500 |
commit | f839e07d4d2e94070129129c669072145235cf4f (patch) | |
tree | 3b1cd73c00d1ea968646dd649199d54a25964d8e /src/menu_system.h | |
parent | 42495836c9ebe1c3914540043d2338eebd85dbab (diff) | |
download | tanetane-f839e07d4d2e94070129129c669072145235cf4f.tar.gz tanetane-f839e07d4d2e94070129129c669072145235cf4f.tar.bz2 tanetane-f839e07d4d2e94070129129c669072145235cf4f.zip |
Added cursor to pause menu
#7
Diffstat (limited to 'src/menu_system.h')
-rw-r--r-- | src/menu_system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/menu_system.h b/src/menu_system.h index 56f84d5..9cbd1f0 100644 --- a/src/menu_system.h +++ b/src/menu_system.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include "interpolation.h" | 5 | #include "interpolation.h" |
6 | #include "menu.h" | 6 | #include "menu.h" |
7 | #include "system.h" | 7 | #include "system.h" |
8 | #include "timer.h" | ||
8 | 9 | ||
9 | class Game; | 10 | class Game; |
10 | 11 | ||
@@ -31,6 +32,10 @@ public: | |||
31 | 32 | ||
32 | const std::vector<MenuItem>& getMenu() const { return menu_; } | 33 | const std::vector<MenuItem>& getMenu() const { return menu_; } |
33 | 34 | ||
35 | int getCursorPosition() const { return cursor_; } | ||
36 | |||
37 | int getCursorBob() const { return cursorBob_; } | ||
38 | |||
34 | private: | 39 | private: |
35 | 40 | ||
36 | enum class OpenState { | 41 | enum class OpenState { |
@@ -43,6 +48,10 @@ private: | |||
43 | Interpolation pauseAnimation_; | 48 | Interpolation pauseAnimation_; |
44 | OpenState openState_ = OpenState::Closed; | 49 | OpenState openState_ = OpenState::Closed; |
45 | std::vector<MenuItem> menu_; | 50 | std::vector<MenuItem> menu_; |
51 | int cursor_ = 0; | ||
52 | int cursorBob_ = 0; | ||
53 | bool cursorBobDown_ = true; | ||
54 | Timer cursorBobTimer_ { 125 }; | ||
46 | }; | 55 | }; |
47 | 56 | ||
48 | #endif /* end of include guard: MENU_SYSTEM_H_205861EC */ | 57 | #endif /* end of include guard: MENU_SYSTEM_H_205861EC */ |