1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 09:17:57 +00:00

using addHook_rvslides and addHook_slideshows in various rogueviz demos

This commit is contained in:
Zeno Rogue
2021-06-25 13:53:23 +02:00
parent b3bb235ac9
commit 28d334c660
26 changed files with 33 additions and 28 deletions

View File

@@ -447,6 +447,7 @@ void house(int sides, int shape = 10) {
start_game();
}
#if CAP_RVSLIDES
tour::slide *gen_high_demo() {
high_slides.clear();
using namespace tour;
@@ -643,9 +644,10 @@ tour::slide *gen_high_demo() {
pres::add_end(v);
return &high_slides[0];
}
#endif
auto highdim_hooks =
addHook(tour::ss::hooks_extra_slideshows, 120, [] (tour::ss::slideshow_callback cb) {
addHook_slideshows(120, [] (tour::ss::slideshow_callback cb) {
if(high_slides.empty()) gen_high_demo();