#include <npc_text.h>

Definition at line 40 of file npc_text.h.
Public Member Functions | |
| NpcTextDialog () | |
| Constructor. | |
| void | action (const gcn::ActionEvent &event) |
| Called when receiving actions from the widgets. | |
| void | clearText () |
| Clears the text shown in the dialog. | |
| void | setText (const std::string &string) |
| Sets the text shows in the dialog. | |
| void | addText (const std::string &string) |
| Adds the text to the text shows in the dialog. | |
| void | showNextButton () |
| void | showCloseButton () |
| void | nextDialog (int npcID=current_npc) |
| Notifies the server that the client has performed a next action. | |
| void | closeDialog (int npcID=current_npc) |
| Notifies the server that the client has performed a close action. | |
| void | widgetResized (const gcn::Event &event) |
| Called when resizing the window. | |
Private Types | |
| enum | NPCTextState { NPC_TEXT_STATE_WAITING, NPC_TEXT_STATE_NEXT, NPC_TEXT_STATE_CLOSE } |
Private Attributes | |
| gcn::ScrollArea * | mScrollArea |
| TextBox * | mTextBox |
| gcn::Button * | mButton |
| std::string | mText |
| NPCTextState | mState |
enum NpcTextDialog::NPCTextState [private] |
Definition at line 103 of file npc_text.h.
| NpcTextDialog::NpcTextDialog | ( | ) |
| void NpcTextDialog::action | ( | const gcn::ActionEvent & | event | ) |
| void NpcTextDialog::clearText | ( | ) |
| void NpcTextDialog::setText | ( | const std::string & | string | ) |
Sets the text shows in the dialog.
| string | The new text. |
Definition at line 74 of file npc_text.cpp.
| void NpcTextDialog::addText | ( | const std::string & | string | ) |
Adds the text to the text shows in the dialog.
Also adds a newline to the end.
| string | The text to add. |
Definition at line 80 of file npc_text.cpp.
| void NpcTextDialog::showNextButton | ( | ) |
Definition at line 86 of file npc_text.cpp.
| void NpcTextDialog::showCloseButton | ( | ) |
Definition at line 93 of file npc_text.cpp.
| void NpcTextDialog::nextDialog | ( | int | npcID = current_npc |
) |
Notifies the server that the client has performed a next action.
Definition at line 123 of file npc_text.cpp.
| void NpcTextDialog::closeDialog | ( | int | npcID = current_npc |
) |
Notifies the server that the client has performed a close action.
Definition at line 128 of file npc_text.cpp.
| void NpcTextDialog::widgetResized | ( | const gcn::Event & | event | ) |
Called when resizing the window.
| event | The calling event |
Reimplemented from Window.
Definition at line 133 of file npc_text.cpp.
gcn::ScrollArea* NpcTextDialog::mScrollArea [private] |
Definition at line 97 of file npc_text.h.
TextBox* NpcTextDialog::mTextBox [private] |
Definition at line 98 of file npc_text.h.
gcn::Button* NpcTextDialog::mButton [private] |
Definition at line 99 of file npc_text.h.
std::string NpcTextDialog::mText [private] |
Definition at line 101 of file npc_text.h.
NPCTextState NpcTextDialog::mState [private] |
Definition at line 108 of file npc_text.h.
1.5.5