summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-27 17:31:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-27 18:37:33 +0300
commit2433741a77ba0f08f4243a9482d3cf95cfe9edf3 (patch)
tree193fcf05c35fcc5096302482598abfe299270996 /src/gui/windows/npcdialog.h
parentd3010ba93e3f30b4af2314434c21f114459b8ef7 (diff)
downloadManaVerse-2433741a77ba0f08f4243a9482d3cf95cfe9edf3.tar.gz
ManaVerse-2433741a77ba0f08f4243a9482d3cf95cfe9edf3.tar.bz2
ManaVerse-2433741a77ba0f08f4243a9482d3cf95cfe9edf3.tar.xz
ManaVerse-2433741a77ba0f08f4243a9482d3cf95cfe9edf3.zip
Impliment npc menu skins based on previous commits.
Diffstat (limited to 'src/gui/windows/npcdialog.h')
-rw-r--r--src/gui/windows/npcdialog.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h
index 4f6a0f3cf..6c6ea7fba 100644
--- a/src/gui/windows/npcdialog.h
+++ b/src/gui/windows/npcdialog.h
@@ -35,6 +35,7 @@
class Being;
class Button;
class BrowserBox;
+class Container;
class ExtendedListBox;
class ItemLinkHandler;
class Inventory;
@@ -233,12 +234,18 @@ class NpcDialog final : public Window,
void placeMenuControls();
+ void placeSkinControls();
+
void placeTextInputControls();
void placeIntInputControls();
void placeItemInputControls();
+ void createSkinControls();
+
+ void deleteSkinControls();
+
BeingId mNpcId;
int mDefaultInt;
@@ -253,6 +260,8 @@ class NpcDialog final : public Window,
// Used for choice input
ExtendedListBox *mItemList A_NONNULLPOINTER;
ScrollArea *mListScrollArea A_NONNULLPOINTER;
+ Container *mSkinContainer A_NONNULLPOINTER;
+ ScrollArea *mSkinScrollArea A_NONNULLPOINTER;
StringVect mItems;
std::vector<Image *> mImages;
ItemLinkHandler *mItemLinkHandler A_NONNULLPOINTER;
@@ -296,6 +305,8 @@ class NpcDialog final : public Window,
NpcInputState mInputState;
NpcActionState mActionState;
+ std::vector<Widget*> mSkinControls;
+ std::string mSkinName;
PlayerBox *mPlayerBox A_NONNULLPOINTER;
Being *mAvatarBeing;
int mLastNextTime;