/* Yarn Spinner is licensed to you under the terms found in the file LICENSE.md. */ using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; #nullable enable namespace Yarn.Unity.Editor { public class SourceFileEntryElement : VisualElement, INotifyValueChanged { private readonly TextField sourceFileField; private readonly Button deleteButton; public event System.Action? OnDelete; public bool IsModified { get; private set; } public string path = ""; public SourceFileEntryElement(VisualTreeAsset asset, string path, YarnProjectImporter importer) { asset.CloneTree(this); sourceFileField = this.Q("sourceFile"); deleteButton = this.Q