-
Notifications
You must be signed in to change notification settings - Fork 0
/
top_bar.tscn
103 lines (84 loc) · 2.78 KB
/
top_bar.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[gd_scene load_steps=5 format=3 uid="uid://bee4rrslqoo5h"]
[ext_resource type="Theme" uid="uid://c78778cg6ra80" path="res://theme.tres" id="1_82sd8"]
[ext_resource type="Script" path="res://TopBar.cs" id="1_byhpv"]
[ext_resource type="Texture2D" uid="uid://btbji560drvvy" path="res://heart.png" id="2_jjeqj"]
[ext_resource type="PackedScene" uid="uid://brr1vk3bht3gs" path="res://heart.tscn" id="3_wpw2i"]
[node name="TopBar" type="Control"]
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 100.0
grow_horizontal = 2
script = ExtResource("1_byhpv")
[node name="Background" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.0627451, 0.0627451, 0.0627451, 1)
[node name="Divider" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -5.0
grow_horizontal = 2
grow_vertical = 0
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_bottom = -5.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_82sd8")
[node name="Lives" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="HBoxContainer/Lives"]
layout_mode = 2
text = "Extra Lives"
horizontal_alignment = 1
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer/Lives"]
layout_mode = 2
size_flags_vertical = 3
[node name="Hearts" type="HBoxContainer" parent="HBoxContainer/Lives/MarginContainer"]
layout_mode = 2
size_flags_vertical = 3
alignment = 1
[node name="Heart" parent="HBoxContainer/Lives/MarginContainer/Hearts" instance=ExtResource("3_wpw2i")]
layout_mode = 2
[node name="Heart2" type="TextureRect" parent="HBoxContainer/Lives/MarginContainer/Hearts"]
texture_repeat = 2
layout_mode = 2
texture = ExtResource("2_jjeqj")
expand_mode = 2
[node name="Heart3" type="TextureRect" parent="HBoxContainer/Lives/MarginContainer/Hearts"]
texture_repeat = 2
layout_mode = 2
texture = ExtResource("2_jjeqj")
expand_mode = 2
[node name="Level" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="HBoxContainer/Level"]
layout_mode = 2
text = "Level"
horizontal_alignment = 1
[node name="Number" type="Label" parent="HBoxContainer/Level"]
layout_mode = 2
text = "1"
horizontal_alignment = 1
[node name="Score" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Current" type="Label" parent="HBoxContainer/Score"]
layout_mode = 2
text = "Current score: 0"
[node name="Best" type="Label" parent="HBoxContainer/Score"]
layout_mode = 2
text = "Highscore: 0"