[dad864]: SpellProperties.h Maximize Restore History

Download this file

SpellProperties.h    389 lines (331 with data), 9.1 kB

  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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
// SpellProperties.h : header file
//
#ifndef __SPELLPROPERTIES_H__
#define __SPELLPROPERTIES_H__
/////////////////////////////////////////////////////////////////////////////
// CSpellGeneral dialog
class CSpellGeneral : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellGeneral)
// Construction
public:
CSpellGeneral();
~CSpellGeneral();
void RefreshGeneral();
CString m_bmb;
HBITMAP m_hbmb;
protected:
CToolTipCtrl m_tooltip;
// Dialog Data
//{{AFX_DATA(CSpellGeneral)
enum { IDD = IDD_SPELLGENERAL };
CStatic m_bookicon_control;
CComboBox m_sectype_control;
CComboBox m_school_control;
CComboBox m_spelltypepicker_control;
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSpellGeneral)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSpellGeneral)
virtual BOOL OnInitDialog();
afx_msg void OnDefaultKillfocus();
afx_msg void OnAttr1();
afx_msg void OnAttr2();
afx_msg void OnAttr3();
afx_msg void OnAttr4();
afx_msg void OnAttr5();
afx_msg void OnAttr6();
afx_msg void OnAttr7();
afx_msg void OnAttr8();
afx_msg void OnV1();
afx_msg void OnV20();
afx_msg void OnBrowse();
afx_msg void OnInvicon1();
afx_msg void OnPlaysound();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpellDescription dialog
class CSpellDescription : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellDescription)
// Construction
public:
CSpellDescription();
~CSpellDescription();
void RefreshDescription();
// Dialog Data
//{{AFX_DATA(CSpellDescription)
enum { IDD = IDD_SPELLDESC };
CString m_longdesc;
CString m_longname;
CString m_shortdesc;
CString m_shortname;
BOOL m_longdesctag;
BOOL m_longnametag;
BOOL m_shortdesctag;
BOOL m_shortnametag;
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSpellDescription)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CSpellDescription)
afx_msg void OnKillfocusLongdescref();
afx_msg void OnKillfocusLongref();
afx_msg void OnKillfocusShortdescref();
afx_msg void OnKillfocusShortref();
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusShortdesc();
afx_msg void OnKillfocusLongname();
afx_msg void OnKillfocusLongdesc();
afx_msg void OnLongnametag();
afx_msg void OnLongdesctag();
afx_msg void OnNew1();
afx_msg void OnNew2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpellEquip dialog
class CSpellEquip : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellEquip)
// Construction
public:
CSpellEquip();
~CSpellEquip();
void DoDataExchangeEquip(CDataExchange* pDX);
void EnableWindow_Equip(bool value);
void RefreshEquip();
// Dialog Data
//{{AFX_DATA(CSpellEquip)
enum { IDD = IDD_SPELLEQUIP };
CListBox m_equipnum_control;
//}}AFX_DATA
int equipnum;
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSpellEquip)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CSpellEquip)
afx_msg void OnKillfocusEquipnum();
virtual BOOL OnInitDialog();
afx_msg void OnEdit();
afx_msg void OnEquipremove();
afx_msg void OnEquipadd();
afx_msg void OnEquipcopy();
afx_msg void OnEquippaste();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpellExtended dialog
class CSpellExtended : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellExtended)
// Construction
public:
CSpellExtended();
~CSpellExtended();
void RefreshExtended();
// Dialog Data
//{{AFX_DATA(CSpellExtended)
enum { IDD = IDD_SPELLEFFECT };
CListBox m_exteffnum_control;
CStatic m_useicon_control;
CComboBox m_projid_control;
CComboBox m_chargetype_control;
CComboBox m_damagetype_control;
CComboBox m_extheadnum_control;
CComboBox m_projframe_control;
CComboBox m_target_control;
CComboBox m_loc_control;
CComboBox m_exttype_control;
CString m_headnum;
CString m_friendly;
//}}AFX_DATA
// real counters
int m_extheadnum;
int extheadnum;
int m_exteffnum;
CString m_bmu;
HBITMAP m_hbmu;
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSpellExtended)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
void DoDataExchangeEffects(CDataExchange* pDX);
void DoDataExchangeExtended(CDataExchange* pDX);
void EnableWindow_ExtEffect(bool value);
void EnableWindow_Extended(bool value);
afx_msg void OnDefaultKillfocus();
//{{AFX_MSG(CSpellExtended)
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusExtheadnum();
afx_msg void OnKillfocusExteffnum();
afx_msg void OnExtpaste();
afx_msg void OnExteffadd();
afx_msg void OnExteffcopy();
afx_msg void OnExteffpaste();
afx_msg void OnExteffremove();
afx_msg void OnExtcopy();
afx_msg void OnExtadd();
afx_msg void OnExtremove();
afx_msg void OnSelchangeExtheadnum();
afx_msg void OnOrder();
afx_msg void OnUseicon();
afx_msg void OnEdit();
afx_msg void OnNext();
afx_msg void OnPrev();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpellGeneral dialog
class CSpellExtra : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellExtra)
// Construction
public:
CSpellExtra();
~CSpellExtra();
void RefreshExtra();
protected:
// Dialog Data
//{{AFX_DATA(CSpellExtra)
enum { IDD = IDD_SPELLEXTRA };
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSpellExtra)
public:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CSpellExtra)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
class CSpellTool : public CPropertyPage
{
DECLARE_DYNCREATE(CSpellTool)
// Construction
public:
CSpellTool();
~CSpellTool();
void RefreshTool();
// Dialog Data
//{{AFX_DATA(CSpellTool)
enum { IDD = IDD_SPELLTOOL };
int m_rangeinc;
int m_range;
int m_duration;
int m_durationinc;
int m_levelinc;
int m_level;
int m_which;
int m_damage;
int m_damageinc;
BOOL m_half;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSpellTool)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CSpellTool)
afx_msg void OnKillfocusRange();
afx_msg void OnKillfocusRangeinc();
afx_msg void OnKillfocusDuration();
afx_msg void OnKillfocusDurationinc();
afx_msg void OnDoranges();
afx_msg void OnDodurations();
virtual BOOL OnInitDialog();
afx_msg void OnKillfocusLevel();
afx_msg void OnKillfocusLevelinc();
afx_msg void OnDolevels();
afx_msg void OnKillfocusDamage();
afx_msg void OnKillfocusDamageinc();
afx_msg void OnDodamages();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CSpellPropertySheet
class CSpellPropertySheet : public CPropertySheet
{
DECLARE_DYNAMIC(CSpellPropertySheet)
// Construction
public:
CSpellPropertySheet(CWnd* pWndParent = NULL);
// Attributes
public:
CSpellGeneral m_PageGeneral;
CSpellDescription m_PageDescription;
CSpellEquip m_PageEquip;
CSpellExtended m_PageExtended;
CSpellExtra m_PageExtra;
CSpellTool m_PageTool;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSpellPropertySheet)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSpellPropertySheet();
void RefreshDialog();
protected:
// Generated message map functions
//{{AFX_MSG(CSpellPropertySheet)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // __SPELLPROPERTIES_H__