00001 #ifndef EDITOR_H 00002 #define EDITOR_H 00003 00004 #define VIEWPORT_WIDTH (LCD_WIDTH/8) 00005 #define VIEWPORT_HEIGHT ((LCD_HEIGHT-12)/8) //11 00006 #define SCROLL_INCR_X 6 00007 #define SCROLL_INCR_Y 4 00008 00009 #define FIELD_WIDTH (current_map->width) 00010 #define FIELD_HEIGHT (current_map->height) 00011 00012 #include "cprotofix.h" 00013 #define OPTIMIZE_ROM_CALLS 00014 #define USE_TI89 00015 #define USE_TI92P 00016 #define USE_V200 00017 #include <tigcclib.h> 00018 00019 #include "skye.h" 00020 #include "widget.h" 00021 00022 extern editor_map *current_map; 00023 extern editor_map *maps; 00024 extern int num_maps; 00025 extern int current_map_num; 00026 extern int select_x, select_y; 00027 extern int cursor_x, cursor_y; 00028 extern int scroll_x, scroll_y; 00029 extern int edit_brush; 00030 extern const char tile_sprites[NUM_TILE_TYPES][24]; 00031 extern const char black_square[24]; 00032 00033 typedef void (*keyboard_handler)(int key); 00034 extern keyboard_handler input_state; 00035 00036 #ifndef CPROTO 00037 #include "proto.h" 00038 #endif 00039 00040 #endif //EDITOR_H
1.3.6