adding fps counter to main scene
This commit is contained in:
parent
964c24dcea
commit
6e9016f096
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://befxf8uruwnrl"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://befxf8uruwnrl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://balmcptv73l2j" path="res://dev-util/menu_background.png" id="1_0oiki"]
|
||||
[ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"]
|
||||
|
|
@ -9,6 +9,13 @@
|
|||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_njt06"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_8sq0u"]
|
||||
script/source = "extends Label
|
||||
|
||||
func _process(delta):
|
||||
text = str(Engine.get_frames_per_second())
|
||||
"
|
||||
|
||||
[node name="root" type="Node3D"]
|
||||
|
||||
[node name="MenuBackground" type="TextureRect" parent="."]
|
||||
|
|
@ -65,5 +72,10 @@ grow_vertical = 2
|
|||
layout_mode = 2
|
||||
text = "new Game"
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 35.0
|
||||
script = SubResource("GDScript_8sq0u")
|
||||
|
||||
[connection signal="pressed" from="Main Menu/PanelContainer/Button" to="youth room" method="start"]
|
||||
[connection signal="pressed" from="Main Menu/PanelContainer/Button" to="Main Menu" method="hide"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue