-
Notifications
You must be signed in to change notification settings - Fork 1
/
EsmAlchemyDlg.h
140 lines (114 loc) · 4.9 KB
/
EsmAlchemyDlg.h
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
/*===========================================================================
*
* File: Esmalchemydlg.H
* Author: Dave Humphrey (uesp@m0use.net)
* Created On: February 10, 2003
*
* Description
*
*=========================================================================*/
#ifndef __ESMALCHEMYDLG_H
#define __ESMALCHEMYDLG_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "EsmRecDialog.h"
#include "Resource.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
/*===========================================================================
*
* Begin Class CEsmAlchemyDlg Definition
*
*=========================================================================*/
class CEsmAlchemyDlg : public CEsmRecDialog {
DECLARE_DYNCREATE(CEsmAlchemyDlg);
/*---------- Begin Protected Class Members ------------------------*/
protected:
CEsmAlchemy* m_pAlchemy;
esmrecinfo_t* m_pEffectInfo[MWESM_ALCHEMY_NUMENCHANTS];
/*---------- Begin Protected Class Methods ------------------------*/
protected:
/* Helper set/get methods */
void GetEffectData (void);
void GetEffectData (const int EffectIndex);
void SetEffectData (void);
void SetEffectData (const int EffectIndex, CEsmSubENAM* pEffectRecord);
void OnSelChangeEffectList (const int Index);
void OnSelChangeSkillList (const int Index);
/* Update item data */
virtual int OnUpdateItem (esmrecinfo_t* pRecInfo);
void UpdateSpellCost (const int Index);
void UpdateTotalSpellCost (void);
/*---------- Begin Public Class Methods ---------------------------*/
public:
/* Construction */
CEsmAlchemyDlg();
/* Get class members */
virtual bool IsModified (void);
/* Set or update the record data */
virtual void GetControlData (void);
virtual void SetControlData (void);
/* Dialog Data */
//{{AFX_DATA(CEsmAlchemyDlg)
enum { IDD = IDD_ALCHEMY_DLG };
CButton m_AutoCalcCheck;
CButton m_PersistCheck;
CButton m_BlockedCheck;
CEdit m_ValueText;
CEdit m_WeightText;
CEdit m_NameText;
//}}AFX_DATA
CComboBox m_EffectList[MWESM_ALCHEMY_NUMENCHANTS];
CComboBox m_SkillList[MWESM_ALCHEMY_NUMENCHANTS];
CEdit m_CostText[MWESM_ALCHEMY_NUMENCHANTS];
CEdit m_DurationText[MWESM_ALCHEMY_NUMENCHANTS];
CEdit m_MagnitudeText[MWESM_ALCHEMY_NUMENCHANTS];
CEdit m_TotalCostText[MWESM_ALCHEMY_NUMENCHANTS];
/* ClassWizard generated virtual function overrides */
//{{AFX_VIRTUAL(CEsmAlchemyDlg)
protected:
virtual void OnInitialUpdate();
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
/* Generated message map functions */
//{{AFX_MSG(CEsmAlchemyDlg)
afx_msg void OnAutocalccheck();
//}}AFX_MSG
afx_msg void OnChangeDurationtext1() { UpdateSpellCost (0); }
afx_msg void OnChangeDurationtext2() { UpdateSpellCost (1); }
afx_msg void OnChangeDurationtext3() { UpdateSpellCost (2); }
afx_msg void OnChangeDurationtext4() { UpdateSpellCost (3); }
afx_msg void OnChangeDurationtext5() { UpdateSpellCost (4); }
afx_msg void OnChangeDurationtext6() { UpdateSpellCost (5); }
afx_msg void OnChangeDurationtext7() { UpdateSpellCost (6); }
afx_msg void OnChangeDurationtext8() { UpdateSpellCost (7); }
afx_msg void OnSelchangeEffectlist1() { OnSelChangeEffectList(0); }
afx_msg void OnSelchangeEffectlist2() { OnSelChangeEffectList(1); }
afx_msg void OnSelchangeEffectlist3() { OnSelChangeEffectList(2); }
afx_msg void OnSelchangeEffectlist4() { OnSelChangeEffectList(3); }
afx_msg void OnSelchangeEffectlist5() { OnSelChangeEffectList(4); }
afx_msg void OnSelchangeEffectlist6() { OnSelChangeEffectList(5); }
afx_msg void OnSelchangeEffectlist7() { OnSelChangeEffectList(6); }
afx_msg void OnSelchangeEffectlist8() { OnSelChangeEffectList(7); }
afx_msg void OnSelchangeSkilllist1() { OnSelChangeSkillList(0); }
afx_msg void OnSelchangeSkilllist2() { OnSelChangeSkillList(1); }
afx_msg void OnSelchangeSkilllist3() { OnSelChangeSkillList(2); }
afx_msg void OnSelchangeSkilllist4() { OnSelChangeSkillList(3); }
afx_msg void OnSelchangeSkilllist5() { OnSelChangeSkillList(4); }
afx_msg void OnSelchangeSkilllist6() { OnSelChangeSkillList(5); }
afx_msg void OnSelchangeSkilllist7() { OnSelChangeSkillList(6); }
afx_msg void OnSelchangeSkilllist8() { OnSelChangeSkillList(7); }
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CEsmAlchemyDlg Definition
*=========================================================================*/
#endif
/*===========================================================================
* End of File Esmalchemydlg.H
*=========================================================================*/