mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-14 07:28:18 +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))
|
||||
inHistory = true;
|
||||
if(!inHistory) { colorhistory[lch] = (color << shift); lch++; lch %= 10; }
|
||||
if(reaction) reaction();
|
||||
popScreen();
|
||||
if(reaction) reaction();
|
||||
if(reaction_final) reaction_final();
|
||||
}
|
||||
else if(uni >= '0' && uni <= '9') {
|
||||
color = colorhistory[uni - '0'] >> shift;
|
||||
@ -631,6 +632,7 @@ EX namespace dialog {
|
||||
}
|
||||
else if(doexiton(sym, uni)) {
|
||||
popScreen();
|
||||
if(reaction_final) reaction_final();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user