1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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
9 changed files with 82 additions and 17 deletions

View File

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