Merge pull request #67 from Rubonnek/expose-btview-clear

Expose `BehaviorTreeView::clear` to GDScript
This commit is contained in:
Serhii Snitsaruk 2024-03-07 20:32:15 +01:00 committed by GitHub
commit e182a56f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,12 @@
<tutorials>
</tutorials>
<methods>
<method name="clear">
<return type="void" />
<description>
Clears the tree view.
</description>
</method>
<method name="update_tree">
<return type="void" />
<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("_item_collapsed"), &BehaviorTreeView::_item_collapsed);
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("get_update_interval_msec"), &BehaviorTreeView::get_update_interval_msec);