mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 18:54:48 +00:00
expansion dialog now links to line patterns dialog instead of listing some (which was bugged anyway)
This commit is contained in:
parent
acc90b80b7
commit
6a39ed54c6
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user