mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +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::add_action([this] () {
|
||||
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&) { }
|
||||
};
|
||||
});
|
||||
if(extra_options) extra_options();
|
||||
addBack();
|
||||
display();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user