mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
'numberdark' value controls darkening in number dialogs
This commit is contained in:
parent
7e0a78f7bb
commit
1a72a629ea
@ -657,9 +657,11 @@ namespace dialog {
|
||||
}
|
||||
}
|
||||
|
||||
int numberdark;
|
||||
|
||||
void drawNumberDialog() {
|
||||
cmode = sm::NUMBER | dialogflags;
|
||||
gamescreen(0);
|
||||
gamescreen(numberdark);
|
||||
init(ne.title);
|
||||
addInfo(ne.s);
|
||||
addSlider(ne.scale(ne.vmin), ne.scale(*ne.editwhat), ne.scale(ne.vmax), 500);
|
||||
@ -855,6 +857,7 @@ namespace dialog {
|
||||
cmode |= sm::NUMBER;
|
||||
pushScreen(drawNumberDialog);
|
||||
reaction = reaction_t();
|
||||
numberdark = 0;
|
||||
}
|
||||
|
||||
void editNumber(int& x, int vmin, int vmax, int step, int dft, string title, string help) {
|
||||
|
Loading…
Reference in New Issue
Block a user