1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

geom-exp: in info about, 'pure' is no longer displayed when no variations available

This commit is contained in:
Zeno Rogue 2019-12-27 01:45:24 +01:00
parent 7d96ea9c54
commit 3d4b7a074a

View File

@ -659,6 +659,8 @@ EX void showEuclideanMenu() {
} }
#endif #endif
bool variable = false;
if(prod) { if(prod) {
dialog::addSelItem(XLAT("Z-level height factor"), fts(vid.plevel_factor), 'Z'); dialog::addSelItem(XLAT("Z-level height factor"), fts(vid.plevel_factor), 'Z');
dialog::add_action([] { dialog::add_action([] {
@ -684,6 +686,7 @@ EX void showEuclideanMenu() {
} }
else if(WDIM == 3 || kite::in()) dialog::addBreak(100); else if(WDIM == 3 || kite::in()) dialog::addBreak(100);
else { else {
variable = true;
dialog::addSelItem(XLAT("variations"), gp::operation_name(), 'v'); dialog::addSelItem(XLAT("variations"), gp::operation_name(), 'v');
dialog::add_action([] { dialog::add_action([] {
if(0) ; if(0) ;
@ -795,7 +798,7 @@ EX void showEuclideanMenu() {
string fgname = XLAT(ginf[geometry].tiling_name); string fgname = XLAT(ginf[geometry].tiling_name);
if(qstring != "none") fgname += " " + XLAT(qstring); if(qstring != "none") fgname += " " + XLAT(qstring);
if(!euc::in(2,6)) fgname = gp::operation_name() + " " + fgname; if(variable) fgname = gp::operation_name() + " " + fgname;
dialog::addTitle(XLAT("info about: %1", fgname), 0xFFFFFF, 150); dialog::addTitle(XLAT("info about: %1", fgname), 0xFFFFFF, 150);