-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.tscn
72 lines (55 loc) · 2 KB
/
ui.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
[gd_scene load_steps=4 format=3 uid="uid://c1miwsnbie0v8"]
[ext_resource type="PackedScene" uid="uid://csbmq8c1d4jou" path="res://Towers/RedTowerPanel.tscn" id="1_784cm"]
[sub_resource type="GDScript" id="GDScript_crcjt"]
script/source = "extends Label
func _process(delta):
self.text = \"Health: \" + str(Game.Health)
"
[sub_resource type="GDScript" id="GDScript_xtmvg"]
script/source = "extends Label
func _process(delta):
self.text = \"Gold: \" + str(Game.Gold)
"
[node name="UI" type="CanvasLayer"]
[node name="Panel" type="Panel" parent="."]
offset_left = 2944.0
offset_right = 3584.0
offset_bottom = 2048.0
[node name="FlowContainer" type="FlowContainer" parent="Panel"]
layout_mode = 1
anchors_preset = -1
offset_left = 64.0
offset_top = 64.0
offset_right = 149.0
offset_bottom = 704.0
scale = Vector2(3, 3)
theme_override_constants/h_separation = 10
theme_override_constants/v_separation = 10
[node name="RedTowerPanel" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel2" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel3" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel4" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel5" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel6" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="RedTowerPanel7" parent="Panel/FlowContainer" instance=ExtResource("1_784cm")]
layout_mode = 2
[node name="Health" type="Label" parent="."]
offset_right = 40.0
offset_bottom = 23.0
theme_override_font_sizes/font_size = 100
text = "Health:"
script = SubResource("GDScript_crcjt")
[node name="Gold" type="Label" parent="."]
offset_left = 640.0
offset_right = 891.0
offset_bottom = 140.0
theme_override_font_sizes/font_size = 100
text = "Gold:
"
script = SubResource("GDScript_xtmvg")