From 47ad95b2657257678a574bac26c6419a306b6edc Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sat, 3 Aug 2024 11:40:56 +0200 Subject: [PATCH] Fix demo API calls --- demo/demo/scenes/showcase.gd | 4 ++-- demo/demo/scenes/showcase.tscn | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/demo/scenes/showcase.gd b/demo/demo/scenes/showcase.gd index 680652a..2b09558 100644 --- a/demo/demo/scenes/showcase.gd +++ b/demo/demo/scenes/showcase.gd @@ -42,8 +42,8 @@ func _ready() -> void: func _physics_process(_delta: float) -> void: - var inst: BTTask = bt_player.get_tree_instance() - var bt_data: BehaviorTreeData = BehaviorTreeData.create_from_tree_instance(inst) + var inst: BTInstance = bt_player.get_bt_instance() + var bt_data: BehaviorTreeData = BehaviorTreeData.create_from_bt_instance(inst) behavior_tree_view.update_tree(bt_data) diff --git a/demo/demo/scenes/showcase.tscn b/demo/demo/scenes/showcase.tscn index fa864e3..4c23f0f 100644 --- a/demo/demo/scenes/showcase.tscn +++ b/demo/demo/scenes/showcase.tscn @@ -257,8 +257,8 @@ anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 4.0 offset_top = 4.0 -offset_right = -4.0 -offset_bottom = -4.0 +offset_right = 1020.0 +offset_bottom = 704.0 grow_horizontal = 2 grow_vertical = 2 gutters_draw_line_numbers = true