mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 02:13:47 +00:00
Updated dialogic
This commit is contained in:
parent
1d11462073
commit
cbb82512ee
483 changed files with 5743 additions and 2177 deletions
|
|
@ -44,3 +44,24 @@ func _load(path: String, _original_path: String, _use_sub_threads: bool, _cache_
|
|||
var tml := DialogicTimeline.new()
|
||||
tml.from_text(file.get_as_text())
|
||||
return tml
|
||||
|
||||
|
||||
func _get_dependencies(path: String, _add_types: bool) -> PackedStringArray:
|
||||
var deps := PackedStringArray()
|
||||
|
||||
var tml: DialogicTimeline = load(path)
|
||||
tml.process()
|
||||
|
||||
for ev in tml.events:
|
||||
deps += ev.get_dependencies()
|
||||
|
||||
var clean_deps := PackedStringArray()
|
||||
|
||||
for i in deps:
|
||||
var clean := i
|
||||
if clean.begins_with("res://"):
|
||||
clean = ResourceUID.id_to_text(ResourceLoader.get_resource_uid(clean))
|
||||
if not clean.is_empty() and not clean in clean_deps:
|
||||
clean_deps.append(clean)
|
||||
|
||||
return clean_deps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue