mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 08:23:08 +00:00
do not generate modecodes without need
This commit is contained in:
1 parent
b587851f47
commit
b3d3661e13
3 files changed
+7
-4
No files matched your search
@@ -511,6 +511,7 @@ EX void show_custom() {
|
||||
auto m = at_or_null(modename, current_modecode);
|
||||
dialog::addSelItem("name custom mode", m ? *m : "", 'N');
|
||||
dialog::add_action([] {
|
||||
modecode();
|
||||
name_to_edit = modename[current_modecode];
|
||||
dialog::edit_string(name_to_edit, "name custom mode", "");
|
||||
dialog::get_di().reaction_final = [] { update_modename(name_to_edit); };
|
||||
|
||||
Reference in new issue
Block a user