From 774771e5f53d7a28af94e38ff5bed7a63dcd16a6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 4 Apr 2021 23:09:16 +0200 Subject: [PATCH] rogueviz::smoothcam:: an option to draw the crosshair --- rogueviz/smoothcam.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rogueviz/smoothcam.cpp b/rogueviz/smoothcam.cpp index d0a6034a..0cad05c1 100644 --- a/rogueviz/smoothcam.cpp +++ b/rogueviz/smoothcam.cpp @@ -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;