color dialog uses reactions now

This commit is contained in:
Zeno Rogue committed 2017-12-19 14:34:38 +01:00
1 parent 168d35cb17
commit 37cc910031
2 files changed
+8 -7

No files matched your search

+4 -1
View File
@@ -449,8 +449,10 @@ namespace dialog {
unsigned char* pts = (unsigned char*) &color;
pts[colorp] += abs(shiftmul) < .6 ? 1 : 17;
}
else if(doexiton(sym, uni))
else if(doexiton(sym, uni)) {
if(reaction) reaction();
popScreen();
}
return false;
}
@@ -516,6 +518,7 @@ namespace dialog {
colorPointer = &col; palette = pal;
dialogflags = 0;
pushScreen(drawColorDialog);
reaction = reaction_t();
}
struct numberEditor {