Expose BehaviorTreeView::clear to GDScript

This commit is contained in:
Wilson E. Alvarez 2024-03-07 11:35:58 -05:00
parent 25c72302ca
commit 3f34e4dde2
No known key found for this signature in database
GPG Key ID: A32174A3D2ED3F9E
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,12 @@
<tutorials> <tutorials>
</tutorials> </tutorials>
<methods> <methods>
<method name="clear">
<return type="void" />
<description>
Clears the tree view.
</description>
</method>
<method name="update_tree"> <method name="update_tree">
<return type="void" /> <return type="void" />
<param index="0" name="behavior_tree_data" type="BehaviorTreeData" /> <param index="0" name="behavior_tree_data" type="BehaviorTreeData" />

View File

@ -312,6 +312,7 @@ void BehaviorTreeView::_bind_methods() {
ClassDB::bind_method(D_METHOD("_draw_failure_status"), &BehaviorTreeView::_draw_failure_status); ClassDB::bind_method(D_METHOD("_draw_failure_status"), &BehaviorTreeView::_draw_failure_status);
ClassDB::bind_method(D_METHOD("_item_collapsed"), &BehaviorTreeView::_item_collapsed); ClassDB::bind_method(D_METHOD("_item_collapsed"), &BehaviorTreeView::_item_collapsed);
ClassDB::bind_method(D_METHOD("update_tree", "behavior_tree_data"), &BehaviorTreeView::update_tree); ClassDB::bind_method(D_METHOD("update_tree", "behavior_tree_data"), &BehaviorTreeView::update_tree);
ClassDB::bind_method(D_METHOD("clear"), &BehaviorTreeView::clear);
ClassDB::bind_method(D_METHOD("set_update_interval_msec", "interval_msec"), &BehaviorTreeView::set_update_interval_msec); ClassDB::bind_method(D_METHOD("set_update_interval_msec", "interval_msec"), &BehaviorTreeView::set_update_interval_msec);
ClassDB::bind_method(D_METHOD("get_update_interval_msec"), &BehaviorTreeView::get_update_interval_msec); ClassDB::bind_method(D_METHOD("get_update_interval_msec"), &BehaviorTreeView::get_update_interval_msec);