1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +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

@ -19,6 +19,8 @@ namespace hr {
namespace hybrid { extern hrmap *pmap; }
namespace qtm {
color_t rcolor() {
color_t res;
part(res, 0) = hrand(0x80);
@ -85,7 +87,9 @@ int args() {
auto magichook = addHook(hooks_drawcell, 100, may_set_cell)
auto hooks = addHook(hooks_drawcell, 100, may_set_cell)
+ addHook(hooks_args, 100, args);
}
}

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;