- Preset animated graphics now start at 960 instead of 400, due to all the new preset terrains from the previous commit running into their range. - Tore out some optimization in the automap drawing, because it made it harder to figure out why it wasn't working - Both game and editor now use the larger 12x12 map graphics, and fall back to shrinking down the 28x36 terrain graphic if no map graphic is set - Upon loading an old scenario, map graphic is automatically set the same as the main graphic if it's a preset graphic; for custom graphics it's set to none - Scenario now has three zoom levels for mini-map - the original in which the entire town is visible, a slightly closer one that matches the in-game view, and a large one using the 12x12 map graphics at full size. - Fix some map patterns having the wrong bounding rect - Graphics (and sounds) now included in the project by folder reference, so that I don't need to manually every new sheet to the project
61 lines
2.2 KiB
C
61 lines
2.2 KiB
C
void Set_up_win ();
|
|
void run_startup_g();
|
|
void load_graphics();
|
|
void load_main_screen();
|
|
void draw_main_screen();
|
|
void redraw_screen();
|
|
void draw_lb();
|
|
void draw_lb_slot (short which,short mode) ;
|
|
void draw_rb();
|
|
void draw_rb_slot (short which,short mode) ;
|
|
void set_up_terrain_buttons();
|
|
void draw_terrain();
|
|
void draw_monsts();
|
|
rectangle get_item_template_rect (short type_wanted);
|
|
void draw_items();
|
|
void force_tiny_redraw();
|
|
void redraw_selected_ter();
|
|
void draw_one_terrain_spot (short i,short j,ter_num_t terrain_to_draw);
|
|
void draw_one_tiny_terrain_spot (short i,short j,ter_num_t terrain_to_draw,short size);
|
|
void Draw_Some_Item(sf::Texture& src_gworld,rectangle src_rect,sf::RenderTarget& targ_gworld,location target,sf::BlendMode mode = sf::BlendNone);
|
|
rectangle get_template_rect (unsigned short type_wanted);
|
|
void draw_frames();
|
|
void place_location();
|
|
void place_just_location();
|
|
void set_string(const char *string,const char *string2);
|
|
bool is_special(short i,short j);
|
|
void take_special(short i,short j);
|
|
void make_special(short i,short j);
|
|
void sort_specials();
|
|
bool is_field_type(short i,short j,short field_type);
|
|
void make_field_type(short i,short j,short field_type);
|
|
void take_field_type(short i,short j,short field_type);
|
|
bool is_web(short i,short j);
|
|
void make_web(short i,short j);
|
|
void take_web(short i,short j);
|
|
bool is_crate(short i,short j);
|
|
void make_crate(short i,short j);
|
|
void take_crate(short i,short j);
|
|
bool is_barrel(short i,short j);
|
|
void make_barrel(short i,short j);
|
|
void take_barrel(short i,short j);
|
|
bool is_fire_barrier(short i,short j);
|
|
void make_fire_barrier(short i,short j);
|
|
void take_fire_barrier(short i,short j);
|
|
bool is_force_barrier(short i,short j);
|
|
void make_force_barrier(short i,short j);
|
|
void take_force_barrier(short i,short j);
|
|
bool is_sfx(short i,short j,short type);
|
|
void make_sfx(short i,short j,short type);
|
|
void take_sfx(short i,short j,short type);
|
|
bool is_quickfire(short i,short j);
|
|
void make_quickfire(short i,short j);
|
|
void take_quickfire(short i,short j);
|
|
bool container_there(location l);
|
|
bool is_spot(short i,short j);
|
|
//void get_str(const char* str,short i, short j);
|
|
short string_length(char *str);
|
|
rectangle get_custom_rect (short which_rect);
|
|
void init_dialogs();
|
|
void record_display_strings();
|