summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorjustchen1369 <justchenabc@gmail.com>2023-03-10 11:42:09 -0500
committerYuri Sizov <yuris@humnom.net>2023-03-14 13:59:04 +0100
commit59a78ecf5af2f3677d6895eab9054825020f85f7 (patch)
tree621a282f0204fd124ce101c87284dccf3277943d /scene
parent23f2c1234c906dbef35697ffca1324b5b8303560 (diff)
Fix exported type for Menubar start_index
(cherry picked from commit dbfecdb3b04956db58ee199fdbd9f7c03794e269)
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/menu_bar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/menu_bar.cpp b/scene/gui/menu_bar.cpp
index 5b27983851..0c12b98ad7 100644
--- a/scene/gui/menu_bar.cpp
+++ b/scene/gui/menu_bar.cpp
@@ -666,7 +666,7 @@ void MenuBar::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_menu_popup", "menu"), &MenuBar::get_menu_popup);
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "flat"), "set_flat", "is_flat");
- ADD_PROPERTY(PropertyInfo(Variant::BOOL, "start_index"), "set_start_index", "get_start_index");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "start_index"), "set_start_index", "get_start_index");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "switch_on_hover"), "set_switch_on_hover", "is_switch_on_hover");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "prefer_global_menu"), "set_prefer_global_menu", "is_prefer_global_menu");