click spec item or quest name -> show info
This commit is contained in:
@@ -1773,7 +1773,11 @@ bool handle_action(const sf::Event& event, cFramerateLimiter& fps_limiter) {
|
||||
item_hit = item_sbar->getPosition() + i;
|
||||
switch(j) {
|
||||
case ITEMBTN_NAME: case ITEMBTN_ICON: // equip
|
||||
handle_equip_item(item_hit, need_redraw);
|
||||
if(stat_window >= ITEM_WIN_SPECIAL){
|
||||
show_item_info(item_hit);
|
||||
}else{
|
||||
handle_equip_item(item_hit, need_redraw);
|
||||
}
|
||||
break;
|
||||
case ITEMBTN_USE:
|
||||
handle_use_item(item_hit, did_something, need_redraw);
|
||||
|
@@ -273,6 +273,7 @@ void put_item_screen(eItemWinMode screen_num) {
|
||||
if(i_num < spec_item_array.size()) {
|
||||
draw_item_string(i, univ.scenario.special_items[spec_item_array[i_num]].name, FONT_BOLD, Colours::BLACK);
|
||||
|
||||
item_area_button_active[i][ITEMBTN_NAME] = true;
|
||||
place_item_button(i,ITEMBTN_INFO);
|
||||
if((univ.scenario.special_items[spec_item_array[i_num]].flags % 10 == 1)
|
||||
&& (!(is_combat()))){
|
||||
@@ -302,6 +303,7 @@ void put_item_screen(eItemWinMode screen_num) {
|
||||
draw_line(item_stats_gworld(), from, to, 1, Colours::GREEN);
|
||||
}
|
||||
|
||||
item_area_button_active[i][ITEMBTN_NAME] = true;
|
||||
place_item_button(i,ITEMBTN_INFO);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user