Change print warnings to config ones for popups that need transparency

This commit is contained in:
Michael Alexsander 2025-01-08 20:00:20 -03:00
parent 0257995616
commit 5c63646e87
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
9 changed files with 82 additions and 17 deletions

View file

@ -582,6 +582,14 @@ void OptionButton::set_disable_shortcuts(bool p_disabled) {
disable_shortcuts = p_disabled;
}
#ifdef TOOLS_ENABLED
PackedStringArray OptionButton::get_configuration_warnings() const {
PackedStringArray warnings = Button::get_configuration_warnings();
warnings.append_array(popup->get_configuration_warnings());
return warnings;
}
#endif
OptionButton::OptionButton(const String &p_text) :
Button(p_text) {
set_toggle_mode(true);