mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
cl parameters and param entries for spiralx and spiraly
This commit is contained in:
parent
90468c0daf
commit
048bd4ab36
@ -1809,6 +1809,9 @@ unordered_map<string, ld&> params = {
|
||||
{"mobius", vid.skiprope},
|
||||
{"a", anims::a},
|
||||
{"b", anims::b},
|
||||
{"sang", conformal::spiral_angle},
|
||||
{"spiralx", conformal::spiral_x},
|
||||
{"spiraly", conformal::spiral_y},
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -820,7 +820,7 @@ namespace conformal {
|
||||
dialog::add_action([](){
|
||||
dialog::editNumber(spiral_x, -20, 20, 1, 10, XLAT("spiral period: x"), "");
|
||||
});
|
||||
dialog::addSelItem(XLAT("spiral period: y"), fts(spiral_x), 'y');
|
||||
dialog::addSelItem(XLAT("spiral period: y"), fts(spiral_y), 'y');
|
||||
dialog::add_action([](){
|
||||
dialog::editNumber(spiral_y, -20, 20, 1, 10, XLAT("spiral period: y"), "");
|
||||
});
|
||||
@ -1093,6 +1093,11 @@ namespace conformal {
|
||||
PHASEFROM(2);
|
||||
shift_arg_formula(conformal::spiral_angle);
|
||||
}
|
||||
else if(argis("-sxy")) {
|
||||
PHASEFROM(2);
|
||||
shift_arg_formula(conformal::spiral_x);
|
||||
shift_arg_formula(conformal::spiral_y);
|
||||
}
|
||||
else if(argis("-mob")) {
|
||||
PHASEFROM(2);
|
||||
shift_arg_formula(vid.skiprope);
|
||||
|
1
hyper.h
1
hyper.h
@ -1286,6 +1286,7 @@ namespace conformal {
|
||||
extern bool model_straight;
|
||||
extern ld model_transition;
|
||||
extern ld top_z;
|
||||
extern ld spiral_angle, spiral_x, spiral_y;
|
||||
|
||||
// screen coordinates to logical coordinates: apply_orientation(x,y)
|
||||
// logical coordinates back to screen coordinates: apply_orientation(y,x)
|
||||
|
Loading…
Reference in New Issue
Block a user