This commit is contained in:
Crispy 2021-07-06 22:06:15 +02:00
parent 727e559396
commit bf3908de5c
2 changed files with 1 additions and 9 deletions

View file

@ -27,16 +27,8 @@ func _load_overlays():
func add_overlay(name):
print("Adding overlay '", name, "'")
# var scene = load("res://overlays/" + type + ".tscn")
# if not scene:
# print("Unknown overlay type: '", type, "'")
# scene = load("res://special_overlays/UnknownType.tscn")
var instance = preload("res://addons/openvr_overlay/OverlayInstance.tscn").instance()
instance.name = name
# instance.overlay_scene = scene
# instance.type = type
instance.add_child(preload("res://OverlaySettingsSync.tscn").instance())
add_child(instance)
emit_signal("added_overlay", name)

View file

@ -1,10 +1,10 @@
extends Node
onready var p = get_parent()
var loaded := false
var _needs_sync := true
func _ready() -> void:
p = get_parent()
call_deferred("load_all")