GUI should not be visible until ready

This commit is contained in:
Chris Cromer 2022-07-21 00:14:14 -04:00 committed by Gitea
parent 4f8c134bb7
commit 1398f3d92c
2 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,8 @@ func _ready() -> void:
func _physics_process(_delta: float) -> void:
if monitor_enabled:
if not $MonitorGUI.visible:
$MonitorGUI.visible = true
if started and not get_tree().paused:
var frame = empty_frame.duplicate(true)
frame["coins"] = coins

View File

@ -10,5 +10,6 @@ monitor_enabled = true
use_development_url = true
[node name="MonitorGUI" parent="." instance=ExtResource( 3 )]
visible = false
[node name="HTTPRequest" type="HTTPRequest" parent="."]