From 1a72a629eaa39b8e50e88456a063417c5441d965 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 15 May 2018 23:26:27 +0200 Subject: [PATCH] 'numberdark' value controls darkening in number dialogs --- dialogs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dialogs.cpp b/dialogs.cpp index ec447c0e..31012540 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -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) {