summary refs log tree commit diff stats
path: root/src/message_system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-05 17:38:30 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-05 17:38:30 -0500
commitea78916cc43fe67690f2f92d88ac4a8b0e9857d8 (patch)
tree25054fa080f8a7d452b588d8031b254ee6ce998c /src/message_system.h
parentf7875a6d2f129af47a203a5a31c2785b6e2fcf58 (diff)
downloadtanetane-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.h10
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
56private: 60private:
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 */