diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-09-24 01:26:59 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-09-24 01:26:59 -0300 |
commit | 7ce02b642eee600b7206563030c8feaa8af3fe5b (patch) | |
tree | e3288ff5c98f6d4a7cd5c973b67045698f15a06d /scene | |
parent | 01f692c173b9926ae764a4a4c9a54c266a21272b (diff) |
Expose `TabContainer`'s tab hidding for scripts
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index a423dc0173..d63ea776a3 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -1210,6 +1210,8 @@ void TabContainer::_bind_methods() { ClassDB::bind_method(D_METHOD("get_tab_icon", "tab_idx"), &TabContainer::get_tab_icon); ClassDB::bind_method(D_METHOD("set_tab_disabled", "tab_idx", "disabled"), &TabContainer::set_tab_disabled); ClassDB::bind_method(D_METHOD("get_tab_disabled", "tab_idx"), &TabContainer::get_tab_disabled); + ClassDB::bind_method(D_METHOD("set_tab_hidden", "tab_idx", "hidden"), &TabContainer::set_tab_hidden); + ClassDB::bind_method(D_METHOD("get_tab_hidden", "tab_idx"), &TabContainer::get_tab_hidden); ClassDB::bind_method(D_METHOD("get_tab_idx_at_point", "point"), &TabContainer::get_tab_idx_at_point); ClassDB::bind_method(D_METHOD("set_popup", "popup"), &TabContainer::set_popup); ClassDB::bind_method(D_METHOD("get_popup"), &TabContainer::get_popup); |