Use radio-button-like menu entries where applicable

This commit is contained in:
Pedro J. Estébanez
2018-03-24 03:05:20 +01:00
parent bf14a6deff
commit a6dc160d5c
5 changed files with 26 additions and 28 deletions

View File

@@ -118,7 +118,7 @@ void OptionButton::add_icon_item(const Ref<Texture> &p_icon, const String &p_lab
}
void OptionButton::add_item(const String &p_label, int p_ID) {
popup->add_check_item(p_label, p_ID);
popup->add_radio_check_item(p_label, p_ID);
if (popup->get_item_count() == 1)
select(0);
}