1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +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] {

View File

@ -231,6 +231,7 @@ function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act)
void add_stat(presmode mode, const bool_reaction_t& stat);
void compare_projections(presmode mode, eModel a, eModel b);
void no_other_hud(presmode mode);
void white_screen(presmode mode, color_t col = 0xFFFFFFFF);
void empty_screen(presmode mode, color_t col = 0xFFFFFFFF);
void show_picture(presmode mode, string s);
void show_animation(presmode mode, string s, int sx, int sy, int frames, int fps);