1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-28 07:15:33 +00:00
openmw-tes3mp/apps/openmw/mwgui/dialogue.hpp

56 lines
1.1 KiB
C++
Raw Normal View History

2010-11-03 20:21:08 +00:00
#ifndef MWGUI_DIALOGE_H
#define MWGUI_DIALOGE_H
#include <components/esm_store/store.hpp>
#include <openengine/gui/layout.hpp>
#include <boost/array.hpp>
namespace MWWorld
{
class Environment;
}
/*
This file contains the dialouge window
Layout is defined by resources/mygui/openmw_dialogue_window_layout.xml.
*/
namespace MWGui
{
class DialogeHistory;
using namespace MyGUI;
class DialogueWindow: public OEngine::GUI::Layout
{
public:
DialogueWindow(MWWorld::Environment& environment);
void open();
// Events
typedef delegates::CDelegate0 EventHandle_Void;
/** Event : Dialog finished, OK button clicked.\n
signature : void method()\n
*/
EventHandle_Void eventBye;
protected:
void onSelectTopic(MyGUI::List* _sender, size_t _index);
void onByeClicked(MyGUI::Widget* _sender);
void onHistoryClicked(MyGUI::Widget* _sender);
private:
void updateOptions();
MWWorld::Environment& environment;
DialogeHistory* history;
MyGUI::ListPtr topicsList;
};
}
#endif