diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-05 17:38:30 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-05 17:38:30 -0500 |
commit | ea78916cc43fe67690f2f92d88ac4a8b0e9857d8 (patch) | |
tree | 25054fa080f8a7d452b588d8031b254ee6ce998c /src/message_system.h | |
parent | f7875a6d2f129af47a203a5a31c2785b6e2fcf58 (diff) | |
download | tanetane-ea78916cc43fe67690f2f92d88ac4a8b0e9857d8.tar.gz tanetane-ea78916cc43fe67690f2f92d88ac4a8b0e9857d8.tar.bz2 tanetane-ea78916cc43fe67690f2f92d88ac4a8b0e9857d8.zip |
Added little bobbing "next message" arrow
Diffstat (limited to 'src/message_system.h')
-rw-r--r-- | src/message_system.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/message_system.h b/src/message_system.h index 18dd299..93ca087 100644 --- a/src/message_system.h +++ b/src/message_system.h | |||
@@ -53,6 +53,10 @@ public: | |||
53 | 53 | ||
54 | const std::string& getSpeaker() const { return speakerName_; } | 54 | const std::string& getSpeaker() const { return speakerName_; } |
55 | 55 | ||
56 | bool isNextArrowShowing() const { return showNextArrow_; } | ||
57 | |||
58 | int getNextArrowBob() const { return nextArrowBobPos_; } | ||
59 | |||
56 | private: | 60 | private: |
57 | 61 | ||
58 | enum class BarsState { | 62 | enum class BarsState { |
@@ -70,7 +74,11 @@ private: | |||
70 | std::string speakerName_; | 74 | std::string speakerName_; |
71 | std::list<std::string> lines_; | 75 | std::list<std::string> lines_; |
72 | std::list<MessageLine> linesToShow_; | 76 | std::list<MessageLine> linesToShow_; |
73 | Timer textAdvTimer_ { 10 }; | 77 | Timer textAdvTimer_ { 15 }; |
78 | bool showNextArrow_ = false; | ||
79 | int nextArrowBobPos_ = 0; | ||
80 | bool nextArrowBobDown_ = true; | ||
81 | Timer nextArrowBobTimer_ { 125 }; | ||
74 | }; | 82 | }; |
75 | 83 | ||
76 | #endif /* end of include guard: MESSAGE_SYSTEM_H_DE10D011 */ | 84 | #endif /* end of include guard: MESSAGE_SYSTEM_H_DE10D011 */ |