diff --git a/archimedean.cpp b/archimedean.cpp index 47817720..4d0b207f 100644 --- a/archimedean.cpp +++ b/archimedean.cpp @@ -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'); diff --git a/geom-exp.cpp b/geom-exp.cpp index 7cb8a755..57046d41 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -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