mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-22 12:04:03 +00:00
extra_options and reaction now work in matrix dialog
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user