forked from Wirless/IdlersMapEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_creature_dialog.h
More file actions
43 lines (33 loc) · 1013 Bytes
/
add_creature_dialog.h
File metadata and controls
43 lines (33 loc) · 1013 Bytes
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
#ifndef RME_ADD_CREATURE_DIALOG_H_
#define RME_ADD_CREATURE_DIALOG_H_
#include <wx/dialog.h>
#include "creatures.h"
class wxSpinCtrl;
class wxTextCtrl;
class wxRadioBox;
class wxPanel;
class AddCreatureDialog : public wxDialog {
public:
AddCreatureDialog(wxWindow* parent, const wxString& name);
virtual ~AddCreatureDialog();
CreatureType* GetCreatureType() const { return creature_type; }
protected:
void OnClickOK(wxCommandEvent& event);
void OnClickCancel(wxCommandEvent& event);
void OnOutfitChange(wxCommandEvent& event);
void OnPreviewPaint(wxPaintEvent& event);
private:
wxTextCtrl* name_field;
wxSpinCtrl* looktype_field;
wxSpinCtrl* lookhead_field;
wxSpinCtrl* lookbody_field;
wxSpinCtrl* looklegs_field;
wxSpinCtrl* lookfeet_field;
wxRadioBox* type_radio;
wxPanel* preview_panel;
CreatureType* creature_type;
// Helper functions
void UpdatePreview();
DECLARE_EVENT_TABLE()
};
#endif // RME_ADD_CREATURE_DIALOG_H_