1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

size of the world in arcm now can be pressed just like in geom_exp

This commit is contained in:
Zeno Rogue 2024-05-28 13:04:52 +02:00
parent fcc3cae938
commit e2c81eeae7
2 changed files with 11 additions and 6 deletions

View File

@ -1464,7 +1464,9 @@ EX void show() {
}); });
if(in()) { if(in()) {
dialog::addSelItem(XLAT("size of the world"), current.world_size(), 0); dialog::addSelItem(XLAT("size of the world"), current.world_size(), 'S');
add_size_action();
dialog::addSelItem(XLAT("edge length"), current.get_class() == gcEuclid ? (fts(current.edgelength) + XLAT(" (arbitrary)")) : fts(current.edgelength), 0); dialog::addSelItem(XLAT("edge length"), current.get_class() == gcEuclid ? (fts(current.edgelength) + XLAT(" (arbitrary)")) : fts(current.edgelength), 0);
dialog::addItem(XLAT("color by symmetries"), 't'); dialog::addItem(XLAT("color by symmetries"), 't');

View File

@ -944,6 +944,13 @@ EX geometry_data compute_geometry_data() {
return gd; return gd;
} }
EX void add_size_action() {
if(WDIM == 2 || reg3::exact_rules()) dialog::add_action([] {
if(!viewdists) { enable_viewdists(); pushScreen(viewdist_configure_dialog); }
else if(viewdists) viewdists = false;
});
}
EX void showEuclideanMenu() { EX void showEuclideanMenu() {
// for(int i=2; i<lt; i++) landvisited[i] = true; // for(int i=2; i<lt; i++) landvisited[i] = true;
@ -1151,11 +1158,7 @@ EX void showEuclideanMenu() {
} }
dialog::addSelItem(XLAT("size of the world"), gd.size_str, '3'); dialog::addSelItem(XLAT("size of the world"), gd.size_str, '3');
add_size_action();
if(WDIM == 2 || reg3::exact_rules()) dialog::add_action([] {
if(!viewdists) { enable_viewdists(); pushScreen(viewdist_configure_dialog); }
else if(viewdists) viewdists = false;
});
if(closed_manifold) { if(closed_manifold) {
dialog::addSelItem(XLAT("Euler characteristics"), its(gd.euler), 0); dialog::addSelItem(XLAT("Euler characteristics"), its(gd.euler), 0);