record and replay opening the map through the menu

This commit is contained in:
2024-08-24 15:01:10 -05:00
committed by Celtic Minstrel
parent afccdcaa91
commit c8c008b3c5
3 changed files with 15 additions and 6 deletions

View File

@@ -3310,4 +3310,15 @@ void handle_rename_pc() {
pick_pc_name(choice,nullptr);
put_pc_screen();
put_item_screen(stat_window);
}
void handle_menu_automap() {
if(recording){
record_action("handle_menu_automap", "");
}
if(!prime_time()) {
ASB("Finish what you're doing first.");
print_buf();
} else display_map();
set_cursor(sword_curs);
}

View File

@@ -58,5 +58,6 @@ void handle_give_item(short item_hit, bool& did_something, bool& need_redraw);
void show_dialog_action(std::string xml_file);
void handle_new_pc_graphic();
void handle_rename_pc();
void handle_menu_automap();
#endif

View File

@@ -383,6 +383,8 @@ static void replay_next_action() {
tip_of_day();
}else if(t == "showWelcome"){
showWelcome();
}else if(t == "handle_menu_automap"){
handle_menu_automap();
}
// TODO some of these actions shouldn't call advance_time(). They should return
@@ -794,12 +796,7 @@ void handle_menu_choice(eMenu item_hit) {
queue_fake_event(dummyEvent);
break;
case eMenu::ACTIONS_AUTOMAP:
// TODO record and replay
if(!prime_time()) {
ASB("Finish what you're doing first.");
print_buf();
} else display_map();
set_cursor(sword_curs);
handle_menu_automap();
break;
case eMenu::HELP_TOC:
// TODO record and replay