rogueviz:: used args::add and made hypcity and hypocycloid enablable

This commit is contained in:
Zeno Rogue
2021-04-07 18:13:45 +02:00
parent ceb79290ae
commit 8a836fd1ea
10 changed files with 44 additions and 111 deletions
+2 -8
View File
@@ -132,14 +132,8 @@ void create_janko() {
gi.menu_displayed_name = "Janko group J1";
}
auto shot_hooks = addHook(hooks_args, 100, [] {
if(arg::argis("-janko1x")) {
build();
experiment();
}
else return true;
return false;
}) + addHook(hooks_initialize, 100, create_janko);
auto shot_hooks = arg::add3("-janko1x", [] { build(); experiment(); })
+ addHook(hooks_initialize, 100, create_janko);
}