From bde3efbc35a728ff2f3fac8b9297cdc768741881 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Mar 2022 09:32:39 +0100 Subject: [PATCH] rv:: some fixes to the demos --- rogueviz/hyperbolic-analogs.cpp | 4 ++++ rogueviz/intra-demos.cpp | 1 + rogueviz/notknot.cpp | 1 + rogueviz/planets.cpp | 6 +++++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/rogueviz/hyperbolic-analogs.cpp b/rogueviz/hyperbolic-analogs.cpp index 330e4c23..681a3206 100644 --- a/rogueviz/hyperbolic-analogs.cpp +++ b/rogueviz/hyperbolic-analogs.cpp @@ -440,6 +440,10 @@ auto msc = arg::add3("-analogs", enable) slide_url(mode, 'm', "HyperRogue page about projections", "http://www.roguetemple.com/z/hyper/models.php"); setCanvas(mode, '0'); if(mode == pmStart) { + slide_backup(mapeditor::drawplayer); + slide_backup(vid.use_smart_range); + slide_backup(vid.smart_range_detail); + slide_backup(vid.linequality); enable(); start_game(); slide_backup(cycle_models); diff --git a/rogueviz/intra-demos.cpp b/rogueviz/intra-demos.cpp index e64a5bff..69cb6459 100644 --- a/rogueviz/intra-demos.cpp +++ b/rogueviz/intra-demos.cpp @@ -510,6 +510,7 @@ auto hooks = if(twitter != "") slide_url(mode, 't', "Twitter link", twitter); slide_action(mode, 'r', "run this visualization", loader); + slidecommand = "portal options"; if(mode == tour::pmKey) pushScreen(intra::show_portals); } }); diff --git a/rogueviz/notknot.cpp b/rogueviz/notknot.cpp index a02bace0..8b3a9ee4 100644 --- a/rogueviz/notknot.cpp +++ b/rogueviz/notknot.cpp @@ -1474,6 +1474,7 @@ void portal_slideshow(tour::ss::slideshow_callback cb) { loop = 2; }); + slidecommand = "notknot options"; if(mode == tour::pmKey) pushScreen(show); }}); }; diff --git a/rogueviz/planets.cpp b/rogueviz/planets.cpp index 4e0ad571..d99d4f3f 100644 --- a/rogueviz/planets.cpp +++ b/rogueviz/planets.cpp @@ -435,6 +435,7 @@ void choose_projection() { cmode = sm::SIDE | sm::MAYDARK; gamescreen(0); dialog::init(XLAT("choose projection"), 0xFFFFFFFF, 150, 0); + dynamicval di(index); for(int i=0; i<8; i++) { index = i; dynamicval md(pmodel, pmodel); @@ -520,7 +521,7 @@ auto msc = "We can also project a sphere to a sphere of different curvature. For example, what about the azimuthal equidistant projection from Earth to Moon? " "This projection correctly maps the angles and distances from a chosen point at Earth. " - "Press 'o' to use the place on Earth you are in as the chosen point, try other projections, or change the other settings!" + "Press '5' to use the place on Earth you are in as the chosen point, try other projections, or change the other settings!" , [] (presmode mode) { slide_url(mode, 't', "Twitter link (with description)", "https://twitter.com/ZenoRogue/status/1339946298460483589"); @@ -533,9 +534,12 @@ auto msc = slide_backup(pmodel, mdDisk); slide_backup(pconf.scale, 1000); slide_backup(pconf.alpha, 1000); + slide_backup(mapeditor::drawplayer, false); start_game(); slide_backup(max_alpha, 192); } + slidecommand = "options"; + if(mode == tour::pmKey) pushScreen(show); }}); });