mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-26 11:27:39 +00:00
cleaned up linepatterns
This commit is contained in:
@@ -702,15 +702,13 @@ EX void viewdist_configure_dialog() {
|
||||
});
|
||||
|
||||
int id = 0;
|
||||
for(auto& lp: linepatterns::patterns) {
|
||||
using namespace linepatterns;
|
||||
if(among(lp.id, 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;
|
||||
});
|
||||
}
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
||||
if(!mod_allowed()) {
|
||||
|
||||
Reference in New Issue
Block a user