📄 architectdlg.h
字号:
// ArchitectDlg.h : header file
//
#if !defined(AFX_ARCHITECTDLG_H__5CD7480E_FA1C_4CA7_B497_6A496B4C7EF0__INCLUDED_)
#define AFX_ARCHITECTDLG_H__5CD7480E_FA1C_4CA7_B497_6A496B4C7EF0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CArchitectDlg dialog
#include "BaseFunc.h"
#include "2DMapCoverObj.h"
#include "2DMapTerrainObj.h"
#include "MapSound.h"
#include "3DMapEffect.h"
class CArchitectDlg : public CDialog
{
// Construction
public:
CArchitectDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CArchitectDlg)
enum { IDD = IDD_ARCHITECT_DIALOG };
CListBox m_ctrlList;
CComboBox m_ctrlAreaList;
CSliderCtrl m_ctrlSliderMouse;
CStatic m_ctrlPicMain;
CString m_strMouseScrPos;
CString m_strMouseOperate;
CString m_strAltitude;
CString m_strPassage;
CString m_strLocateX;
CString m_strLocateY;
BOOL m_bCover;
BOOL m_bTerrain;
BOOL m_bScrInfo;
BOOL m_bSound;
BOOL m_bEffect;
BOOL m_bScale2;
BOOL m_bScale16;
BOOL m_bScale4;
BOOL m_bScale8;
BOOL m_bRegion;
BOOL m_bViewSet;
BOOL m_bResource;
int m_iLeft; // 最左点
int m_iRight; // 最右点
DWORD m_dwWidth; // 遮照宽度
DWORD m_dwHeight; // 遮照高度
bool m_bCoverMasked; // 是否添加掩码
CString m_StringBuffer; // 3D 特效缓存
int m_iRange; // 声音范围
int m_iVolume; // 音量
unsigned int m_uInterval; // 间隔
float m_fAngleX; // X 轴旋转角度
float m_fAngleY; // Y 轴旋转角度
float m_fAngleZ; // Z 轴旋转角度
float m_fScaleX; // X 方向缩放
float m_fScaleY; // Y 方向缩放
float m_fScaleZ; // Z 方向缩放
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CArchitectDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CArchitectDlg)
virtual BOOL OnInitDialog();
virtual BOOL OnIdle( LONG );
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnClose();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnButtonSetmask();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnButtonClrmouse();
afx_msg void OnButtonClearMask();
afx_msg void OnButtonLoaddmap();
afx_msg void OnCheckMinmap();
afx_msg void OnCheckMask();
afx_msg void OnButtonInitmask();
afx_msg void OnButtonSetarea();
afx_msg void OnButtonSetaltitude();
afx_msg void OnChangeEditAltitude();
afx_msg void OnButtonDelexit();
afx_msg void OnButtonAddexit();
afx_msg void OnChangeEditLocateX();
afx_msg void OnChangeEditLocateY();
afx_msg void OnButtonLocate();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnButtonDelcover();
afx_msg void OnButtonSavedmap();
afx_msg void OnButtonDelterrain();
afx_msg void OnButtonAddlayer();
afx_msg void OnButtonDellayer();
afx_msg void OnButtonLayerUp();
afx_msg void OnButtonLayerDown();
afx_msg void OnButtonNew();
afx_msg void OnButtonLoadtmap();
afx_msg void OnButtonSavetmap();
afx_msg void OnCheckSound();
afx_msg void OnCheckEffect();
afx_msg void OnButtonWorldLocate();
afx_msg void OnCheckScale2();
afx_msg void OnCheckScale4();
afx_msg void OnCheckScale8();
afx_msg void OnCheckScale16();
afx_msg void OnCheckRegion();
afx_msg void OnCheckViewset();
afx_msg void OnCheckTerrain();
afx_msg void OnCheckCover();
afx_msg void OnButtonIndexcounter();
afx_msg void OnButtonRle();
afx_msg void OnButton256();
afx_msg void OnButton128();
afx_msg void OnButtonCopycover();
afx_msg void OnButtonPastcover();
afx_msg void OnCheckResource();
afx_msg void OnCheckCoverList();
afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnSysKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnButtonAll();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
enum
{
_MOUSE_OPT_NONE = 0,
_MOUSE_OPT_SETMASK = 1,
_MOUSE_OPT_CLEARMASK = 2,
_MOUSE_OPT_SETAREA = 3,
_MOUSE_OPT_SETALTITUDE = 4,
_MOUSE_OPT_ADDEXIT = 5,
_MOUSE_OPT_DELEXIT = 6,
_MOUSE_OPT_PUTCOVER = 7,
_MOUSE_OPT_DELCOVER = 8,
_MOUSE_OPT_PUTTERRAIN = 9,
_MOUSE_OPT_DELTERRAIN = 10,
_MOUSE_OPT_ADDSOUNDOBJ = 11,
_MOUSE_OPT_DELSOUNDOBJ = 12,
_MOUSE_OPT_GETSOUNDOBJ = 13,
_MOUSE_OPT_ADD3DEFFECT = 14,
_MOUSE_OPT_DEL3DEFFECT = 15,
_MOUSE_OPT_SELECTREGION = 16,
_MOUSE_OPT_ADDREGION = 17,
_MOUSE_OPT_DELREGION = 18,
_MOUSE_OPT_COPYCOVER = 19,
_MOUSE_OPT_PASTCOVER = 20,
_MOUSE_OPT_SETRESOURCE = 21,
_MOUSE_OPT_DELRESOURCE = 22,
_MOUSE_OPT_MODIFY3DEFFECT = 23,
};
public:
bool m_bInMainScr;
int m_nMouseOperate;
int m_nViewOffsetX;
int m_nViewOffsetY;
CMyPos m_posMouseStart;
BOOL m_bMouseGrideBegin;
BOOL m_bLeftButtonDown;
int m_nAititude;
int m_iAltMouseCount; // 按下 Alt 键后鼠标左键点击的次数
CMyPos m_arrAltMousePos[4]; // 按下 Alt 键后鼠标左键点击的位置
vector<CMyPos> m_arrCellLine[4]; // 边上各地图单元的位置
int m_arrLengthOfLine[4]; // 边的长度
vector<int> m_arrCellTop; // 上边界
vector<int> m_arrCellBottom; // 下边界
C2DMapCoverObj* m_p2DMapCoverObj;
vector<C2DMapCoverObj*> m_setMapCoverObj;
vector<CMyPos> m_setMapCoverObjPos;
C2DMapTerrainObj* m_p2DMapTerrainObj;
CMapSound* m_pMapSound;
C3DMapEffect* m_p3DMapEffect;
public:
void ClearMapCoverObjSet();
void MyInit();
void Loop();
void LoopCover();
void Destroy();
void OnOpenDMap();
void OnSaveDMap();
void ProcessViewPos();
void ShowMiniMap();
BOOL ProcessMiniMap();
void ProcessMouseGride();
void ShowMouseGride();
void EndMouseGride();
void ProcessTerrain();
void LoadAreaList();
void ShowMouseInfo();
void FlashLayer();
void OnOpenTMap();
void OnSaveTMap();
void ShowStar(CMyPos posShow); // 显示星形标记
void SelectOperator(); // 选择操作类型
void SetAltLineCell(int iNumber); // 设置 Alt 键按下后连线地图单元
void ShowAltLine(); // 显示 Alt 键按下后连线
void ShowAltRage(); // 显示 Alt 键按下后选定的范围
void ResetAltData();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ARCHITECTDLG_H__5CD7480E_FA1C_4CA7_B497_6A496B4C7EF0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -