1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-22 05:38:33 +00:00

show_hyperboloid_flat option

This commit is contained in:
Zeno Rogue
2020-11-01 20:10:08 +01:00
parent 4362f06b0b
commit 8c4b700466
5 changed files with 11 additions and 1 deletions

View File

@@ -445,6 +445,8 @@ EX namespace models {
}
if(among(vpmodel, mdDisk, mdBall, mdHyperboloid, mdRotatedHyperboles, mdPanini)) {
dynamicval<eModel> v(vpconf.model, vpconf.model);
if(vpmodel == mdHyperboloid) vpconf.model = mdDisk;
dialog::addSelItem(XLAT("projection distance"), fts(vpconf.alpha) + " (" + current_proj_name() + ")", 'p');
dialog::add_action(projectionDialog);
}
@@ -615,6 +617,10 @@ EX namespace models {
dialog::scaleLog();
});
}
if(vpmodel == mdHyperboloid) {
dialog::addBoolItem_action(XLAT("show flat"), pconf.show_hyperboloid_flat, 'b');
}
if(vpmodel == mdCollignon) {
dialog::addSelItem(XLAT("parameter"), fts(vpconf.collignon_parameter) + (vpconf.collignon_reflected ? " (r)" : ""), 'b');