lose screen gui working well
This commit is contained in:
parent
d2dfb65d59
commit
bfaef2f33f
3 changed files with 68 additions and 8 deletions
46
gui.tscn
46
gui.tscn
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bnlexkofp68gv"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bnlexkofp68gv"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/gui.gd" id="1_7s0l7"]
|
||||
[ext_resource type="Texture2D" uid="uid://buafet16thf3p" path="res://Assets/crosshair.png" id="1_mpwvh"]
|
||||
|
|
@ -6,7 +6,14 @@
|
|||
[sub_resource type="LabelSettings" id="LabelSettings_lrnc3"]
|
||||
font_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="Gui" type="Control"]
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_v7sqr"]
|
||||
font_size = 60
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_rdkfa"]
|
||||
font_size = 30
|
||||
font_color = Color(0.662452, 0.662452, 0.662452, 1)
|
||||
|
||||
[node name="Gui" type="Control" node_paths=PackedStringArray("lose_panel", "lose_label", "reset_label")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -14,8 +21,12 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_7s0l7")
|
||||
lose_panel = NodePath("MarginContainer/PanelContainer")
|
||||
lose_label = NodePath("MarginContainer/PanelContainer/VBoxContainer/LoseText")
|
||||
reset_label = NodePath("MarginContainer/PanelContainer/VBoxContainer/LoseTimer")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
|
|
@ -36,3 +47,34 @@ custom_minimum_size = Vector2(10, 10)
|
|||
layout_mode = 2
|
||||
texture = ExtResource("1_mpwvh")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
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 = 150
|
||||
theme_override_constants/margin_right = 200
|
||||
theme_override_constants/margin_bottom = 150
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="LoseText" type="Label" parent="MarginContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Level Failed"
|
||||
label_settings = SubResource("LabelSettings_v7sqr")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LoseTimer" type="Label" parent="MarginContainer/PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Resetting in: 3.0"
|
||||
label_settings = SubResource("LabelSettings_rdkfa")
|
||||
horizontal_alignment = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue