1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 13:27:17 +00:00

a grid when setting the formula

This commit is contained in:
Zeno Rogue 2018-11-08 22:41:01 +01:00
parent be51445b77
commit 7d6136375f

View File

@ -609,6 +609,20 @@ namespace conformal {
"the point z is mapped to f(z). You can also use the underlying coordinates ux, uy, uz." "the point z is mapped to f(z). You can also use the underlying coordinates ux, uy, uz."
) + "\n\n" + parser_help() ) + "\n\n" + parser_help()
); );
dialog::extra_options = [] () {
initquickqueue();
queuereset(mdUnchanged, PPR::LINE);
for(int a=-1; a<=1; a++) {
curvepoint(hpxyz(-M_PI/2 * vid.radius, a*vid.radius, 0));
curvepoint(hpxyz(+M_PI/2 * vid.radius, a*vid.radius, 0));
queuecurve(forecolor, 0, PPR::LINE);
curvepoint(hpxyz(a*vid.radius, -M_PI/2*vid.radius, 0));
curvepoint(hpxyz(a*vid.radius, +M_PI/2*vid.radius, 0));
queuecurve(forecolor, 0, PPR::LINE);
}
queuereset(pmodel, PPR::LINE);
quickqueue();
};
dialog::reaction_final = [] () { dialog::reaction_final = [] () {
pmodel = mdFormula; pmodel = mdFormula;
}; };