📄 game_editor.h
字号:
#include "scene_view.h"
#include "spr_view.h"
#define EDITOR_TARGET_WORLD 1
#define EDITOR_TARGET_COVER 2
#define EDITOR_TARGET_RUN 3
#define WORLD_ATTR_CHAR 1
#define WORLD_ATTR_COLOR 2
struct EDITOR_STATE
{
BOOL boShowWorldGrid;
BOOL boShowCoverGrid;
BOOL boShowWorldAttr;
BOOL boShowCoverAttr;
BOOL boShowCoverRedrawRect;
BOOL boShowMap;
BOOL boShowCha;
BOOL boShowChaPath;
BOOL boShowChaRect;
BOOL boCharMove;
BOOL boShowGridInfo;
BOOL boShowMapInfo;
int iWorldAttrShowMode;
int iEditorTarget;
};
class GAME_EDITOR
{
public:
GAME_SCENE *pScene;
SCENE_VIEW *pSceneView;
SPR_CHARACTER *pMan;
SPR_VIEW *pSprView;
EDITOR_STATE EditorState;
int iMouseAtCoverGridX;
int iMouseAtCoverGridY;
int iMouseAtWorldGridX;
int iMouseAtWorldGridY;
BOOL Init();
VOID Release();
VOID ReleaseDeviceObj();
BOOL HandleKeyboard();
BOOL HandleMouse(int iMouseState);
BOOL Run();
BOOL DrawAll();
VOID SetCoverHeight(int iGridX , int iGridY , BYTE bHeight);
BOOL GetCoverHeight(int iGridX , int iGridY , LPBYTE pbHeihgt);
VOID SetEditorTarget(int iTarget);
TCHAR strMouseInfo[128];
TCHAR strEditorTarget[64];
GAME_EDITOR()
{
pScene = NULL;
pSceneView = NULL;
pSprView = NULL;
}
~GAME_EDITOR()
{
Release();
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -