/* ========================================================================== * ÆÄ ÀÏ : OptionGauge.h * ¸ñ Àû : ¿É¼Ç°ÔÀÌÁö * ÀÛ ¼º ÀÚ : ±è°¡¶÷ * ÀÛ ¼º ÀÏ : 2007-03-22 * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIWindow.h" #include "UINodeData.h" class cBarButton; class cOptionGauge : public cUIWindow { public: cOptionGauge( eUINodeType type = eUINODE_OPTIONGAUGE ); virtual ~cOptionGauge(); /// ÇöÀç °ÔÀÌÁö¸¦ ¾÷µ¥ÀÌÆ® void UpdateCurGauge(); /// °ÔÀÌÁö ÆÛ¼¾Æ® ¸®ÅÏ inline float GetPercent() { return mCurPercent; } void SetPercent( float per ); protected: /// ÀûÇÕ ¿©ºÎ¸¦ ¸®ÅÏ virtual bool IsValid() const; /// À̺¥Æ® ó¸® virtual bool HandleEvent( const cUIEvent& event ); virtual bool SetSkin( const cUINodeSkin* pskin ); virtual void OnLButtonDown( const cUIPos& pos, bool ctrl, bool alt, bool shift ); /// »ý¼º bool OnCreate( cUINodeProperty* pproperty ); /// ¹Ù ¹öư À̵¿ À̺¥Æ® ¹ß»ý½Ã void UpdateBarButtonPos( const cUIPos& pos ); private: /// ¹Ù ¹öư ½ºÅ² À̸§ cString mBarButtonSkin; /// ¹Ù ¹öư cBarButton* mpBarButton; /// ÇöÀç ¿É¼Ç°ÔÀÌÁöÀÇ ÆÛ¼¾Æ® float mCurPercent; }; ///////////////////////////////////////////////////////////////////////// class cOptionGaugeSkin : public cUINodeSkin { public: cOptionGaugeSkin( eUINodeType type = eUINODE_OPTIONGAUGE ); virtual ~cOptionGaugeSkin(); /// ·Îµù virtual bool Load( cParser& parser ); public: /// ¹Ù ¹öư ½ºÅ² À̸§ cString mBarButtonSkin; };