From cee9bb5d3bc1cfac8fec7f428761004a48282d38 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Feb 2025 20:54:43 +0100 Subject: [PATCH] rogueviz::fundamental::change the starter tile --- rogueviz/fundamental.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rogueviz/fundamental.cpp b/rogueviz/fundamental.cpp index 0cb6ed4c..f7bc6464 100644 --- a/rogueviz/fundamental.cpp +++ b/rogueviz/fundamental.cpp @@ -274,6 +274,10 @@ void showMenu() { dialog::openColorDialog(color2, NULL); dialog::get_di().dialogflags |= sm::MAYDARK | sm::SIDE; }); + dialog::addSelItem("set the central tile to current position", its(celldistance(starter, cwt.at)), 's'); + dialog::add_action([] () { + starter = cwt.at; + }); dialog::addBack(); dialog::display();