rotational model of Nil, and change Nil rotation

This commit is contained in:
Zeno Rogue committed 2020-09-11 11:13:18 +02:00
1 parent 59a7d3e562
commit 18ab187547
6 files changed
+70 -17

No files matched your search

+16 -1
View File
@@ -449,7 +449,18 @@ EX namespace models {
});
}
}
if(among(vpmodel, mdPerspective, mdHorocyclic) && nil) {
dialog::addSelItem(XLAT("model orientation"), fts(vpconf.model_orientation) + "°", 'l');
dialog::add_action([] () {
dialog::editNumber(vpconf.model_orientation, 0, 360, 90, 0, XLAT("model orientation"), "");
});
dialog::addSelItem(XLAT("rotational or Heisenberg"), fts(vpconf.rotational_nil), 'L');
dialog::add_action([] () {
dialog::editNumber(vpconf.rotational_nil, 0, 1, 1, 1, XLAT("1 = Heisenberg, 0 = rotational"), "");
});
}
if(GDIM == 3 && vpmodel != mdPerspective) {
const string cliphelp = XLAT(
"Your view of the 3D model is naturally bounded from four directions by your window. "
@@ -737,6 +748,10 @@ EX namespace models {
PHASEFROM(2);
shift_arg_formula(vpconf.model_orientation);
}
else if(argis("-mnil")) {
PHASEFROM(2);
shift_arg_formula(vpconf.rotational_nil);
}
else if(argis("-mori2")) {
PHASEFROM(2);
shift_arg_formula(vpconf.model_orientation);