clock gui and command block fix
This commit is contained in:
parent
864f62d5b4
commit
a9be913adb
11 changed files with 121 additions and 5 deletions
38
gui.tscn
38
gui.tscn
|
|
@ -1,7 +1,9 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bnlexkofp68gv"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bnlexkofp68gv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co8tfbsod875o" path="res://Scripts/gui.gd" id="1_7s0l7"]
|
||||
[ext_resource type="Texture2D" uid="uid://buafet16thf3p" path="res://Assets/crosshair.png" id="1_mpwvh"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbjlesgbl3b5e" path="res://Sprites/clockOff.png" id="3_cor1f"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxqb0vw8nouea" path="res://Sprites/clockOn.png" id="4_u77ya"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_lrnc3"]
|
||||
font_color = Color(1, 0, 0, 1)
|
||||
|
|
@ -13,7 +15,13 @@ font_size = 60
|
|||
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", "start_level", "level_title")]
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_cor1f"]
|
||||
font_size = 31
|
||||
font_color = Color(0.686086, 0.00014728, 0.612691, 1)
|
||||
outline_size = 8
|
||||
outline_color = Color(0.658824, 1, 1, 1)
|
||||
|
||||
[node name="Gui" type="Control" node_paths=PackedStringArray("lose_panel", "lose_label", "reset_label", "start_level", "level_title", "clock_progress", "clock_label")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -26,6 +34,8 @@ lose_label = NodePath("MarginContainer/PanelContainer/VBoxContainer/LoseText")
|
|||
reset_label = NodePath("MarginContainer/PanelContainer/VBoxContainer/LoseTimer")
|
||||
start_level = NodePath("MarginContainer/StartPanel")
|
||||
level_title = NodePath("MarginContainer/StartPanel/VBoxContainer/LevelTitle")
|
||||
clock_progress = NodePath("ClockProgress")
|
||||
clock_label = NodePath("ClockProgress/CenterContainer/Label")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
|
|
@ -93,3 +103,27 @@ layout_mode = 2
|
|||
text = "Resetting in: 3.0"
|
||||
label_settings = SubResource("LabelSettings_rdkfa")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ClockProgress" type="TextureProgressBar" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 10.0
|
||||
offset_top = 10.0
|
||||
offset_right = 74.0
|
||||
offset_bottom = 74.0
|
||||
scale = Vector2(2, 2)
|
||||
max_value = 10.0
|
||||
fill_mode = 4
|
||||
texture_under = ExtResource("3_cor1f")
|
||||
texture_progress = ExtResource("4_u77ya")
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="ClockProgress"]
|
||||
layout_mode = 1
|
||||
offset_left = -0.5
|
||||
offset_top = -0.5
|
||||
offset_right = 63.5
|
||||
offset_bottom = 63.5
|
||||
|
||||
[node name="Label" type="Label" parent="ClockProgress/CenterContainer"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
label_settings = SubResource("LabelSettings_cor1f")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue