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:
parent
b89ba69fd9
commit
23e4f90685
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user