You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Treat MenuBar and MenuButton as advanced UI
This commit is contained in:
@@ -173,10 +173,7 @@ bool MenuButton::_get(const StringName &p_name, Variant &r_ret) const {
|
||||
}
|
||||
|
||||
void MenuButton::_bind_methods() {
|
||||
// TODO: Properly handle popups when advanced GUI is disabled.
|
||||
#ifndef ADVANCED_GUI_DISABLED
|
||||
ClassDB::bind_method(D_METHOD("get_popup"), &MenuButton::get_popup);
|
||||
#endif // ADVANCED_GUI_DISABLED
|
||||
ClassDB::bind_method(D_METHOD("show_popup"), &MenuButton::show_popup);
|
||||
ClassDB::bind_method(D_METHOD("set_switch_on_hover", "enable"), &MenuButton::set_switch_on_hover);
|
||||
ClassDB::bind_method(D_METHOD("is_switch_on_hover"), &MenuButton::is_switch_on_hover);
|
||||
|
||||
Reference in New Issue
Block a user