restore click_shop_rect until a better functionality is available
This commit is contained in:
@@ -233,12 +233,12 @@ void handle_shop_event(location p) {
|
||||
item_help_rect.offset(talk_gword_offset_x, talk_gword_offset_y);
|
||||
|
||||
if(p.in(active_rect)) {
|
||||
play_sound(37, time_in_ticks(5));
|
||||
click_shop_rect(active_rect);
|
||||
handle_sale(active_shop.getItem(what_picked), what_picked);
|
||||
set_up_shop_array();
|
||||
draw_shop_graphics(false, {});
|
||||
} else if(p.in(item_help_rect)){
|
||||
play_sound(37, time_in_ticks(5));
|
||||
click_shop_rect(item_help_rect);
|
||||
handle_info_request(active_shop.getItem(what_picked));
|
||||
}
|
||||
}
|
||||
|
@@ -593,6 +593,15 @@ void do_explosion_anim(short /*sound_num*/,short special_draw, short snd) {
|
||||
store_booms[i].boom_type = -1;
|
||||
}
|
||||
|
||||
void click_shop_rect(rectangle area_rect) {
|
||||
|
||||
draw_shop_graphics(1,area_rect);
|
||||
mainPtr.display();
|
||||
play_sound(37, time_in_ticks(5));
|
||||
draw_shop_graphics(0,area_rect);
|
||||
|
||||
}
|
||||
|
||||
graf_pos calc_item_rect(int num,rectangle& to_rect) {
|
||||
if(num >= 1000) return spec_scen_g.find_graphic(num - 1000);
|
||||
rectangle from_rect = {0,0,18,18};
|
||||
|
@@ -56,6 +56,7 @@ void add_missile(location dest,miss_num_t missile_type,short path_type,short x_a
|
||||
void add_explosion(location dest,short val_to_place,short place_type,short boom_type,short x_adj,short y_adj);
|
||||
void do_missile_anim(short num_steps,location missile_origin,short sound_num) ;
|
||||
void do_explosion_anim(short sound_num,short expand,short snd = -1);
|
||||
void click_shop_rect(rectangle area_rect);
|
||||
void draw_shop_graphics(bool pressed,rectangle clip_area_rect);
|
||||
void refresh_shopping();
|
||||
std::string get_item_interesting_string(cItem item);
|
||||
|
Reference in New Issue
Block a user