Skip to content

Commit

Permalink
rogueviz::som::adjusted to the new dialog system
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorogue committed Aug 22, 2023
1 parent 089db20 commit c89d98e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rogueviz/som/kohonen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1059,16 +1059,16 @@ namespace levelline {
if(uni >= 'a' && uni - 'a' + isize(levellines)) {
auto& l = levellines[uni - 'a'];
dialog::editNumber(l.qty, 0, 10, 1, 0, colnames[l.column],
XLAT("Controls the number of level lines."));
dialog::reaction = [&l] () {
XLAT("Controls the number of level lines."))
.reaction = [&l] () {
l.modified = true;
build();
};
}
else if(uni >= 'A' && uni - 'A' + isize(levellines)) {
auto& l = levellines[uni - 'A'];
dialog::openColorDialog(l.color, NULL);
dialog::dialogflags |= sm::MAYDARK | sm::SIDE;
dialog::get_di().dialogflags |= sm::MAYDARK | sm::SIDE;
}
else if(doexiton(sym, uni)) popScreen();
};
Expand Down

0 comments on commit c89d98e

Please sign in to comment.