From f27c54596e1cc4018326acb28da9e7947e9f5430 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 10 Aug 2020 20:31:49 +0200 Subject: [PATCH] intro slide to noniso geometries --- rogueviz/noniso-honeycombs.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/rogueviz/noniso-honeycombs.cpp b/rogueviz/noniso-honeycombs.cpp index 47e19595..9a9e7b8c 100644 --- a/rogueviz/noniso-honeycombs.cpp +++ b/rogueviz/noniso-honeycombs.cpp @@ -146,6 +146,22 @@ void honey(vector& v) { } -auto hooks = addHook(rvtour::hooks_build_rvtour, 163, honey); +void start_noniso(vector& v) { + using namespace tour; + v.emplace_back( + slide{"non-isotropic geometries/intro slide", 999, LEGAL::NONE | QUICKSKIP, + "This is a collection of non-isotropic geometry demos.", + [] (presmode mode) { + if(mode == pmStart) { + stop_game(); + set_geometry(gCubeTiling); + start_game(); + } + } + }); + } + +auto hooks = addHook(rvtour::hooks_build_rvtour, 163, honey) + + addHook(rvtour::hooks_build_rvtour, 160, start_noniso); } }