diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-15 03:32:36 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-15 03:32:36 +0200 |
commit | 94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4 (patch) | |
tree | f928dbd50f5f81db1935be1734d9903680798c48 /src/gui/npcdialog.h | |
parent | 3805d1384894a33ecb09e4852d47afb04ddb0687 (diff) | |
download | plus-94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4.tar.gz plus-94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4.tar.bz2 plus-94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4.tar.xz plus-94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4.zip |
Replace in npc dialogs textbox to browserbox. This allow use links, colors, etc.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r-- | src/gui/npcdialog.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index c4a567c06..35015f3ce 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -33,10 +33,12 @@ #include <string> #include <vector> -class TextBox; +class BrowserBox; +class ItemLinkHandler; +class IntTextField; class ListBox; +class TextBox; class TextField; -class IntTextField; class Button; /** @@ -67,7 +69,7 @@ class NpcDialog : public Window, public gcn::ActionListener, * * @param string The new text. */ - void setText(const std::string &string); +// void setText(const std::string &string); /** * Adds the text to the text shows in the dialog. Also adds a newline @@ -190,7 +192,8 @@ class NpcDialog : public Window, public gcn::ActionListener, // Used for the main input area gcn::ScrollArea *mScrollArea; - TextBox *mTextBox; + BrowserBox *mTextBox; + //TextBox *mTextBox; std::string mText; std::string mNewText; @@ -198,6 +201,7 @@ class NpcDialog : public Window, public gcn::ActionListener, ListBox *mItemList; gcn::ScrollArea *mListScrollArea; std::vector<std::string> mItems; + ItemLinkHandler *mItemLinkHandler; // Used for string and integer input TextField *mTextField; |