mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-05 05:13:57 +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::addBreak(100);
|
||||||
dialog::addBack();
|
dialog::addBack();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user