'numberdark' value controls darkening in number dialogs

This commit is contained in:
Zeno Rogue 2018-05-15 23:26:27 +02:00
parent 7e0a78f7bb
commit 1a72a629ea
1 changed files with 4 additions and 1 deletions

View File

@ -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) {