1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 10:17:56 +00:00

rogueviz::presentation:: slide_error function

This commit is contained in:
Zeno Rogue
2021-03-31 12:18:42 +02:00
parent b622a7ac42
commit 367ff6f035
2 changed files with 11 additions and 0 deletions

View File

@@ -88,6 +88,16 @@ void empty_screen(presmode mode, color_t col) {
}
}
void slide_error(presmode mode, string s) {
empty_screen(mode, 0x400000);
add_stat(mode, [s] {
dialog::init();
dialog::addTitle(s, 0xFF0000, 150);
dialog::display();
return true;
});
}
map<string, texture::texture_data> textures;
void draw_texture(texture::texture_data& tex) {