1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 12:47:10 +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;
});
}