1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

added 'RogueViz settings' to HyperRogue main menu; graph viz is now accessed via o-key only

This commit is contained in:
Zeno Rogue 2021-04-02 16:22:01 +02:00
parent e9c8f516aa
commit 7d2a70024d
2 changed files with 8 additions and 8 deletions

View File

@ -379,6 +379,12 @@ int pres_hooks =
}
}
}) +
addHook(dialog::hooks_display_dialog, 100, [] () {
if(current_screen_cfunction() == showMainMenu) {
dialog::addItem(XLAT("RogueViz demos"), 'd');
dialog::add_action_push(choose_presentation);
}
}) +
addHook(tour::ss::hooks_extra_slideshows, 300, [] (tour::ss::slideshow_callback cb) {
if(rogueviz::pres::rvslides_data.empty()) pres::gen_rvtour_data();
cb(XLAT("non-Euclidean geometry in data analysis"), &pres::rvslides_data[0], 'd');

View File

@ -1168,7 +1168,7 @@ bool default_help() {
}
void o_key(o_funcs& v) {
v.push_back(named_dialog(XLAT("rogueviz menu"), rogueviz::showMenu));
v.push_back(named_dialog(XLAT("RogueViz graph viz settings"), rogueviz::showMenu));
}
auto hooks =
@ -1176,13 +1176,7 @@ auto hooks =
addHook(hooks_args, 100, readArgs) +
#endif
addHook(hooks_clearmemory, 0, close) +
addHook(dialog::hooks_display_dialog, 100, [] () {
if(current_screen_cfunction() == showMainMenu) {
dialog::addItem(XLAT("rogueviz menu"), 'u');
dialog::add_action_push(rogueviz::showMenu);
}
}) +
addHook(hooks_markers, 100, search_marker) +
addHook(hooks_configfile, 100, [] {
param_i(brm_limit, "brm_limit");