mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 04:13:03 +00:00
rogueviz:: nilrider:: usable in presentations
This commit is contained in:
@@ -276,6 +276,7 @@ void run() {
|
|||||||
show_button(PSEUDOKEY_MENU, "menu");
|
show_button(PSEUDOKEY_MENU, "menu");
|
||||||
|
|
||||||
dialog::add_key_action(PSEUDOKEY_MENU, [] {
|
dialog::add_key_action(PSEUDOKEY_MENU, [] {
|
||||||
|
if(tour::on) { tour::next_slide(); return; }
|
||||||
if(curlev->current.timer) paused = true;
|
if(curlev->current.timer) paused = true;
|
||||||
game_keys_scroll = true;
|
game_keys_scroll = true;
|
||||||
pushScreen(main_menu);
|
pushScreen(main_menu);
|
||||||
@@ -843,6 +844,20 @@ void initialize_all() {
|
|||||||
start_game();
|
start_game();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void initialize_for_slide(tour::presmode mode) {
|
||||||
|
setWhiteCanvas(mode, [] { set_geometry(gNil); set_variation(eVariation::pure); });
|
||||||
|
if(mode == tour::pmStart) {
|
||||||
|
tour::slide_backup(pmodel, mdGeodesic);
|
||||||
|
tour::slide_backup(nisot::geodesic_movement, true);
|
||||||
|
lps_enable(&lps_nilrider);
|
||||||
|
tour::slide_backup(poly_outline, 0xFF);
|
||||||
|
stop_game();
|
||||||
|
initialize();
|
||||||
|
start_game();
|
||||||
|
}
|
||||||
|
if(mode == tour::pmStop) lps_enable(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", [] { planning_mode = true; }) + arg::add3("-viewsim", [] { view_replay = true; })
|
auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", [] { planning_mode = true; }) + arg::add3("-viewsim", [] { view_replay = true; })
|
||||||
+ arg::add3("-oqc", [] { on_quit = popScreenAll; })
|
+ arg::add3("-oqc", [] { on_quit = popScreenAll; })
|
||||||
+ arg::add3("-nilsolve-set", [] {
|
+ arg::add3("-nilsolve-set", [] {
|
||||||
|
|||||||
Reference in New Issue
Block a user