This commit is contained in:
parent
08c732c29a
commit
aefdd396f8
51 changed files with 1467 additions and 682 deletions
|
@ -5,6 +5,9 @@
|
|||
#include "mapedit.h"
|
||||
#include "GUILayerPlatform.h"
|
||||
|
||||
#include "MapEditDoc.h"
|
||||
#include "MainFrm.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
|
@ -18,9 +21,10 @@ static char THIS_FILE[] = __FILE__;
|
|||
CGUILayerPlatform::CGUILayerPlatform(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CGUILayerPlatform::IDD, pParent)
|
||||
{
|
||||
DisableCallback(true);
|
||||
//{{AFX_DATA_INIT(CGUILayerPlatform)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
DisableCallback(false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -28,16 +32,49 @@ void CGUILayerPlatform::DoDataExchange(CDataExchange* pDX)
|
|||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CGUILayerPlatform)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
DDX_Control(pDX, IDC_PLATFORM_TYPE, m_Type);
|
||||
DDX_Control(pDX, IDC_PLATFORM_MOVE_TYPE, m_MoveList);
|
||||
DDX_Control(pDX, IDC_PLATFORM_COLLISION, m_Collision);
|
||||
DDX_Control(pDX, IDC_PLATFORM_TURNRATE, m_TurnRate);
|
||||
DDX_Control(pDX, IDC_PLATFORM_SPEED, m_Speed);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CGUILayerPlatform, CDialog)
|
||||
//{{AFX_MSG_MAP(CGUILayerPlatform)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
ON_EN_CHANGE(IDC_PLATFORM_SPEED, OnChangeParam)
|
||||
ON_BN_CLICKED(IDC_PLATFORM_COLLISION, OnChangeParam)
|
||||
ON_EN_CHANGE(IDC_PLATFORM_TURNRATE, OnChangeParam)
|
||||
ON_CBN_SELCHANGE(IDC_PLATFORM_TYPE, OnChangeParam)
|
||||
ON_CBN_SELCHANGE(IDC_PLATFORM_MOVE_TYPE, OnChangeParam)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
void CGUILayerPlatform::SetVal(CEdit &Dlg,int Val)
|
||||
{
|
||||
CString Str;
|
||||
if (!Dlg) return;
|
||||
DisableCallback(true);
|
||||
Str.Format("%i",Val);
|
||||
Dlg.SetWindowText(Str);
|
||||
DisableCallback(false);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
int CGUILayerPlatform::GetVal(CEdit &Dlg)
|
||||
{
|
||||
CString Str;
|
||||
int Val=0;
|
||||
if (!Dlg) return(0);
|
||||
Dlg.GetWindowText(Str);
|
||||
if (Str.GetLength())
|
||||
Val=atoi(Str);
|
||||
return(Val);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CGUILayerPlatform message handlers
|
||||
|
||||
void CGUILayerPlatform::OnChangeParam() {if (!CallbackFlag) theApp.GetCurrent()->GUIChanged();}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue