mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
ui: add message when trying to config unavailable machine inputs
This commit is contained in:
parent
e6b31c5b8d
commit
17bd34cec6
@ -114,6 +114,7 @@ void menu_input_general::populate(float &customtop, float &custombottom)
|
|||||||
|
|
||||||
// populate the menu in a standard fashion
|
// populate the menu in a standard fashion
|
||||||
populate_sorted(customtop, custombottom);
|
populate_sorted(customtop, custombottom);
|
||||||
|
item_append(menu_item_type::SEPARATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void menu_input_general::update_input(input_item_data &seqchangeditem)
|
void menu_input_general::update_input(input_item_data &seqchangeditem)
|
||||||
@ -220,7 +221,12 @@ void menu_input_specific::populate(float &customtop, float &custombottom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// populate the menu in a standard fashion
|
// populate the menu in a standard fashion
|
||||||
populate_sorted(customtop, custombottom);
|
if (!data.empty())
|
||||||
|
populate_sorted(customtop, custombottom);
|
||||||
|
else
|
||||||
|
item_append(_("This machine has no input map."), FLAG_DISABLE, nullptr);
|
||||||
|
|
||||||
|
item_append(menu_item_type::SEPARATOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void menu_input_specific::update_input(input_item_data &seqchangeditem)
|
void menu_input_specific::update_input(input_item_data &seqchangeditem)
|
||||||
@ -497,8 +503,6 @@ void menu_input::populate_sorted(float &customtop, float &custombottom)
|
|||||||
item_append(std::move(text), std::move(subtext), flags, &item);
|
item_append(std::move(text), std::move(subtext), flags, &item);
|
||||||
}
|
}
|
||||||
|
|
||||||
item_append(menu_item_type::SEPARATOR);
|
|
||||||
|
|
||||||
// pre-format messages
|
// pre-format messages
|
||||||
assignprompt = util::string_format(_("Press %1$s to set\n"), machine().input().seq_name(machine().ioport().type_seq(IPT_UI_SELECT)));
|
assignprompt = util::string_format(_("Press %1$s to set\n"), machine().input().seq_name(machine().ioport().type_seq(IPT_UI_SELECT)));
|
||||||
appendprompt = util::string_format(_("Press %1$s to append\n"), machine().input().seq_name(machine().ioport().type_seq(IPT_UI_SELECT)));
|
appendprompt = util::string_format(_("Press %1$s to append\n"), machine().input().seq_name(machine().ioport().type_seq(IPT_UI_SELECT)));
|
||||||
|
Loading…
Reference in New Issue
Block a user