diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-07 23:27:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-07 23:27:31 +0000 |
commit | 493e4317e19725e2de2d51753e5c1906bf9c64ba (patch) | |
tree | c46831d6d661a79b5da6580d4472d39a615fedea /src/client/client.h | |
parent | 941c64546ca22b87a9153d36e9e3fe59c18abafe (diff) |
Implemented messageboxes and the ability for the game module to send them to remote clients,
send a messagebox if the player's ship is destroyed, this fixes having to press the respawn button twice.
added messageboxes on network connection failures.
Diffstat (limited to 'src/client/client.h')
-rw-r--r-- | src/client/client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/client.h b/src/client/client.h index f4bfcf3..2b0d187 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -14,6 +14,7 @@ #include "client/soundext.h" #include "client/testmodelwindow.h" #include "client/mainwindow.h" +#include "client/messagebox.h" #include "render/renderext.h" /// client part of the engine @@ -41,6 +42,9 @@ public: /// text notifications from the core virtual void notify_message(const core::Message::Channel channel, const std::string &message); + + /// messagebox notifications + virtual void notify_messagebox(const std::string & text, const std::string &label1, const std::string command1, const std::string &label2, const std::string command2); /// loading message notification virtual void notify_loader(const std::string &message); @@ -111,6 +115,7 @@ private: MainWindow *client_mainwindow; TestModelWindow *client_testmodelwindow; + Messagebox *client_messagebox; unsigned long previous_timestamp; }; |