From 493e4317e19725e2de2d51753e5c1906bf9c64ba Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Dec 2014 23:27:31 +0000 Subject: 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. --- src/client/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/client.h') 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; }; -- cgit v1.2.3