diff --git a/Scripts/ChronoManager.gd b/Scripts/ChronoManager.gd index 4b7ed2b..2d75dad 100644 --- a/Scripts/ChronoManager.gd +++ b/Scripts/ChronoManager.gd @@ -7,6 +7,7 @@ signal broadcast(command : String) @export var level_tick : float = 1 # how often to run a command @export var level_time : float = 10 # the amoutn of time allowed for the level @export var commands : Array[String] + @export_group("Node References") @export var gui : Control diff --git a/Scripts/gui.gd b/Scripts/gui.gd index b95ec59..fd5e86a 100644 --- a/Scripts/gui.gd +++ b/Scripts/gui.gd @@ -3,8 +3,10 @@ extends Control @export_group("Node References") @export var terminal_panel : Control + # Called when the node enters the scene tree for the first time. func _ready(): + terminal_panel.visible = false pass # Replace with function body. @@ -12,6 +14,7 @@ func _ready(): func _process(delta): pass + func close_terminal(): terminal_panel.visible = false Input.mouse_mode = Input.MOUSE_MODE_CAPTURED diff --git a/gui.tscn b/gui.tscn index bf965bd..58c89f0 100644 --- a/gui.tscn +++ b/gui.tscn @@ -39,7 +39,6 @@ texture = ExtResource("1_mpwvh") expand_mode = 1 [node name="Terminal" type="Control" parent="."] -visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -70,6 +69,10 @@ layout_mode = 2 text = "Terminal UI" horizontal_alignment = 1 +[node name="Label2" type="Label" parent="Terminal/MarginContainer/PanelContainer/VBoxContainer"] +layout_mode = 2 +text = "Available commands: 3x Jump, 1x Dash" + [node name="CloseButton" type="Button" parent="Terminal/MarginContainer/PanelContainer"] layout_mode = 2 size_flags_horizontal = 8