mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
b143c63dcc
- moves the console to the new bottom dock - adds a deck variables inspector to the bottom dock that allows adding, removing and editing variables of the currently open deck - bottom dock can be opened with <kbd>N</kbd> closes #33 Reviewed-on: https://codeberg.org/Eroax/StreamGraph/pulls/44 Co-authored-by: Lera Elvoé <yagich@poto.cafe> Co-committed-by: Lera Elvoé <yagich@poto.cafe>
17 lines
489 B
GDScript
17 lines
489 B
GDScript
# (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
|
|
|
|
@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])
|
|
|
|
|
|
func rebuild_variable_tree(data: Dictionary) -> void:
|
|
variable_viewer.rebuild_variable_tree(data)
|