mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	rv:: some fixes to the demos
This commit is contained in:
		| @@ -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"); |           slide_url(mode, 'm', "HyperRogue page about projections", "http://www.roguetemple.com/z/hyper/models.php"); | ||||||
|           setCanvas(mode, '0'); |           setCanvas(mode, '0'); | ||||||
|           if(mode == pmStart) { |           if(mode == pmStart) { | ||||||
|  |             slide_backup(mapeditor::drawplayer); | ||||||
|  |             slide_backup(vid.use_smart_range); | ||||||
|  |             slide_backup(vid.smart_range_detail); | ||||||
|  |             slide_backup(vid.linequality); | ||||||
|             enable(); |             enable(); | ||||||
|             start_game(); |             start_game(); | ||||||
|             slide_backup(cycle_models); |             slide_backup(cycle_models); | ||||||
|   | |||||||
| @@ -510,6 +510,7 @@ auto hooks = | |||||||
|           if(twitter != "") |           if(twitter != "") | ||||||
|             slide_url(mode, 't', "Twitter link", twitter); |             slide_url(mode, 't', "Twitter link", twitter); | ||||||
|           slide_action(mode, 'r', "run this visualization", loader); |           slide_action(mode, 'r', "run this visualization", loader); | ||||||
|  |           slidecommand = "portal options"; | ||||||
|           if(mode == tour::pmKey) pushScreen(intra::show_portals); |           if(mode == tour::pmKey) pushScreen(intra::show_portals); | ||||||
|           } |           } | ||||||
|         }); |         }); | ||||||
|   | |||||||
| @@ -1474,6 +1474,7 @@ void portal_slideshow(tour::ss::slideshow_callback cb) { | |||||||
|               loop = 2; |               loop = 2; | ||||||
|               }); |               }); | ||||||
|  |  | ||||||
|  |             slidecommand = "notknot options"; | ||||||
|             if(mode == tour::pmKey) pushScreen(show); |             if(mode == tour::pmKey) pushScreen(show); | ||||||
|             }}); |             }}); | ||||||
|       }; |       }; | ||||||
|   | |||||||
| @@ -435,6 +435,7 @@ void choose_projection() { | |||||||
|   cmode = sm::SIDE | sm::MAYDARK; |   cmode = sm::SIDE | sm::MAYDARK; | ||||||
|   gamescreen(0); |   gamescreen(0); | ||||||
|   dialog::init(XLAT("choose projection"), 0xFFFFFFFF, 150, 0); |   dialog::init(XLAT("choose projection"), 0xFFFFFFFF, 150, 0); | ||||||
|  |   dynamicval<int> di(index); | ||||||
|   for(int i=0; i<8; i++) { |   for(int i=0; i<8; i++) { | ||||||
|     index = i; |     index = i; | ||||||
|     dynamicval<eModel> md(pmodel, pmodel); |     dynamicval<eModel> 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? " |         "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. " |         "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) { |         [] (presmode mode) { | ||||||
|           slide_url(mode, 't', "Twitter link (with description)", "https://twitter.com/ZenoRogue/status/1339946298460483589"); |           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(pmodel, mdDisk); | ||||||
|             slide_backup(pconf.scale, 1000); |             slide_backup(pconf.scale, 1000); | ||||||
|             slide_backup(pconf.alpha, 1000); |             slide_backup(pconf.alpha, 1000); | ||||||
|  |             slide_backup(mapeditor::drawplayer, false); | ||||||
|             start_game(); |             start_game(); | ||||||
|             slide_backup(max_alpha, 192); |             slide_backup(max_alpha, 192); | ||||||
|             } |             } | ||||||
|  |           slidecommand = "options"; | ||||||
|  |           if(mode == tour::pmKey) pushScreen(show); | ||||||
|           }}); |           }}); | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue