GUI should not be visible until ready
This commit is contained in:
parent
4f8c134bb7
commit
1398f3d92c
@ -99,6 +99,8 @@ func _ready() -> void:
|
|||||||
|
|
||||||
func _physics_process(_delta: float) -> void:
|
func _physics_process(_delta: float) -> void:
|
||||||
if monitor_enabled:
|
if monitor_enabled:
|
||||||
|
if not $MonitorGUI.visible:
|
||||||
|
$MonitorGUI.visible = true
|
||||||
if started and not get_tree().paused:
|
if started and not get_tree().paused:
|
||||||
var frame = empty_frame.duplicate(true)
|
var frame = empty_frame.duplicate(true)
|
||||||
frame["coins"] = coins
|
frame["coins"] = coins
|
||||||
|
@ -10,5 +10,6 @@ monitor_enabled = true
|
|||||||
use_development_url = true
|
use_development_url = true
|
||||||
|
|
||||||
[node name="MonitorGUI" parent="." instance=ExtResource( 3 )]
|
[node name="MonitorGUI" parent="." instance=ExtResource( 3 )]
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="HTTPRequest" type="HTTPRequest" parent="."]
|
[node name="HTTPRequest" type="HTTPRequest" parent="."]
|
||||||
|
Loading…
Reference in New Issue
Block a user