-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObStatView.cpp
152 lines (124 loc) · 5.07 KB
/
ObStatView.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*===========================================================================
*
* File: ObStatView.CPP
* Author: Dave Humphrey ([email protected])
* Created On: October 12, 2006
*
* Description
*
*=========================================================================*/
/* Include Files */
#include "stdafx.h"
#include "obedit.h"
#include "obstatview.h"
#include "dialogs/obeditdlghandler.h"
/*===========================================================================
*
* Begin Local Definitions
*
*=========================================================================*/
//#ifdef _DEBUG
// #define new DEBUG_NEW
// #undef THIS_FILE
// static char THIS_FILE[] = __FILE__;
//#endif
IMPLEMENT_DYNCREATE(CObStatView, CObRecordDialog);
/*===========================================================================
* End of Local Definitions
*=========================================================================*/
/*===========================================================================
*
* Begin CObStatView Message Map
*
*=========================================================================*/
BEGIN_MESSAGE_MAP(CObStatView, CObRecordDialog)
//{{AFX_MSG_MAP(CObStatView)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/*===========================================================================
* End of CObStatView Message Map
*=========================================================================*/
/*===========================================================================
*
* Begin UI Field Map
*
*=========================================================================*/
BEGIN_OBRECUIFIELDS(CObStatView)
ADD_OBRECUIFIELDS( OB_FIELD_EDITORID, IDC_EDITORID, 128, IDS_TT_EDITORID)
ADD_OBRECUIFIELDS( OB_FIELD_FORMID, IDC_FORMID, 128, IDS_TT_FORMID)
ADD_OBRECUIFIELDS( OB_FIELD_MODEL, IDC_MODEL, 256, IDS_TT_MODEL)
ADD_OBRECUIFIELDS( OB_FIELD_QUESTITEM, IDC_QUESTITEM, 0, IDS_TT_QUESTITEM)
END_OBRECUIFIELDS()
/*===========================================================================
* End of UI Field Map
*=========================================================================*/
/*===========================================================================
*
* Class CObStatView Constructor
*
*=========================================================================*/
CObStatView::CObStatView() : CObRecordDialog(CObStatView::IDD) {
//{{AFX_DATA_INIT(CObStatView)
//}}AFX_DATA_INIT
m_ScriptType = 0;
m_EnchantType = 0;
m_InitialSetData = false;
}
/*===========================================================================
* End of Class CObStatView Constructor
*=========================================================================*/
/*===========================================================================
*
* Class CObStatView Destructor
*
*=========================================================================*/
CObStatView::~CObStatView() {
}
/*===========================================================================
* End of Class CObStatView Destructor
*=========================================================================*/
/*===========================================================================
*
* Class CObStatView Method - void DoDataExchange (pDX);
*
*=========================================================================*/
void CObStatView::DoDataExchange (CDataExchange* pDX) {
CObRecordDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CObStatView)
DDX_Control(pDX, IDC_MODEL, m_Model);
DDX_Control(pDX, IDC_EDITORID, m_EditorID);
DDX_Control(pDX, IDC_FORMID, m_FormID);
DDX_Control(pDX, IDC_QUESTITEM, m_QuestItem);
//}}AFX_DATA_MAP
}
/*===========================================================================
* End of Class Method CObStatView::DoDataExchange()
*=========================================================================*/
/*===========================================================================
*
* Begin CObStatView Diagnostics
*
*=========================================================================*/
#ifdef _DEBUG
void CObStatView::AssertValid() const {
CObRecordDialog::AssertValid();
}
void CObStatView::Dump(CDumpContext& dc) const {
CObRecordDialog::Dump(dc);
}
#endif
/*===========================================================================
* End of CObStatView Diagnostics
*=========================================================================*/
/*===========================================================================
*
* Class CObStatView Event - void OnInitialUpdate (void);
*
*=========================================================================*/
void CObStatView::OnInitialUpdate (void) {
CObRecordDialog::OnInitialUpdate();
SetControlData();
}
/*===========================================================================
* End of Class Event CObStatView::OnInitialUpdate()
*=========================================================================*/