1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 03:27:55 +00:00

made background screen darkening consistent and optional

This commit is contained in:
Zeno Rogue
2022-07-05 11:51:06 +02:00
parent b3a394c266
commit 75f58766a2
39 changed files with 170 additions and 129 deletions

View File

@@ -1291,7 +1291,8 @@ EX bool warningprotection(const string& s) {
if(items[itWarning]) return false;
warning_shown = true;
pushScreen([s] () {
gamescreen(1);
cmode = sm::DARKEN;
gamescreen();
dialog::addBreak(250);
dialog::init(XLAT("WARNING"), 0xFF0000, 150, 100);
dialog::addBreak(500);