From 6a39ed54c673067ec0c0fc8534ef3d34d6a0e2ca Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 14 Sep 2022 18:03:25 +0200 Subject: [PATCH] expansion dialog now links to line patterns dialog instead of listing some (which was bugged anyway) --- expansion.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/expansion.cpp b/expansion.cpp index cd20cbb9..3c0fd5e9 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -655,15 +655,8 @@ EX void viewdist_configure_dialog() { dialog::addBoolItem(XLAT("strict tree maps"), currentmap->strict_tree_rules(), 's'); dialog::add_action_push(rulegen::show); - int id = 0; - using namespace linepatterns; - for(auto& lp: {&patTriTree, &patTriRings, &patTriOther}) { - dialog::addColorItem(XLAT(lp->lpname), lp->color, '1'+(id++)); - dialog::add_action([&lp] () { - dialog::openColorDialog(lp->color, NULL); - dialog::dialogflags |= sm::MAYDARK | sm::SIDE | sm::EXPANSION; - }); - } + dialog::addItem(XLAT("line patterns"), 'L'); + dialog::add_action_push(linepatterns::showMenu); if(!mod_allowed()) { dialog::addItem(XLAT("enable the cheat mode for additional options"), 'C');