-
Notifications
You must be signed in to change notification settings - Fork 5
/
SrMgefView.h
253 lines (202 loc) · 7.73 KB
/
SrMgefView.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/*===========================================================================
*
* File: SrMgefView.H
* Author: Dave Humphrey ([email protected])
* Created On: 1 December 2011
*
* Description
*
*=========================================================================*/
#ifndef __SRMGEFVIEW_H
#define __SRMGEFVIEW_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "dialogs/srrecorddialog.h"
#include "afxwin.h"
#include "afxcmn.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
struct srmgeftypedlginfo_t
{
srrectype_t RecordType;
int NumAV;
int ForceAV1;
};
/*===========================================================================
*
* Begin Class CSrMgefView Definition
*
*=========================================================================*/
class CSrMgefView : public CSrRecordDialog
{
DECLARE_DYNCREATE(CSrMgefView);
DECLARE_SRRECUIFIELDS();
/*---------- Begin Protected Class Members ---------------------*/
protected:
bool m_IsInitialized;
/*---------- Begin Protected Class Methods ---------------------*/
protected:
/* Protected constructor used by dynamic creation */
CSrMgefView();
/*---------- Begin Public Class Methods ------------------------*/
public:
enum { IDD = IDD_MGEF_VIEW };
CEdit m_EditorID;
CEdit m_ItemName;
CEdit m_Description;
CEdit m_FormID;
CListBox m_Keywords;
CComboBox m_SchoolList;
CComboBox m_ResistList;
CButton m_Conditions;
public:
virtual void GetControlData (void);
virtual void SetControlData (void);
void FillMagicFlagList (void);
void SetMagicFlags (const dword Flags);
dword GetMagicFlags (void);
void GetCounterEffects (CSrMgefRecord* pEffect);
void SetCounterEffects (CSrMgefRecord* pEffect);
void GetEffectSounds (CSrMgefRecord* pEffect);
void SetEffectSounds (CSrMgefRecord* pEffect);
void UpdateEffectTypeControls (void);
protected:
virtual void OnInitialUpdate();
virtual void DoDataExchange(CDataExchange* pDX);
virtual ~CSrMgefView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
DECLARE_MESSAGE_MAP();
public:
CEdit m_BaseCost;
CEdit m_SkillLevel;
CEdit m_SkillUsageMult;
CComboBox m_ActorValue;
CComboBox m_ActorValue2;
CEdit m_SecondAVWeight;
CComboBox m_CastType;
CComboBox m_EffectType;
CComboBox m_ResistType;
CComboBox m_DeliveryType;
CComboBox m_School;
CComboBox m_SoundVolume;
CEdit m_Area;
CEdit m_DualCastScale;
CEdit m_CastingDelay;
CEdit m_TaperCurve;
CEdit m_TaperWeight;
CEdit m_TaperDuration;
CEdit m_ScriptAIDataScore;
CEdit m_ScriptAIDataDelay;
CEdit m_Light;
CEdit m_HitShader;
CEdit m_EnchantShader;
CEdit m_CastingArt;
CEdit m_HitEffectArt;
CEdit m_EnchantArt;
CEdit m_EquipAbility;
CEdit m_ImpactSet;
CEdit m_ImageSpaceMod;
CEdit m_Perk;
CEdit m_Explosion;
CEdit m_DualCast;
CEdit m_EffectObject;
CEdit m_Projectile;
CEdit m_Menu;
CListBox m_Scripts;
CListBox m_MagicFlags;
CListBox m_CounterEffects;
CButton m_DispelEffectsCheck;
void OnDropKeywords (NMHDR* pNotifyStruct, LRESULT* pResult);
void OnDropCounterEffects (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditPerk();
afx_msg void OnBnClickedSelectPerk();
afx_msg void OnDropPerk (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditDualCast();
afx_msg void OnBnClickedSelectDualCast();
afx_msg void OnDropDualCast (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditLight();
afx_msg void OnBnClickedSelectLight();
afx_msg void OnDropLight (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditEffectObject();
afx_msg void OnBnClickedSelectEffectObject();
afx_msg void OnDropEffectObject (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditExplosion();
afx_msg void OnBnClickedSelectExplosion();
afx_msg void OnDropExplosion (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditProjectile();
afx_msg void OnBnClickedSelectProjectile();
afx_msg void OnDropProjectile (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditCastingArt();
afx_msg void OnBnClickedSelectCastingArt();
afx_msg void OnDropCastingArt (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditHitEffectArt();
afx_msg void OnBnClickedSelectHitEffectArt();
afx_msg void OnDropHitEffectArt (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditEnchantArt();
afx_msg void OnBnClickedSelectEnchantArt();
afx_msg void OnDropEnchantArt (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditEquipAbility();
afx_msg void OnBnClickedSelectEquipAbility();
afx_msg void OnDropEquipAbility (NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditImpactSet();
afx_msg void OnBnClickedSelectImpactSet();
afx_msg void OnDropImpactSet(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditImageSpaceMod();
afx_msg void OnBnClickedSelectImageSpaceMod();
afx_msg void OnDropImageSpaceMod(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditHitShader();
afx_msg void OnBnClickedSelectHitShader();
afx_msg void OnDropHitShader(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditEnchantShader();
afx_msg void OnBnClickedSelectEnchantShader();
afx_msg void OnDropEnchantShader(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditMenu();
afx_msg void OnBnClickedSelectMenu();
afx_msg void OnDropMenu(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditDrawSound();
afx_msg void OnBnClickedSelectDrawSound();
afx_msg void OnDropDrawSound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditReadySound();
afx_msg void OnBnClickedSelectReadySound();
afx_msg void OnDropReadySound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditChargeSound();
afx_msg void OnBnClickedSelectChargeSound();
afx_msg void OnDropChargeSound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditReleaseSound();
afx_msg void OnBnClickedSelectReleaseSound();
afx_msg void OnDropReleaseSound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditCastLoopSound();
afx_msg void OnBnClickedSelectCastLoopSound();
afx_msg void OnDropCastLoopSound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnBnClickedEditOnHitSound();
afx_msg void OnBnClickedSelectOnHitSound();
afx_msg void OnDropOnHitSound(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnContextMenu (CWnd* pWnd, CPoint Point);
afx_msg void OnBnClickedAddCountereffects();
afx_msg void OnBnClickedEditCountereffects();
afx_msg void OnBnClickedDelCountereffects();
afx_msg void OnCbnSelchangeEffecttype();
CEdit m_DrawSound;
CEdit m_ChargeSound;
CEdit m_ReadySound;
CEdit m_ReleaseSound;
CEdit m_CastLoopSound;
CEdit m_OnHitSound;
CButton m_EditEffectObject;
CButton m_SelectEffectObject;
CStatic m_EffectObjectLabel;
};
/*===========================================================================
* End of Class CSrMgefView Definition
*=========================================================================*/
#endif
/*===========================================================================
* End of File SrMgefView.H
*=========================================================================*/