From 94f11a223e03c6845e7ce6e9fe67c0e9fa7061f4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 15 Feb 2011 03:32:36 +0200 Subject: Replace in npc dialogs textbox to browserbox. This allow use links, colors, etc. --- src/gui/npcdialog.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gui/npcdialog.h') 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 #include -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 mItems; + ItemLinkHandler *mItemLinkHandler; // Used for string and integer input TextField *mTextField; -- cgit v1.2.3-70-g09d2