mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 12:55:54 +00:00
14 lines
364 B
GDScript
14 lines
364 B
GDScript
@tool
|
|
class_name DialogicStyleLayer
|
|
extends Resource
|
|
|
|
@export var scene: PackedScene = null
|
|
@export var overrides := {}
|
|
|
|
|
|
func _init(scene_path:Variant=null, scene_overrides:Dictionary={}):
|
|
if scene_path is PackedScene:
|
|
scene = scene_path
|
|
elif scene_path is String and ResourceLoader.exists(scene_path):
|
|
scene = load(scene_path)
|
|
overrides = scene_overrides
|