forked from Corran-Raisu/FLCompanion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpeedDelaysDlg.cpp
68 lines (56 loc) · 1.69 KB
/
SpeedDelaysDlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// SettingsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "FLCompanion.h"
#include "SpeedDelaysDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSpeedDelaysDlg dialog
CSpeedDelaysDlg::CSpeedDelaysDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSpeedDelaysDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSpeedDelaysDlg)
m_engineSpeed = 0;
m_laneSpeed = 0;
m_jumpDelay = 0;
m_holeDelay = 0;
m_laneDelay = 0;
m_baseDelay = 0;
//}}AFX_DATA_INIT
}
void CSpeedDelaysDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSpeedDelaysDlg)
DDX_Text(pDX, IDC_ENGINE_SPEED, m_engineSpeed);
DDV_MinMaxUInt(pDX, m_engineSpeed, 1, 4294967295);
DDX_Text(pDX, IDC_JUMP_DELAY, m_jumpDelay);
DDX_Text(pDX, IDC_LANE_DELAY, m_laneDelay);
DDX_Text(pDX, IDC_LANE_SPEED, m_laneSpeed);
DDV_MinMaxUInt(pDX, m_laneSpeed, 1, 4294967295);
DDX_Text(pDX, IDC_BASE_DELAY, m_baseDelay);
DDX_Text(pDX, IDC_HOLE_DELAY, m_holeDelay);
//}}AFX_DATA_MAP
}
void CSpeedDelaysDlg::SetDefaults()
{
//{{AFX_DATA_INIT(CSpeedDelaysDlg)
SetDlgItemText(IDC_ENGINE_SPEED, L"350");
SetDlgItemText(IDC_LANE_SPEED, L"1900");
SetDlgItemText(IDC_JUMP_DELAY, L"15");
SetDlgItemText(IDC_HOLE_DELAY, L"15");
SetDlgItemText(IDC_LANE_DELAY, L"10");
SetDlgItemText(IDC_BASE_DELAY, L"20");
//}}AFX_DATA_INIT
}
BEGIN_MESSAGE_MAP(CSpeedDelaysDlg, CDialog)
//{{AFX_MSG_MAP(CSpeedDelaysDlg)
ON_BN_CLICKED(IDC_DEFAULTSPEED, SetDefaults)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSpeedDelaysDlg message handlers