#pragma once #include "UIWindow.h" const int MENU_GAPX = 4; const int MENU_GAPY = 9; enum ePopupPos { ePopupPos_Character = 0, ePopupPos_TargetWindow, ePopupPos_PartyWindow, }; enum ePopupMenuType { ePopupMenuType_Whisper = 1, /// ±Ó¼Ó¸» 800 ePopupMenuType_Friend, /// Ä£±¸µî·Ï 802 ePopupMenuType_PartyIn, /// ÆÄƼÃÊ´ë 803 ePopupMenuType_PartyLeader, /// ÆÄƼÀå À§ÀÓ 804 ePopupMenuType_PartyOut, /// ÆÄƼ¿ø Ãß¹æ 805 ePopupMenuType_Duel, /// °áÅõ ½Åû 806 ePopupMenuType_Trade, /// °Å·¡ ¿äû 807 ePopupMenuType_GuildIn, /// ±æµå ÃÊ´ë 808 ePopupMenuType_Follow, /// µû¶ó°¡±â 809 ePopupMenuType_UnionLeader, /// ¿¬ÇÕÀå À§ÀÓ 810 ePopupMenuType_Camael, /// ÀÚµ¿»ç³É½Å°í 811 ePopupMenuType_PvPReport, /// ÀüÀå½Å°í 812 ePopupMenuType_LookPlayer, /// »ìÆìº¸±â 813 }; class cListBox; class cLabel; class cPlaneObject; class cRButtonMenuWindow : public cUIWindow { public: cRButtonMenuWindow(); virtual ~cRButtonMenuWindow(); virtual void Open(); virtual void Close(); void PopUp( int posX, int posY, unsigned long playerIdx, LPCTSTR playerName, ePopupPos caller ); protected: bool OnCreate( cUINodeProperty* prop ); void OnRender( cUIFontItemKeeper* fontKeeper ); void OnMouseOtherClick( const cUIPos& pos ); void OnListBoxChanged( cUINode* caller, unsigned int id ); void OnHide(); void Clear(); protected: enum { eBACKIMAGE_TOP = 0, eBACKIMAGE_CENTER, eBACKIMAGE_BOTTOM, eBACKIMAGE_LEFT, eBACKIMAGE_RIGHT, eBACKIMAGE_MAX }; cListBox* mpMenuList; cLabel* mpName; /// ¹è°æ À̹ÌÁö cUINodeSkin* mpBackSkin[eBACKIMAGE_MAX]; cPlaneObject* mpBackImage[eBACKIMAGE_MAX]; unsigned long mPlayerIdx; cStringT mPlayerName; unsigned int mInitWidth; }; // NPC ´ëÈ­Çϱ⠹öư class cTalkButtonWindow : public cUIWindow { public: cTalkButtonWindow(); virtual ~cTalkButtonWindow(); void Open() {} bool Create( const cString& skinName ); void SetNpcIndex( unsigned long npcIndex ) { mNpcIndex = npcIndex; } void Show( unsigned long px, unsigned long py ); void Show( bool onsound = true ) { assert(0); } void HideESC( bool onsound = true ) {} protected: bool OnCreate( cUINodeProperty* pproperty ); void OnCommand( cUINode* , unsigned int ); private: unsigned long mNpcIndex; };