level resetting works

This commit is contained in:
Clevertop 2024-08-11 10:43:02 +10:00
parent a1f4eaa2c6
commit d2dfb65d59
4 changed files with 40 additions and 59 deletions

View file

@ -6,7 +6,7 @@
[sub_resource type="LabelSettings" id="LabelSettings_lrnc3"]
font_color = Color(1, 0, 0, 1)
[node name="Gui" type="Control" node_paths=PackedStringArray("terminal_panel")]
[node name="Gui" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@ -14,7 +14,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_7s0l7")
terminal_panel = NodePath("Terminal")
[node name="Label" type="Label" parent="."]
layout_mode = 0
@ -37,46 +36,3 @@ custom_minimum_size = Vector2(10, 10)
layout_mode = 2
texture = ExtResource("1_mpwvh")
expand_mode = 1
[node name="Terminal" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="Terminal"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 200
theme_override_constants/margin_top = 75
theme_override_constants/margin_right = 200
theme_override_constants/margin_bottom = 75
[node name="PanelContainer" type="PanelContainer" parent="Terminal/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Terminal/MarginContainer/PanelContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Terminal/MarginContainer/PanelContainer/VBoxContainer"]
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
size_flags_vertical = 0
text = "X"
[connection signal="pressed" from="Terminal/MarginContainer/PanelContainer/CloseButton" to="." method="close_terminal"]