1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-19 17:40:20 +00:00

stretch factor in cylindrical equidistant and cylindrical equi-area models

This commit is contained in:
Zeno Rogue
2018-07-30 17:44:11 +02:00
parent c252f1f09c
commit e27cd9b654
6 changed files with 73 additions and 39 deletions

View File

@@ -640,6 +640,10 @@ namespace conformal {
if(pmodel == mdTwoPoint) {
dialog::addSelItem(XLAT("parameter"), fts3(vid.twopoint_param), 'l');
}
if(among(pmodel, mdBandEquidistant, mdBandEquiarea)) {
dialog::addSelItem(XLAT("parameter"), fts3(vid.stretch), 'l');
}
dialog::addBreak(100);
dialog::addItem(XLAT("history mode"), 'a');
@@ -685,6 +689,10 @@ namespace conformal {
#endif
else if(uni == 'l' && pmodel == mdHalfplane)
lower_halfplane = !lower_halfplane;
else if(uni == 'l' && among(pmodel, mdBandEquiarea, mdBandEquidistant))
dialog::editNumber(vid.stretch, 0, 10, .1, 1, XLAT("parameter"),
"Vertical stretch factor."
);
else if(uni == 'a')
pushScreen(history_menu);
else if(uni == 'l' && pmodel == mdHemisphere && euclid) {