mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-19 07:34:08 +00:00
colordialog now has reaction_final (called when selected or cancelled)
This commit is contained in:
parent
b720355438
commit
773bcfe29c
@ -606,8 +606,9 @@ EX namespace dialog {
|
|||||||
for(int i=0; i<10; i++) if(colorhistory[i] == (color << shift))
|
for(int i=0; i<10; i++) if(colorhistory[i] == (color << shift))
|
||||||
inHistory = true;
|
inHistory = true;
|
||||||
if(!inHistory) { colorhistory[lch] = (color << shift); lch++; lch %= 10; }
|
if(!inHistory) { colorhistory[lch] = (color << shift); lch++; lch %= 10; }
|
||||||
if(reaction) reaction();
|
|
||||||
popScreen();
|
popScreen();
|
||||||
|
if(reaction) reaction();
|
||||||
|
if(reaction_final) reaction_final();
|
||||||
}
|
}
|
||||||
else if(uni >= '0' && uni <= '9') {
|
else if(uni >= '0' && uni <= '9') {
|
||||||
color = colorhistory[uni - '0'] >> shift;
|
color = colorhistory[uni - '0'] >> shift;
|
||||||
@ -631,6 +632,7 @@ EX namespace dialog {
|
|||||||
}
|
}
|
||||||
else if(doexiton(sym, uni)) {
|
else if(doexiton(sym, uni)) {
|
||||||
popScreen();
|
popScreen();
|
||||||
|
if(reaction_final) reaction_final();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user