mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
rogueviz::presentation:: slide_error function
This commit is contained in:
parent
b622a7ac42
commit
367ff6f035
@ -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;
|
map<string, texture::texture_data> textures;
|
||||||
|
|
||||||
void draw_texture(texture::texture_data& tex) {
|
void draw_texture(texture::texture_data& tex) {
|
||||||
|
@ -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 empty_screen(presmode mode, color_t col = 0xFFFFFFFF);
|
||||||
void show_picture(presmode mode, string s);
|
void show_picture(presmode mode, string s);
|
||||||
void use_angledir(presmode mode, bool reset);
|
void use_angledir(presmode mode, bool reset);
|
||||||
|
void slide_error(presmode mode, string s);
|
||||||
|
|
||||||
inline ld angle = 0;
|
inline ld angle = 0;
|
||||||
inline int dir = -1;
|
inline int dir = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user