diff options
author | Dana Olson <dana@shineuponthee.com> | 2014-08-28 02:04:09 -0400 |
---|---|---|
committer | Dana Olson <dana@shineuponthee.com> | 2014-08-28 02:06:28 -0400 |
commit | a8266cd9b2360f1d50316e2cad31e43b1c2e8613 (patch) | |
tree | 7d62b2923f9b1720d0ac57993f04aa32a65a5b7a | |
parent | 89fa70706f9166765c3ac3f799225a467800f065 (diff) |
add/fix GDScript bindings for add_tab/remove_tab
closes #651
-rw-r--r-- | scene/gui/tabs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index b7c857b9c7..ae7a4d59a7 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -278,7 +278,8 @@ void Tabs::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_tab_title","tab_idx"),&Tabs::get_tab_title); ObjectTypeDB::bind_method(_MD("set_tab_icon","tab_idx","icon:Texture"),&Tabs::set_tab_icon); ObjectTypeDB::bind_method(_MD("get_tab_icon:Texture","tab_idx"),&Tabs::get_tab_icon); - ObjectTypeDB::bind_method(_MD("remove_tab","tab_idx","icon:Texture"),&Tabs::remove_tab); + ObjectTypeDB::bind_method(_MD("remove_tab","tab_idx"),&Tabs::remove_tab); + ObjectTypeDB::bind_method(_MD("add_tab","title","icon:Texture"),&Tabs::add_tab); ADD_SIGNAL(MethodInfo("tab_changed",PropertyInfo(Variant::INT,"tab"))); |