1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-28 19:15:14 +00:00

RogueViz adjustments

This commit is contained in:
Zeno Rogue
2019-09-13 18:46:08 +02:00
parent 09ff50ba45
commit 2400a2f1dc
2 changed files with 10 additions and 4 deletions

View File

@@ -76,9 +76,11 @@ int readArgs() {
patterns::whichShape = '9';
nohud = true;
addHook(hooks_drawcell, 100, sunflower_cell);
addHook(hooks_mainmenu, 100, [] () {
dialog::addItem("sunflower", 1001);
dialog::add_action([] () { dialog::editNumber(zdensity, 0, 1, .1, 1, "density", "density"); });
addHook(dialog::hooks_display_dialog, 100, [] () {
if(current_screen_cfunction() == showMainMenu) {
dialog::addItem("sunflower", 1001);
dialog::add_action([] () { dialog::editNumber(zdensity, 0, 1, .1, 1, "density", "density"); });
}
});
}
else return 1;