1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-16 17:09:37 +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()) {
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::addItem(XLAT("color by symmetries"), 't');

View File

@ -944,6 +944,13 @@ EX geometry_data compute_geometry_data() {
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() {
// 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');
if(WDIM == 2 || reg3::exact_rules()) dialog::add_action([] {
if(!viewdists) { enable_viewdists(); pushScreen(viewdist_configure_dialog); }
else if(viewdists) viewdists = false;
});
add_size_action();
if(closed_manifold) {
dialog::addSelItem(XLAT("Euler characteristics"), its(gd.euler), 0);