mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 11:00:34 +00:00
rv::presentation:: split empty_screen and white_screen
This commit is contained in:
parent
f02b385138
commit
73ceb6400d
@ -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] {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user