forked from teamnwah/openmw-tes3coop
created new files, conncted MessageBoxManger with WindowManager
parent
5fb3dc854b
commit
5bf5bde946
@ -0,0 +1,15 @@
|
||||
#include "messagebox.hpp"
|
||||
//#include "window_manager.hpp"
|
||||
|
||||
using namespace MWGui;
|
||||
|
||||
void MessageBoxManager::createMessageBox (const std::string& message)
|
||||
{
|
||||
std::cout << "create non-interactive message box" << std::endl;
|
||||
}
|
||||
|
||||
void MessageBoxManager::createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons)
|
||||
{
|
||||
std::cout << "create interactive message box" << std::endl;
|
||||
std::copy (buttons.begin(), buttons.end(), std::ostream_iterator<std::string> (std::cout, ", "));
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
#ifndef MWGUI_MESSAGE_BOX_H
|
||||
#define MWGUI_MESSAGE_BOX_H
|
||||
|
||||
#include "window_base.hpp"
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
class WindowManager;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
{
|
||||
using namespace MyGUI;
|
||||
|
||||
class WindowManager;
|
||||
|
||||
class MessageBoxManager
|
||||
{
|
||||
public:
|
||||
void createMessageBox (const std::string& message);
|
||||
void createInteractiveMessageBox (const std::string& message, const std::vector<std::string>& buttons);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue