mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
extra_options and reaction now work in matrix dialog
This commit is contained in:
parent
cb05649732
commit
3eb2813667
@ -596,6 +596,8 @@ void matrix_setting::show_edit_option(int key) {
|
|||||||
dialog::addMatrixItem(XLAT(menu_item_name), *value, key);
|
dialog::addMatrixItem(XLAT(menu_item_name), *value, key);
|
||||||
dialog::add_action([this] () {
|
dialog::add_action([this] () {
|
||||||
dialog::editMatrix(*value, XLAT(menu_item_name), help_text, dim);
|
dialog::editMatrix(*value, XLAT(menu_item_name), help_text, dim);
|
||||||
|
if(sets) sets();
|
||||||
|
if(reaction) dialog::get_di().reaction = reaction;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1205,6 +1205,7 @@ EX namespace dialog {
|
|||||||
catch(hr_parse_exception&) { }
|
catch(hr_parse_exception&) { }
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
if(extra_options) extra_options();
|
||||||
addBack();
|
addBack();
|
||||||
display();
|
display();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user