mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
color dialog uses reactions now
This commit is contained in:
1 parent
168d35cb17
commit
37cc910031
2 files changed
+8
-7
No files matched your search
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user