only record user-triggered set_stat_window
This commit is contained in:
@@ -1551,10 +1551,10 @@ bool handle_action(const sf::Event& event, cFramerateLimiter& fps_limiter) {
|
||||
arrow_button_click(button_rect);
|
||||
switch(i) {
|
||||
case 6: // special screen
|
||||
set_stat_window(ITEM_WIN_SPECIAL);
|
||||
set_stat_window(ITEM_WIN_SPECIAL, true);
|
||||
break;
|
||||
case 7:
|
||||
set_stat_window(ITEM_WIN_QUESTS);
|
||||
set_stat_window(ITEM_WIN_QUESTS, true);
|
||||
break;
|
||||
case 8: // help
|
||||
show_dialog_action("help-inventory");
|
||||
|
@@ -544,14 +544,14 @@ void place_item_bottom_buttons() {
|
||||
rect_draw_some_item(invenbtn_gworld, help_from_rect, item_stats_gworld, to_rect, sf::BlendAlpha);
|
||||
}
|
||||
|
||||
void set_stat_window_for_pc(int pc) {
|
||||
void set_stat_window_for_pc(int pc, bool record) {
|
||||
if(pc < 0) pc = 0;
|
||||
if(pc > 5) pc = 5;
|
||||
set_stat_window(eItemWinMode(pc));
|
||||
set_stat_window(eItemWinMode(pc), record);
|
||||
}
|
||||
|
||||
void set_stat_window(eItemWinMode new_stat) {
|
||||
if(recording){
|
||||
void set_stat_window(eItemWinMode new_stat, bool record) {
|
||||
if(record && recording){
|
||||
record_action("set_stat_window", boost::lexical_cast<std::string>((int)new_stat));
|
||||
}
|
||||
if(new_stat == ITEM_WIN_SPECIAL)
|
||||
|
@@ -6,8 +6,8 @@ void put_pc_screen();
|
||||
void place_buy_button(short position,short pc_num,short item_num);
|
||||
void put_item_screen(eItemWinMode screen_num);
|
||||
void place_item_bottom_buttons();
|
||||
void set_stat_window(eItemWinMode new_stat);
|
||||
void set_stat_window_for_pc(int pc);
|
||||
void set_stat_window(eItemWinMode new_stat, bool record = false);
|
||||
void set_stat_window_for_pc(int pc, bool record = false);
|
||||
void place_item_button(short button_position,short which_slot,eItemButton button_type = ITEMBTN_USE);
|
||||
void place_item_graphic(short which_slot,short graphic);
|
||||
short first_active_pc();
|
||||
|
Reference in New Issue
Block a user