/* ========================================================================== * ÆÄ ÀÏ : CastingBar.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2007-01-09 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" class cGauge; class cLabel; class cUIImage; enum eCASTINGTYPE { eCasting_Skill = 0, eCasting_Gather, eCasting_Max, }; class cCastingBar : public cUIWindow { public: cCastingBar(); virtual ~cCastingBar(); virtual void Open(); virtual void Close(); float GetPercent(); /// ij½ºÆÃ¹ÙÀÇ ½Ã°£ ÁöÁ¤ void SetTime( unsigned long index, eCASTINGTYPE type, unsigned long sec ); void Clear( eCASTINGTYPE type ); /// ±âº»ÇÔ¼ö ¹èÁ¦ virtual void Show( bool ) { assert(0); } virtual void Hide( bool ) { assert(0); } protected: bool OnCreate( cUINodeProperty* pproperty ); void OnProcess( unsigned long deltaTime, unsigned long accumTime ); void OnRender( cUIFontItemKeeper* pKeeper ); void UpdateRect(); void OnGaugeEnd(cUINode* , unsigned int ); void OnShow(); void OnHide(); void SetTimeText( float time ); protected: /// ij½ºÆÃ °ÔÀÌÁö Ʋ cGauge* mpCastingBar; cLabel* mpName; /// ½ºÅ³ À̸§ cLabel* mpTime; /// ij½ºÆÃ ³²Àº ½Ã°£ cPlaneObject* mpCastingBarEndEffect; eCASTINGTYPE mType; unsigned long mCastingIndex; unsigned long mStartTime; unsigned long mRestTime; /// ³²Àº½Ã°£ cUIImage* mpIconImage; cUIPos mIconPos; };