helper.h
来自「墨香最新私服」· C头文件 代码 · 共 51 行
H
51 行
//////////////////////////////////////////////
// 1. AnimationÀ» °¡´ÉÇÏ°Ô ¸¸µé°ÍÀÓ. (ÇöÀç ÇÑÀå Å×½ºÆ®)
//
//////////////////////////////////////////////
#ifndef _HELPER_
#define _HELPER_
#include "./interface/cAni.h"
#include "./interface/cDialog.h"
enum HELPER_MOTION {
emHM_Stand,
emHM_MAX,
};
class cHelper : public cDialog // WindowId µî·Ï ÇØ ³õ´Â´Ù.
{
protected:
cAni m_MotionList[emHM_MAX]; // µ¿ÀÛ ¸®½ºÆ®
WORD m_wCurMotion; // ÇöÀç µ¿ÀÛ
DWORD m_dwStartTime;
DWORD m_dwGreetTime;
DWORD m_dwCurTime;
BOOL m_bGreetCheck;
public:
cHelper();
virtual ~cHelper();
virtual void Render();
virtual DWORD ActionEvent(CMouse * mouseInfo);
void AddSprite( WORD wIdx, cImage* sprite, WORD delay );
void SetMaxSprite( WORD wIdx, int nMaxNum );
void SetMotion( HELPER_MOTION Idx );
WORD GetMotion() { return m_wCurMotion; }
void SetStartTime(DWORD time) { m_dwStartTime = m_dwCurTime = time; m_bGreetCheck = TRUE; }
void SetGreetTime(DWORD time) { m_dwGreetTime = time; }
DWORD GetGreetTime() { return m_dwGreetTime; }
BOOL IsGreetCheck() { return m_bGreetCheck; }
void StopGreetCheck() { m_bGreetCheck = FALSE; }
};
#endif //_HELPER_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?