aboutsummaryrefslogtreecommitdiff
path: root/game/Interface.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'game/Interface.tscn')
-rw-r--r--game/Interface.tscn37
1 files changed, 25 insertions, 12 deletions
diff --git a/game/Interface.tscn b/game/Interface.tscn
index ed071d2..4711acc 100644
--- a/game/Interface.tscn
+++ b/game/Interface.tscn
@@ -1,23 +1,36 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=3 format=3 uid="uid://bp70db5foglp4"]
-[ext_resource path="res://game/FPS.gd" type="Script" id=1]
+[sub_resource type="GDScript" id="GDScript_7n0ib"]
+script/source = "extends Label
+
+func _process(_delta: float) -> void:
+ set_text(\"FPS \" + str(Engine.get_frames_per_second()))
+"
+
+[sub_resource type="GDScript" id="GDScript_htqdx"]
+script/source = "extends Label
+
+func _process(_delta: float) -> void:
+ set_text(\"Money Collected: $\" + str(Stats.money))
+"
[node name="Interface" type="Control"]
-margin_right = 40.0
-margin_bottom = 40.0
+layout_mode = 3
+anchors_preset = 0
+offset_right = 40.0
+offset_bottom = 40.0
[node name="VBoxContainer" type="VBoxContainer" parent="."]
-margin_right = 67.0
-margin_bottom = 40.0
+layout_mode = 0
+offset_right = 67.0
+offset_bottom = 40.0
[node name="FPS" type="Label" parent="VBoxContainer"]
-margin_right = 83.0
-margin_bottom = 14.0
+layout_mode = 2
text = "FPS"
-script = ExtResource( 1 )
+script = SubResource("GDScript_7n0ib")
[node name="Money" type="Label" parent="VBoxContainer"]
-margin_top = 18.0
-margin_right = 83.0
-margin_bottom = 32.0
+layout_mode = 2
text = "Money Spent"
+script = SubResource("GDScript_htqdx")