From e2c81eeae7dc5b729b97f1c20dd4b6eebf57ffb3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 28 May 2024 13:04:52 +0200 Subject: [PATCH] size of the world in arcm now can be pressed just like in geom_exp --- archimedean.cpp | 4 +++- geom-exp.cpp | 13 ++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) 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