-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhud.tscn
More file actions
50 lines (38 loc) · 1.39 KB
/
Copy pathhud.tscn
File metadata and controls
50 lines (38 loc) · 1.39 KB
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
[gd_scene load_steps=2 format=3 uid="uid://bjonjgs57cskl"]
[sub_resource type="GDScript" id="GDScript_m32lh"]
script/source = "extends VBoxContainer
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
$bee_label.text = \"Bees: %s\" % $bee_count.value
$flower_label.text = \"Flowers: %s\" % $flower_count.value
"
[node name="MarginContainer" type="MarginContainer"]
offset_top = 275.0
offset_right = 292.0
offset_bottom = 329.0
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
script = SubResource("GDScript_m32lh")
[node name="flower_label" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "flower"
[node name="flower_count" type="HSlider" parent="VBoxContainer"]
layout_mode = 2
min_value = 1.0
max_value = 20.0
value = 10.0
ticks_on_borders = true
[node name="bee_label" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "bee"
[node name="bee_count" type="HSlider" parent="VBoxContainer"]
layout_mode = 2
min_value = 1.0
max_value = 20.0
value = 5.0
ticks_on_borders = true
[connection signal="value_changed" from="VBoxContainer/flower_count" to="VBoxContainer/flower_count" method="_on_value_changed"]
[connection signal="value_changed" from="VBoxContainer/bee_count" to="VBoxContainer/bee_count" method="_on_value_changed"]