/* ========================================================================== * ÆÄ ÀÏ : LootingWindow.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2007-10-25 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" #include "StyleListBox.h" #include "Item_Common.h" /// ³×Æ®¿öÅ© ¶ô enum { eLOCK_CLOSE, eLOCK_GETITEM, }; class cUIImage; class cButton; class cImageAndFontDataListBox; struct sLootData { unsigned long itemDefineIndex; // ¾ÆÀÌÅÛ Á¤ÀÇ À妽º unsigned short count; // ¼ö·® sLootData() { itemDefineIndex = 0; count = 0; } }; const unsigned long LINK_DELAYTIME = 1000; /// ¾ÆÀÌÅÛ ¸µÅ© ¹öư µô·¹ÀÌ ½Ã°£ /// class cLootingWindow : public cUIWindow { public: cLootingWindow(); virtual ~cLootingWindow(); virtual void Open(); virtual void Close(); void Clear(); /// bool AddItem( sItemData* data ); sLootData* GetSelectData(); float GetWeight(); // void SetDropIndex( unsigned long dropIndex ) { mDropIndex = dropIndex; } /// void OnCommand( cUINode* pcaller, unsigned int id ); protected: bool OnCreate( cUINodeProperty* pproperty ); void OnProcess( unsigned long deltaTime, unsigned long accumTime ); void OnListBoxSelected(cUINode* , unsigned int ); void OnListBoxImageHorvered(cUINode* , unsigned int , const cUIPos& , void* ); void OnListBoxImageLeft(cUINode* , unsigned int ); void OnListBoxSelectedRButton( cUINode* , unsigned int , bool shift ); void UpdateRect(); void UpdateSkin(); void OnShow(); void OnHide(); void OnNetLock( int lockTry ); void OnNetUnLock( int lockTry ); private: /// µô·¹ÀÌ ½Ã°£ üũ unsigned long mLinkDelayTime; /// sItemData typedef tList cItemLootList; cItemLootList mItemLootList; /// cImageAndFontDataListBox* mpItemList; /// ½Àµæ¹öư cButton* mpGetButton; cButton* mpCloseButton; cButton* mpLinkButton; // µå¶ø ¾ÆÀÌÅÛ ¿¬°á À妽º unsigned long mDropIndex; }; // ¾ÆÀÌÅÛ ºÐ¹è À©µµ¿ì class cItemDivideWindow : public cUIWindow { public: cItemDivideWindow(); virtual ~cItemDivideWindow(); virtual void Open() {} virtual void Close() {} void Clear(); void Show( unsigned long dropIndex ); void Show( bool onsound = true ) { assert(0); } unsigned long GetUserIndex() { return mTempPlayerIndex; } unsigned long GetItemIndex() { return mTempItemIndex; } protected: bool OnCreate( cUINodeProperty* pproperty ); void OnCommand( cUINode* , unsigned int ); void OnListBoxRowHovered( cUINode* , unsigned int , const cUIPos& , void* ); void OnListBoxRowLeft(cUINode* , unsigned int ); void UpdateSkin(); void OnHide(); void OnNetLock( int lockTry ); void OnNetUnLock( int lockTry ); private: // ÆÄƼ¿ø ¸®½ºÆ® cListBox* mpListBox; // Áö±Þ cButton* mpGive; // Àӽà ÀúÀå¼Ò unsigned long mTempPlayerIndex; unsigned long mTempItemIndex; };