4 * Created on: 7 nov. 2008
8 #ifndef EDIT_ENTITY_ENUMS_H_
9 #define EDIT_ENTITY_ENUMS_H_
11 #include "common__tools.h"
13 //****************************************************
14 // Global variables for the edit entity frame objects
15 //****************************************************
17 // Max numbers of last entities history in the corresponding menu
18 #define MAX_ENTITIES_HISTORY 20
20 // Models Know/Load from the models.txt
21 extern int models_count
;
22 extern ob_models
** models
;
23 extern wxString
* models_name
; // The list of the names of the models
25 // The entity currently loaded and selected to edition
26 extern obFileEntity
* entity
;
28 // The filename of the curently loaded/loading entity
29 extern wxString curr_entity_filename
;
31 // List of properties for the current entity
32 extern ob_object
** entProps
;
33 extern int entProps_count
;
36 // Currently loaded anims
37 extern ob_anim
** arr_anims
;
38 extern int arr_anims_count
;
40 // Currently selected anim (Note: -1 => no anim selected )
41 extern ob_anim
* curr_anim
;
42 extern wxString last_anim_selected
;
44 // array and array size of Frames loaded
45 extern int curr_frames_count
;
46 extern ob_frame
** curr_frames
;
47 extern int ind_active_frame
;
49 // current active frame
50 extern ob_frame
* frameActive
;
52 // the original bg colour
53 extern wxColour default_BG_colour
;
61 GM_REFRESH_SELECTION
=16,
65 extern int ent_g_flag
;
67 // Hash that maintain the relation : EntityName <-> Object Loaded
68 WX_DECLARE_HASH_MAP( wxString
, obFileEntity
*, wxStringHash
, wxStringEqual
, hash_entName_entObjFile
);
69 extern hash_entName_entObjFile hash_ent_obj
;
72 extern ob_object** entNewProps;
73 extern size_t entNewProps_count;
74 #define MAX_NEW_PROPS 100
77 //****************************************************
79 //****************************************************
81 BEGIN_DECLARE_EVENT_TYPES()
82 DECLARE_EVENT_TYPE(wxEVT_ANIM_LIST_CHANGE
, 7777)
83 DECLARE_EVENT_TYPE(wxEVT_ANIM_SELECTED_CHANGE
, 7777)
84 DECLARE_EVENT_TYPE(wxEVT_FRAME_SELECTED_CHANGE
, 7777)
85 DECLARE_EVENT_TYPE(wxEVT_FRAME_LIST_CHANGE
, 7777)
86 END_DECLARE_EVENT_TYPES()
88 // define an event table macro for this event type
89 #ifndef EVT_ANIM_SELECTED_CHANGE
90 #define EVT_ANIM_SELECTED_CHANGE(fn) \
91 DECLARE_EVENT_TABLE_ENTRY( \
92 wxEVT_ANIM_SELECTED_CHANGE, wxID_ANY, wxID_ANY, \
93 (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \
98 // define an event table macro for this event type
99 #ifndef EVT_ANIM_LIST_CHANGE
100 #define EVT_ANIM_LIST_CHANGE(fn) \
101 DECLARE_EVENT_TABLE_ENTRY( \
102 wxEVT_ANIM_LIST_CHANGE, wxID_ANY, wxID_ANY, \
103 (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \
108 // define an event table macro for this event type
109 #ifndef EVT_FRAME_SELECTED_CHANGE
110 #define EVT_FRAME_SELECTED_CHANGE(fn) \
111 DECLARE_EVENT_TABLE_ENTRY( \
112 wxEVT_FRAME_SELECTED_CHANGE, wxID_ANY, wxID_ANY, \
113 (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \
118 // define an event table macro for this event type
119 #ifndef EVT_FRAME_LIST_CHANGE
120 #define EVT_FRAME_LIST_CHANGE(fn) \
121 DECLARE_EVENT_TABLE_ENTRY( \
122 wxEVT_FRAME_LIST_CHANGE, wxID_ANY, wxID_ANY, \
123 (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \
129 //****************************************************
130 // enumeration of IDs for the edit entity frame
131 //****************************************************
138 ID_EXT_FRAM_PROPS
= 103,
148 CTRL_PAUSE_VAL
= 113,
168 ID_PICKER_FRAME_PATH
= 10001,
169 ID_PICKER_SOUND_PATH
= 10002,
171 ID_To_ATTBOX
= 10004,
172 ID_To_OFFSET
= 10005,
175 ID_DEL_ATTBOX
= 10008,
183 ID_FILLCOLOR
= 10016,
185 ID_FLIPROTATE
= 10018,
186 ID_FLIPFRAME
= 10019,
187 ID_NODRAWMETHOD
= 10020,
196 REMAP_CHOICE
= 10027,
198 ID_PICKER_BASE_IMG
= 10029,
199 ID_PICKER_DEST_IMG
= 10030,
201 ID_CREATE_BASEIMG_REMAP
= 10032,
202 ID_GUESS_COLORS
= 10033,
203 ID_SET_SEL_COLS
= 10034,
204 ID_UNSET_SEL_COLS
= 10035,
208 ID_APPLY_COLORS
= 10039,
209 ID_CANCEL_COLORS
= 10040,
211 ID_NEW_REMAP
= 10041,
212 ID_RENAME_REMAP
= 10042,
213 ID_DELETE_REMAP
= 10043,
216 ID_SAVE_REMAP
= 10045,
219 ID_GREEN_CTRL
= 10047,
220 ID_BLUE_CTRL
= 10048,
222 ID_BBOX_COLOR
= 10049,
223 ID_ATTACK_COLOR
= 10050,
225 ID_PLAT_OFF_X
= 10051,
226 ID_PLAT_OFF_Y
= 10052,
231 ID_PLAT_DEPTH
= 10057,
234 ID_NO_PLATFORM
= 10059,
236 ID_JUMPFRAME
= 10060,
237 ID_DROPFRAME
= 10061,
238 ID_LANDFRAME
= 10062,
243 ID_SOUND_MUTE
= 10066,
244 ID_HELP_REMAPS
= 10067,
247 ID_ENTITIES_RESCALE_BOXES
= 10069,
252 #endif /* EDIT_ENTITY_ENUMS_H_ */