mirror of
https://github.com/CrispyPin/ovr-utils.git
synced 2024-11-14 04: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):
|
func add_overlay(name):
|
||||||
print("Adding 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()
|
var instance = preload("res://addons/openvr_overlay/OverlayInstance.tscn").instance()
|
||||||
|
|
||||||
instance.name = name
|
instance.name = name
|
||||||
# instance.overlay_scene = scene
|
|
||||||
# instance.type = type
|
|
||||||
instance.add_child(preload("res://OverlaySettingsSync.tscn").instance())
|
instance.add_child(preload("res://OverlaySettingsSync.tscn").instance())
|
||||||
add_child(instance)
|
add_child(instance)
|
||||||
emit_signal("added_overlay", name)
|
emit_signal("added_overlay", name)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
|
|
||||||
onready var p = get_parent()
|
onready var p = get_parent()
|
||||||
var loaded := false
|
var loaded := false
|
||||||
var _needs_sync := true
|
var _needs_sync := true
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
p = get_parent()
|
p = get_parent()
|
||||||
call_deferred("load_all")
|
call_deferred("load_all")
|
||||||
|
|
Loading…
Reference in a new issue