1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 11:57:40 +00:00

CLI option -seo

This commit is contained in:
Zeno Rogue
2023-01-28 04:08:32 +01:00
parent 3af71864c7
commit fd55d4de89
2 changed files with 26 additions and 10 deletions

View File

@@ -2298,16 +2298,7 @@ EX void show_spatial_embedding() {
for(int i=0; i<isize(seo); i++) {
auto se = geom3::eSpatialEmbedding(i);
dialog::addBoolItem(XLAT(seo[i].first), emb == i, 'a' + i);
dialog::add_action([se, emb] {
if(GDIM == 3) { if(geom3::auto_configure) geom3::switch_fpp(); else geom3::switch_always3(); }
if(in_tpp()) geom3::switch_tpp();
if(se != geom3::seNone) {
geom3::spatial_embedding = se;
if(geom3::auto_configure) geom3::switch_fpp(); else geom3::switch_always3();
delete_sky();
resetGL();
}
});
dialog::add_action([se] { invoke_embed(se); });
}
dialog::addBreak(100);