fix compile against newer giflib
[rofl0r-obeditor.git] / src / entity__enums.h
blob51d6f81a63d145861a6ced700b758c1401836834
1 /*
2 * edit_entity_enums.h
4 * Created on: 7 nov. 2008
5 * Author: pat
6 */
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;
55 enum
57 GM_ANIM_DELETION = 1,
58 FRAME_DELETION = 2,
59 GF_RELOAD = 4,
60 GF_ACTIVATE = 8,
61 GM_REFRESH_SELECTION =16,
62 GM_FRAME_RELOAD =32,
63 GM_FRAME_INVALID =64,
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;
71 /* UNUSED ??
72 extern ob_object** entNewProps;
73 extern size_t entNewProps_count;
74 #define MAX_NEW_PROPS 100
77 //****************************************************
78 // New Events macros
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 ), \
94 (wxObject *) NULL \
96 #endif
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 ), \
104 (wxObject *) NULL \
106 #endif
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 ), \
114 (wxObject *) NULL \
116 #endif
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 ), \
124 (wxObject *) NULL \
126 #endif
129 //****************************************************
130 // enumeration of IDs for the edit entity frame
131 //****************************************************
133 enum
135 ID_NEW_ANIM = 100,
136 ID_NEW_FRAME = 101,
137 ID_ANIM_PROPS = 102,
138 ID_EXT_FRAM_PROPS = 103,
139 BBOX_X = 104,
140 BBOX_Y = 105,
141 BBOX_H = 106,
142 BBOX_W = 107,
143 ATTACK_CHOICE = 108,
144 DMGS_VAL = 109,
145 PWD_VAL = 110,
146 B_BLOK = 111,
147 B_FLASH = 112,
148 CTRL_PAUSE_VAL = 113,
149 ZRANGE = 114,
150 ATTBOX_X = 115,
151 ATTBOX_Y = 116,
152 ATTBOX_H = 117,
153 ATTBOX_W = 118,
154 MOVE_X = 119,
155 MOVE_A = 120,
156 MOVE_Z = 121,
157 SND_FILE = 122,
158 IMG_FILE = 123,
159 OFFSET_X = 124,
160 OFFSET_Y = 125,
161 ID_DELAY = 126,
162 ID_PLAY_STOP = 127,
163 ID_ZOOM_M = 128,
164 ID_ZOOM_P = 129,
165 ID_TO_END = 130,
166 ID_TO_START = 131,
167 ID_LOOP_BTN = 10000,
168 ID_PICKER_FRAME_PATH = 10001,
169 ID_PICKER_SOUND_PATH = 10002,
170 ID_To_BBOX = 10003,
171 ID_To_ATTBOX = 10004,
172 ID_To_OFFSET = 10005,
173 ID_To_CLEAR = 10006,
174 ID_DEL_BBOX = 10007,
175 ID_DEL_ATTBOX = 10008,
176 ID_SCALEX = 10009,
177 ID_SCALEY = 10010,
178 ID_FLIPX = 10011,
179 ID_FLIPY = 10012,
180 ID_SHIFTX = 10013,
181 ID_ALPHA = 10014,
182 ID_REMAP = 10015,
183 ID_FILLCOLOR = 10016,
184 ID_ROTATE = 10017,
185 ID_FLIPROTATE = 10018,
186 ID_FLIPFRAME = 10019,
187 ID_NODRAWMETHOD = 10020,
188 ID_To_XA = 10021,
190 CMD_RENAME = 10022,
191 CMD_NEW = 10023,
192 CMD_DEL = 10024,
193 CMD_COPY = 10025,
194 TIMER_ANIM = 10026,
196 REMAP_CHOICE = 10027,
197 IMG_BASE = 10028,
198 ID_PICKER_BASE_IMG = 10029,
199 ID_PICKER_DEST_IMG = 10030,
200 IMG_DEST = 10031,
201 ID_CREATE_BASEIMG_REMAP = 10032,
202 ID_GUESS_COLORS = 10033,
203 ID_SET_SEL_COLS = 10034,
204 ID_UNSET_SEL_COLS = 10035,
205 ID_HUE_CTRL = 10036,
206 ID_SAT_CTRL = 10037,
207 ID_LUM_CTRL = 10038,
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,
214 B_8BIT = 10044,
216 ID_SAVE_REMAP = 10045,
218 ID_RED_CTRL = 10046,
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,
227 ID_PLAT_UPL = 10053,
228 ID_PLAT_DL = 10054,
229 ID_PLAT_UPR = 10055,
230 ID_PLAT_LR = 10056,
231 ID_PLAT_DEPTH = 10057,
232 ID_PLAT_ALT = 10058,
234 ID_NO_PLATFORM = 10059,
236 ID_JUMPFRAME = 10060,
237 ID_DROPFRAME = 10061,
238 ID_LANDFRAME = 10062,
239 ID_JUMPH = 10063,
240 ID_JUMPX = 10064,
241 ID_JUMPZ = 10065,
243 ID_SOUND_MUTE = 10066,
244 ID_HELP_REMAPS = 10067,
246 BBOX_Z = 10068,
247 ID_ENTITIES_RESCALE_BOXES = 10069,
248 ID_ATT_NUM = 10070,
252 #endif /* EDIT_ENTITY_ENUMS_H_ */