diff options
Diffstat (limited to 'src/T2DLL/T2DlgItemAnimation.h')
-rw-r--r-- | src/T2DLL/T2DlgItemAnimation.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/T2DLL/T2DlgItemAnimation.h b/src/T2DLL/T2DlgItemAnimation.h index e3ac516..613bf65 100644 --- a/src/T2DLL/T2DlgItemAnimation.h +++ b/src/T2DLL/T2DlgItemAnimation.h @@ -1,17 +1,24 @@ #pragma once #include "common.h" +#include "T2DlgItem.h" -class T2DlgItemAnimation { +class AFX_EXT_CLASS T2DlgItemAnimation : public T2DlgItem { public: - T2DlgItemAnimation(T2TowerDoc*, T2ImageObj*, CPalette*); + T2DlgItemAnimation(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemAnimation(); + void SetAnimation(HINSTANCE inModule, int inResID, int unk); + void SetAnimationParam(int inDelay, int inStartFrame); + protected: - virtual int OnT2DlgItemEraseBkgnd(CDC*); -public: - void SetAnimation(HINSTANCE, int, int); - void SetAnimationParam(int, int); -protected: - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); + virtual BOOL OnT2DlgItemEraseBkgnd(CDC*); + virtual int OnT2DlgItemCreate(CREATESTRUCT*); virtual void OnT2Close(); - virtual void OnT2Timer(unsigned int); + virtual void OnT2Timer(UINT); + + T2BitImage *mBitImage; + T2ImageObj *mImageObj; + int mCurrentFrame; + int mStartFrame; + int mDelay; + BOOL mTimerCreated; }; |