1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +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) {

View File

@ -210,6 +210,7 @@ function<void(presmode)> roguevizslide_action(char c, const T& t, const U& act)
void empty_screen(presmode mode, color_t col = 0xFFFFFFFF);
void show_picture(presmode mode, string s);
void use_angledir(presmode mode, bool reset);
void slide_error(presmode mode, string s);
inline ld angle = 0;
inline int dir = -1;