1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-27 01:14:52 +00:00

embeddings:: reset view option in menu to fix errors

This commit is contained in:
Zeno Rogue 2023-02-05 10:44:36 +01:00
parent b89ba69fd9
commit 23e4f90685

View File

@ -2332,6 +2332,14 @@ EX void show_spatial_embedding() {
}
}
dialog::addSelItem(XLAT("reset view"), embedded_plane && isize(current_display->radarpoints) == 0 ? XLAT("(fix errors)") : !cells_drawn ? XLAT("(fix errors)") : "", ' ');
dialog::add_action([] {
if(rug::rug_control())
rug::reset_view();
else
fullcenter();
});
dialog::addBreak(100);
dialog::addBack();