diff options
Diffstat (limited to 'src/gui/npc_text.h')
-rw-r--r-- | src/gui/npc_text.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h index 5e2ff118..a1373830 100644 --- a/src/gui/npc_text.h +++ b/src/gui/npc_text.h @@ -1,9 +1,8 @@ /* - * Aethyra + * The Mana World * Copyright (C) 2004 The Mana World Development Team * - * This file is part of Aethyra based on original code - * from The Mana World. + * This file is part of The Mana World. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -71,6 +70,10 @@ class NpcTextDialog : public Window, public gcn::ActionListener */ void addText(const std::string &string); + void showNextButton(); + + void showCloseButton(); + /** * Called when resizing the window. * @@ -79,12 +82,18 @@ class NpcTextDialog : public Window, public gcn::ActionListener void widgetResized(const gcn::Event &event); private: - gcn::Button *okButton; gcn::ScrollArea *mScrollArea; TextBox *mTextBox; gcn::Button *mButton; std::string mText; + + enum NPCTextState { + NPC_TEXT_STATE_WAITING, + NPC_TEXT_STATE_NEXT, + NPC_TEXT_STATE_CLOSE + }; + int mState; }; #endif // NPC_TEXT_H |