/* ========================================================================== * ÆÄ ÀÏ : GuildWindow.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2008-09-03 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" class cListBox; class cLabel; class cEditBox; class cUIImage; class cButton; struct sGuildUserInfo; class cGuildWindow : public cUIWindow { public: cGuildWindow(); virtual ~cGuildWindow(); virtual void Open(); virtual void Close(); void Clear(); void ClearList(); void Toggle(); void HideMark(); /// ±æµå À¯Àú Ãß°¡ void AddGuildPlayer( sGuildUserInfo* data ); void SetGuildName( LPCTSTR name ); void SetMasterName( LPCTSTR name ); void SetTotalCount( unsigned int count ); /// ÃÑÀοø ¼¼ÆÃ void SetConnectCount( unsigned int count ); void SetPosition( unsigned char position ); /// Á÷À§ ¼¼ÆÃ /// ±æµå°øÁö °»½Å void UpdateGuildNotice( LPCTSTR notice ); /// void SetEnableMarkChange( bool enable ); /// cUIRect GetGivePositionBtnRect(); /// ¸®½ºÆ® ¼±ÅÃµÈ À¯Àú Á¤º¸ sGuildUserInfo* GetSelectUserInfo(); /// ¼±Åà ¿­ unsigned int GetSelectRow(); void SetSelectRow( unsigned int row ); /// ±æµå¸¶Å© º¯°æ bool ChangeMark( NiTexture* tex ); protected: bool OnCreate( cUINodeProperty* pproperty ); void OnRender( cUIFontItemKeeper* pKeeper ); void OnCommand( cUINode* , unsigned int ); void OnListBoxRowHovered( cUINode* , unsigned int , const cUIPos& , void* ); void OnListBoxRowLeft(cUINode* , unsigned int ); void UpdateRect(); void OnShow(); void OnHide(); void OnNetLock( int lockTry ); void OnNetUnLock( int lockTry ); private: cListBox* mpList; cEditBox* mpNoticeEdit; cLabel* mpName; /// ±æµå¸í cLabel* mpMasterName; /// ¸¶½ºÅ͸í cLabel* mpPosition; /// ±æµå³» Á÷À§ cLabel* mpTotal; /// ÃÑ Àοø cLabel* mpConnectCount; /// Á¢¼ÓÀοø /// cButton* mpGuildAdd; /// ±æµå¿øÃÊ´ë cButton* mpGuildMemDrop; /// Á¦¸í cButton* mpGuildOut; /// Å»Åð cButton* mpGuildBreak; /// ÇØÃ¼ cButton* mpGuildGivePosition; /// Á÷À§ ºÎ¿© cUINode* mpNotice; cButton* mpMarkChange; /// ±æµå¸¶Å© cUIImage* mpMarkImage; bool mShowMark; /// ¸¶Å© À̹ÌÁö ½ºÅ² cUINodeSkin* mpMarkSkin; }; /// ±æµå ¹öư À©µµ¿ì (Á÷À§ºÎ¿©) class cGuildButtonWindow : public cUIWindow { public: cGuildButtonWindow(); virtual ~cGuildButtonWindow(); virtual void Open() {} void SetPosition( unsigned char position ); protected: bool OnCreate( cUINodeProperty* pproperty ); void OnCommand( cUINode* , unsigned int ); void OnMouseOtherClick( const cUIPos& pos ); void UpdateSkin(); private: /// ¹öư cUINode* mpMaster; cUINode* mpSubMaster; cUINode* mpElder; cUINode* mpUpperHouse; cUINode* mpLowerHouse; cUINode* mpGeneral; }; /// ±æµå ¸¶Å© µî·Ï UI class cGuildMarkWindow : public cUIWindow { public: cGuildMarkWindow(); virtual ~cGuildMarkWindow(); virtual void Open() {} /// ±æµå¸¶Å© º¯°æ bool ChangeMarkRegist( NiTexture* tex ); void HideESC( bool onsound = true ); protected: bool OnCreate( cUINodeProperty* pproperty ); void OnCommand( cUINode* , unsigned int ); void OnRender( cUIFontItemKeeper* pKeeper ); void UpdateRect(); void OnShow(); void OnHide(); private: cUIImage* mpMarkImage; /// ¸¶Å© À̹ÌÁö ½ºÅ² cUINodeSkin* mpMarkSkin; };