miggor-StreamGraph/graph_node_renderer/bottom_dock.gd

18 lines
489 B
GDScript3
Raw Permalink Normal View History

# (c) 2023-present Eroax
# (c) 2023-present Yagich
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
extends TabContainer
class_name BottomDock
2024-01-17 07:31:39 +01:00
@export var tab_names := ["Console", "Variables"]
@onready var variable_viewer: VariableViewer = %VariableViewer
func _ready() -> void:
for i in get_child_count():
set_tab_title(i, tab_names[i])
2024-01-17 07:31:39 +01:00
func rebuild_variable_tree(data: Dictionary) -> void:
variable_viewer.rebuild_variable_tree(data)