1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

extra_options and reaction now work in matrix dialog

This commit is contained in:
Zeno Rogue 2023-08-14 16:59:46 +02:00
parent cb05649732
commit 3eb2813667
2 changed files with 3 additions and 0 deletions

View File

@ -596,6 +596,8 @@ void matrix_setting::show_edit_option(int key) {
dialog::addMatrixItem(XLAT(menu_item_name), *value, key);
dialog::add_action([this] () {
dialog::editMatrix(*value, XLAT(menu_item_name), help_text, dim);
if(sets) sets();
if(reaction) dialog::get_di().reaction = reaction;
});
}

View File

@ -1205,6 +1205,7 @@ EX namespace dialog {
catch(hr_parse_exception&) { }
};
});
if(extra_options) extra_options();
addBack();
display();
}