mirror of
https://github.com/CrispyPin/ovr-utils.git
synced 2024-11-21 23:20:25 +01:00
cleanup
This commit is contained in:
parent
727e559396
commit
bf3908de5c
2 changed files with 1 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue