From c89d98e8320eb229964a16d4b953348d95077adf Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 22 Aug 2023 20:12:34 +0200 Subject: [PATCH] rogueviz::som::adjusted to the new dialog system --- rogueviz/som/kohonen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rogueviz/som/kohonen.cpp b/rogueviz/som/kohonen.cpp index e0f48d6be..798c9f313 100644 --- a/rogueviz/som/kohonen.cpp +++ b/rogueviz/som/kohonen.cpp @@ -1059,8 +1059,8 @@ 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(); }; @@ -1068,7 +1068,7 @@ namespace levelline { 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(); };