From c01aec243610016c2cd5e4211fee484627bc69ea Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Jun 2012 14:37:49 +0300 Subject: Add npc avatars for evol server. Change protocol version to 6. --- src/gui/npcdialog.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/gui/npcdialog.h') diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index f56af664e..68ee17e33 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -34,10 +34,12 @@ #include +class Being; class BrowserBox; class ItemLinkHandler; class IntTextField; class ListBox; +class PlayerBox; class TextBox; class TextField; class Button; @@ -184,12 +186,28 @@ class NpcDialog : public Window, public gcn::ActionListener, void refocus(); + void showAvatar(int avatarId); + + void setAvatarDirection(uint8_t direction); + + void setAvatarAction(int actionId); + + void logic(); + private: typedef std::list DialogList; static DialogList instances; void buildLayout(); + void placeNormalControls(); + + void placeMenuControls(); + + void placeTextInputControls(); + + void placeIntInputControls(); + int mNpcId; bool mLogInteraction; @@ -245,6 +263,9 @@ class NpcDialog : public Window, public gcn::ActionListener, int mCameraMode; int mCameraX; int mCameraY; + PlayerBox *mPlayerBox; + Being *mAvatarBeing; + bool mShowAvatar; }; #endif // NPCDIALOG_H -- cgit v1.2.3-60-g2f50