1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-02 20:29:17 +00:00

rogueviz::smoothcam:: an option to draw the crosshair

This commit is contained in:
Zeno Rogue 2021-04-04 23:09:16 +02:00
parent 821745dfa7
commit 774771e5f5

View File

@ -166,6 +166,7 @@ void edit_step(animation& anim, int id) {
void show() {
cmode = sm::SIDE;
gamescreen(0);
draw_crosshair();
dialog::init(XLAT("smooth camera"), 0xFFFFFFFF, 150, 0);
char key = 'A';
int aid = 0;
@ -212,6 +213,9 @@ void show() {
if(view_trace) generate_trace();
});
dialog::addBoolItem("view the crosshair", crosshair_size, 'x');
dialog::add_action([] { crosshair_size = crosshair_size ? 0 : 10; });
dialog::addBoolItem("run the animation", animate_on, 'r');
dialog::add_action([] {
animate_on = !animate_on;