mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
rogueviz:: nilrider:: now uses the new VR quickkey system
This commit is contained in:
parent
8fcabb0fde
commit
38653fdc00
@ -705,6 +705,18 @@ void default_settings() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void vrqm_ext() {
|
||||
dialog::addItem("restart Nil Rider", 'r');
|
||||
dialog::add_action([] {
|
||||
println(hlog, "nilrider restart");
|
||||
nilrider::restart();
|
||||
});
|
||||
dialog::addBoolItem("stepped Nil Rider", nilrider::stepped_display, 's');
|
||||
dialog::add_action([] {
|
||||
println(hlog, "nilrider stepped");
|
||||
nilrider::stepped_display = !nilrider::stepped_display;
|
||||
});
|
||||
}
|
||||
|
||||
void initialize() {
|
||||
load();
|
||||
@ -746,6 +758,7 @@ void initialize() {
|
||||
rv_hook(hooks_resetGL, 100, cleanup_textures);
|
||||
rv_hook(hooks_music, 100, nilrider_music);
|
||||
rv_hook(hooks_sync_music, 100, sync_music);
|
||||
rv_hook(vrhr::vr_quickmenu_extensions, 101, vrqm_ext);
|
||||
on = true;
|
||||
on_cleanup_or_next([] { on = false; });
|
||||
pushScreen(run);
|
||||
|
Loading…
Reference in New Issue
Block a user