36 lines
707 B
C++
36 lines
707 B
C++
#pragma once
|
|
#include "EtUIControl.h"
|
|
|
|
//#define PRE_MOD_ANIMATIONUI_PLAY_CONTROL
|
|
|
|
class CEtUIAnimation : public CEtUIControl
|
|
{
|
|
public:
|
|
CEtUIAnimation( CEtUIDialog *pParent );
|
|
virtual ~CEtUIAnimation(void);
|
|
|
|
protected:
|
|
int m_nFrameCount;
|
|
int m_nCurrentFrame;
|
|
float m_fDelayTime;
|
|
bool m_bPlay;
|
|
#ifdef PRE_MOD_ANIMATIONUI_PLAY_CONTROL
|
|
UIAnimationPlayTimeType m_PlayTimeType;
|
|
float m_fPerActionTime;
|
|
#endif
|
|
|
|
// 애니메이션이 사라질때 알파페이드아웃이 있어야하는가. 보류.
|
|
//bool m_bAlphaFadeOut;
|
|
|
|
public:
|
|
void SetLoop( bool bLoop );
|
|
|
|
void Play();
|
|
void Stop();
|
|
|
|
bool IsPlaying();
|
|
|
|
public:
|
|
virtual void Initialize( SUIControlProperty *pProperty );
|
|
virtual void Render( float fElapsedTime );
|
|
};
|