MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / has_selectable_items

Method has_selectable_items

scene/gui/option_button.cpp:348–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348bool OptionButton::has_selectable_items() const {
349 for (int i = 0; i < get_item_count(); i++) {
350 if (!is_item_disabled(i) && !is_item_separator(i)) {
351 return true;
352 }
353 }
354 return false;
355}
356int OptionButton::get_selectable_item(bool p_from_last) const {
357 if (!p_from_last) {
358 for (int i = 0; i < get_item_count(); i++) {

Callers 15

_autoplay_pressedMethod · 0.80
_animation_newMethod · 0.80
_animation_renameMethod · 0.80
_animation_removeMethod · 0.80
_edit_animation_blendMethod · 0.80
_blend_editedMethod · 0.80
_update_playerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected