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 "GUILayerFX.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__;
|
|||
CGUILayerFX::CGUILayerFX(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CGUILayerFX::IDD, pParent)
|
||||
{
|
||||
DisableCallback(true);
|
||||
//{{AFX_DATA_INIT(CGUILayerFX)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
DisableCallback(false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -28,16 +32,45 @@ void CGUILayerFX::DoDataExchange(CDataExchange* pDX)
|
|||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CGUILayerFX)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
DDX_Control(pDX, IDC_FX_WIDTH, m_Width);
|
||||
DDX_Control(pDX, IDC_FX_HEIGHT, m_Height);
|
||||
DDX_Control(pDX, IDC_FX_SPEED, m_Speed);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CGUILayerFX, CDialog)
|
||||
//{{AFX_MSG_MAP(CGUILayerFX)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
ON_EN_CHANGE(IDC_FX_SPEED, OnParamChange)
|
||||
ON_EN_CHANGE(IDC_FX_HEIGHT, OnParamChange)
|
||||
ON_EN_CHANGE(IDC_FX_WIDTH, OnParamChange)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
void CGUILayerFX::SetVal(CEdit &Dlg,int Val)
|
||||
{
|
||||
CString Str;
|
||||
if (!Dlg) return;
|
||||
DisableCallback(true);
|
||||
Str.Format("%i",Val);
|
||||
Dlg.SetWindowText(Str);
|
||||
DisableCallback(false);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
int CGUILayerFX::GetVal(CEdit &Dlg)
|
||||
{
|
||||
CString Str;
|
||||
int Val=0;
|
||||
if (!Dlg) return(0);
|
||||
Dlg.GetWindowText(Str);
|
||||
if (Str.GetLength())
|
||||
Val=atoi(Str);
|
||||
return(Val);
|
||||
}
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CGUILayerFX message handlers
|
||||
|
||||
void CGUILayerFX::OnParamChange() {if (!CallbackFlag) theApp.GetCurrent()->GUIChanged();}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue