![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
A window for choosing and editing conversations. More...
#include <ConversationWindow.hpp>
Public Types | |
using | SelectCb = std::function< void(const std::string &)> |
Callback for when a conversation is chosen. More... | |
using | CancelCb = std::function< void()> |
Callback for when the window is closed with no choice made. More... | |
Public Member Functions | |
ConversationWindow (const SelectCb &onSelect, const CancelCb &onCancel) | |
Initialize a new conversation window. More... | |
void | open (bl::gui::GUI *parent, const std::string ¤t) |
Actually opens the window and initializes with a conversation. More... | |
A window for choosing and editing conversations.
Definition at line 18 of file ConversationWindow.hpp.
using editor::component::ConversationWindow::CancelCb = std::function<void()> |
Callback for when the window is closed with no choice made.
Definition at line 24 of file ConversationWindow.hpp.
using editor::component::ConversationWindow::SelectCb = std::function<void(const std::string&)> |
Callback for when a conversation is chosen.
Definition at line 21 of file ConversationWindow.hpp.
editor::component::ConversationWindow::ConversationWindow | ( | const SelectCb & | onSelect, |
const CancelCb & | onCancel | ||
) |
Initialize a new conversation window.
onSelect | Callback to call when a conversation is chosen |
onCancel | Callback to call when the window is closed |
Definition at line 58 of file ConversationWindow.cpp.
void editor::component::ConversationWindow::open | ( | bl::gui::GUI * | parent, |
const std::string & | current | ||
) |
Actually opens the window and initializes with a conversation.
parent | The parent GUI object |
current | The conversation to load. Blank to make a new one |
Definition at line 217 of file ConversationWindow.cpp.