mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
created new files, conncted MessageBoxManger with WindowManager
This commit is contained in:
parent
5fb3dc854b
commit
5bf5bde946
2 changed files with 40 additions and 0 deletions
15
apps/openmw/mwgui/messagebox.cpp
Normal file
15
apps/openmw/mwgui/messagebox.cpp
Normal file
|
@ -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, ", "));
|
||||||
|
}
|
25
apps/openmw/mwgui/messagebox.hpp
Normal file
25
apps/openmw/mwgui/messagebox.hpp
Normal file
|
@ -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 a new issue