feat: tatoebaspil m kiva hammasbaksu au andrjoku
This commit is contained in:
parent
b2d5ab61d2
commit
050e8f9e22
104 changed files with 3017 additions and 27 deletions
76
prefabs/UI/fail_screen.tscn
Normal file
76
prefabs/UI/fail_screen.tscn
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dx3iqfsxsm26a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c38vevdvg1rq5" path="res://Scripts/UI/fail_screen.gd" id="1_oharj"]
|
||||
[ext_resource type="Theme" uid="uid://dmha0ysm5urx7" path="res://Assets/Visual/UI/base_theme.tres" id="1_rfk4e"]
|
||||
[ext_resource type="AudioStream" uid="uid://djrkydgktdbqb" path="res://Assets/Audio/SFX/ui_blip_02.wav" id="2_oharj"]
|
||||
|
||||
[node name="FailScreen" type="Control"]
|
||||
process_mode = 2
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_oharj")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 110
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.101961, 0.109804, 0.172549, 0.752941)
|
||||
|
||||
[node name="Name" type="Label" parent="CanvasLayer"]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -216.0
|
||||
offset_top = 80.0
|
||||
offset_right = 216.0
|
||||
offset_bottom = 118.0
|
||||
grow_horizontal = 2
|
||||
theme = ExtResource("1_rfk4e")
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "YOU FAILED"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 239.0
|
||||
offset_top = 152.0
|
||||
offset_right = -239.0
|
||||
offset_bottom = -104.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ButtonRetry" type="Button" parent="CanvasLayer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_rfk4e")
|
||||
text = "TRY AGAIN"
|
||||
|
||||
[node name="ButtonQuit" type="Button" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_rfk4e")
|
||||
text = "QUIT
|
||||
"
|
||||
|
||||
[node name="ButtonHoverSound" type="AudioStreamPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("2_oharj")
|
||||
bus = &"Effects"
|
||||
|
||||
[connection signal="button_down" from="CanvasLayer/VBoxContainer/ButtonRetry" to="." method="_on_button_retry_button_down"]
|
||||
[connection signal="focus_entered" from="CanvasLayer/VBoxContainer/ButtonRetry" to="." method="_on_button_retry_focus_entered"]
|
||||
[connection signal="button_down" from="CanvasLayer/VBoxContainer/ButtonQuit" to="." method="_on_button_quit_button_down"]
|
||||
[connection signal="focus_entered" from="CanvasLayer/VBoxContainer/ButtonQuit" to="." method="_on_button_quit_focus_entered"]
|
||||
80
prefabs/UI/hud.tscn
Normal file
80
prefabs/UI/hud.tscn
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bybftuq1lw7b3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c8dx103r8mw3y" path="res://Assets/Visual/UI/health_icon.png" id="1_oh2ji"]
|
||||
[ext_resource type="Script" uid="uid://codclvby6ay7g" path="res://Scripts/UI/hud.gd" id="1_xdtoa"]
|
||||
[ext_resource type="Theme" uid="uid://dmha0ysm5urx7" path="res://Assets/Visual/UI/base_theme.tres" id="2_xdtoa"]
|
||||
[ext_resource type="Texture2D" uid="uid://c646w8fxcpnlo" path="res://Assets/Visual/Items/apple.png" id="4_ofty5"]
|
||||
|
||||
[node name="HUD" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_xdtoa")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 100
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 112.0
|
||||
offset_bottom = 48.0
|
||||
|
||||
[node name="Health" type="Control" parent="CanvasLayer/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="CanvasLayer/Control/Health"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 29.0
|
||||
offset_bottom = 38.0
|
||||
texture = ExtResource("1_oh2ji")
|
||||
|
||||
[node name="HealthNumber" type="Label" parent="CanvasLayer/Control/Health"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = 38.0
|
||||
scale = Vector2(3, 3)
|
||||
theme = ExtResource("2_xdtoa")
|
||||
text = "10"
|
||||
|
||||
[node name="Apples" type="Control" parent="CanvasLayer/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 38.0
|
||||
offset_bottom = 38.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="CanvasLayer/Control/Apples"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
offset_left = 5.0
|
||||
offset_top = 8.0
|
||||
offset_right = 35.0
|
||||
offset_bottom = 38.0
|
||||
texture = ExtResource("4_ofty5")
|
||||
|
||||
[node name="AppleNumber" type="Label" parent="CanvasLayer/Control/Apples"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 40.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = 38.0
|
||||
scale = Vector2(3, 3)
|
||||
theme = ExtResource("2_xdtoa")
|
||||
text = "10"
|
||||
Loading…
Add table
Add a link
Reference in a new issue