diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-06-24 18:02:46 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-06-24 23:46:57 -0400 |
| commit | dbb42c99e07320bc20d77cdbe404a8071c0a522e (patch) | |
| tree | 9e3d4094061c800e52897bfaa117a3608c648f2a /game/Interface.tscn | |
| parent | 9541a472e0b38369d169ad3f7bb250a8127bc471 (diff) | |
| download | frivolous-run-dbb42c99e07320bc20d77cdbe404a8071c0a522e.tar.gz frivolous-run-dbb42c99e07320bc20d77cdbe404a8071c0a522e.tar.bz2 frivolous-run-dbb42c99e07320bc20d77cdbe404a8071c0a522e.zip | |
Ported game to Godot 4; Major changes
Diffstat (limited to 'game/Interface.tscn')
| -rw-r--r-- | game/Interface.tscn | 37 |
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") |
