mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-07 20:02:50 +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::addBoolItem(XLAT("strict tree maps"), currentmap->strict_tree_rules(), 's');
|
||||||
dialog::add_action_push(rulegen::show);
|
dialog::add_action_push(rulegen::show);
|
||||||
|
|
||||||
int id = 0;
|
dialog::addItem(XLAT("line patterns"), 'L');
|
||||||
using namespace linepatterns;
|
dialog::add_action_push(linepatterns::showMenu);
|
||||||
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;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!mod_allowed()) {
|
if(!mod_allowed()) {
|
||||||
dialog::addItem(XLAT("enable the cheat mode for additional options"), 'C');
|
dialog::addItem(XLAT("enable the cheat mode for additional options"), 'C');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user