OpenMW
|
#include <dialogue.hpp>
Public Types | |
enum | Services { Service_Trade = 0x01, Service_BuySpells = 0x02, Service_CreateSpells = 0x04, Service_Enchant = 0x08, Service_Training = 0x10, Service_Travel = 0x20, Service_Repair = 0x40 } |
typedef MyGUI::delegates::CMultiDelegate0 | EventHandle_Void |
Public Member Functions | |
DialogueWindow () | |
void | notifyLinkClicked (TypesetBook::InteractiveId link) |
void | startDialogue (MWWorld::Ptr actor, std::string npcName) |
void | setKeywords (std::list< std::string > keyWord) |
void | addResponse (const std::string &text, const std::string &title="") |
void | addMessageBox (const std::string &text) |
void | addChoice (const std::string &choice, int id) |
void | clearChoices () |
void | goodbye () |
void | onFrame () |
void | setServices (int services) |
Protected Member Functions | |
void | onSelectTopic (const std::string &topic, int id) |
void | onByeClicked (MyGUI::Widget *_sender) |
void | onMouseWheel (MyGUI::Widget *_sender, int _rel) |
void | onWindowResize (MyGUI::Window *_sender) |
void | onScrollbarMoved (MyGUI::ScrollBar *sender, size_t pos) |
void | updateHistory (bool scrollbar=false) |
virtual void | onReferenceUnavailable () |
called when reference has become unavailable | |
Private Member Functions | |
void | updateOptions () |
Private Attributes | |
int | mServices |
bool | mEnabled |
bool | mGoodbye |
std::vector< DialogueText * > | mHistoryContents |
std::map< std::string, int > | mChoices |
std::vector< Link * > | mLinks |
std::map< std::string, Link * > | mTopicLinks |
KeywordSearchT | mKeywordSearch |
BookPage * | mHistory |
Widgets::MWList * | mTopicsList |
MyGUI::ScrollBar * | mScrollBar |
MyGUI::ProgressPtr | mDispositionBar |
MyGUI::EditBox * | mDispositionText |
PersuasionDialog | mPersuasionDialog |
typedef MyGUI::delegates::CMultiDelegate0 MWGui::DialogueWindow::EventHandle_Void |
void MWGui::DialogueWindow::addChoice | ( | const std::string & | choice, |
int | id | ||
) |
void MWGui::DialogueWindow::addMessageBox | ( | const std::string & | text | ) |
void MWGui::DialogueWindow::addResponse | ( | const std::string & | text, |
const std::string & | title = "" |
||
) |
void MWGui::DialogueWindow::clearChoices | ( | ) |
void MWGui::DialogueWindow::goodbye | ( | ) |
void MWGui::DialogueWindow::onByeClicked | ( | MyGUI::Widget * | _sender | ) | [protected] |
void MWGui::DialogueWindow::onFrame | ( | ) |
void MWGui::DialogueWindow::onMouseWheel | ( | MyGUI::Widget * | _sender, |
int | _rel | ||
) | [protected] |
void MWGui::DialogueWindow::onReferenceUnavailable | ( | ) | [protected, virtual] |
called when reference has become unavailable
Implements MWGui::ReferenceInterface.
void MWGui::DialogueWindow::onScrollbarMoved | ( | MyGUI::ScrollBar * | sender, |
size_t | pos | ||
) | [protected] |
void MWGui::DialogueWindow::onSelectTopic | ( | const std::string & | topic, |
int | id | ||
) | [protected] |
void MWGui::DialogueWindow::onWindowResize | ( | MyGUI::Window * | _sender | ) | [protected] |
void MWGui::DialogueWindow::setKeywords | ( | std::list< std::string > | keyWord | ) |
void MWGui::DialogueWindow::setServices | ( | int | services | ) | [inline] |
void MWGui::DialogueWindow::startDialogue | ( | MWWorld::Ptr | actor, |
std::string | npcName | ||
) |
void MWGui::DialogueWindow::updateHistory | ( | bool | scrollbar = false | ) | [protected] |
void MWGui::DialogueWindow::updateOptions | ( | ) | [private] |
std::map<std::string, int> MWGui::DialogueWindow::mChoices [private] |
MyGUI::ProgressPtr MWGui::DialogueWindow::mDispositionBar [private] |
MyGUI::EditBox* MWGui::DialogueWindow::mDispositionText [private] |
bool MWGui::DialogueWindow::mEnabled [private] |
bool MWGui::DialogueWindow::mGoodbye [private] |
BookPage* MWGui::DialogueWindow::mHistory [private] |
std::vector<DialogueText*> MWGui::DialogueWindow::mHistoryContents [private] |
std::vector<Link*> MWGui::DialogueWindow::mLinks [private] |
MyGUI::ScrollBar* MWGui::DialogueWindow::mScrollBar [private] |
int MWGui::DialogueWindow::mServices [private] |
std::map<std::string, Link*> MWGui::DialogueWindow::mTopicLinks [private] |