mew
This commit is contained in:
parent
fada7c657b
commit
685d9642dc
3 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5
gui.tscn
5
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue