feat: tatoebaspil m kiva hammasbaksu au andrjoku

This commit is contained in:
Sheldon Cooper 2026-10-20 18:31:52 -04:00
parent b2d5ab61d2
commit 050e8f9e22
104 changed files with 3017 additions and 27 deletions

80
prefabs/UI/hud.tscn Normal file
View 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"