1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

cylinder/donut view option for the torus

This commit is contained in:
Zeno Rogue 2021-02-06 02:04:57 +01:00
parent 3d306c6aa5
commit 2b2bdbdb54

View File

@ -736,6 +736,15 @@ EX namespace models {
dialog::add_action([zoom_to] { zoom_to(1); });
dialog::addItem(XLAT("zoom 0.5x"), '3');
dialog::add_action([zoom_to] { zoom_to(.5); });
if(quotient) {
dialog::addItem(XLAT("cylinder/donut view"), 'u');
dialog::add_action([] {
if(rug::rugged) pushScreen(rug::show);
else {
pconf.alpha = 1, pconf.scale = 1; if(!rug::rugged) rug::init(); popScreen();
}
});
}
}
else if(GDIM == 3) {
auto& ysh = (WDIM == 2 ? vid.camera : vid.yshift);