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

rv::presentation:: split empty_screen and white_screen

This commit is contained in:
Zeno Rogue
2022-06-08 18:05:05 +02:00
parent f02b385138
commit 73ceb6400d
2 changed files with 9 additions and 2 deletions

View File

@@ -76,9 +76,8 @@ void no_other_hud(presmode mode) {
clearMessages();
}
void empty_screen(presmode mode, color_t col) {
void white_screen(presmode mode, color_t col) {
if(mode == pmStart) {
tour::slide_backup(nomap, true);
tour::slide_backup(backcolor, col);
tour::slide_backup(ringcolor, color_t(0));
tour::slide_backup<color_t>(dialog::dialogcolor, 0);
@@ -88,6 +87,13 @@ void empty_screen(presmode mode, color_t col) {
}
}
void empty_screen(presmode mode, color_t col) {
if(mode == pmStart) {
tour::slide_backup(nomap, true);
}
white_screen(mode, col);
}
void slide_error(presmode mode, string s) {
empty_screen(mode, 0x400000);
add_stat(mode, [s] {