using System.Collections.Generic; using UnityEditor; using UnityEngine.UIElements; namespace PVSkill { public class SkillBuffElement { private VisualElement root; private SkillBuffConfig curSkillBuffConfig; // elem private Label buffDescLbl; private Label triggerEventLbl; private Label objectTypeLbl; private Label scopeTypeLbl; private Label gainLbl; private Label disperseLbl; private Label continuedTypeLbl; private ListView effectListView; private SkillEffectElement effectElement; public SkillBuffElement(VisualElement root) { var visualTree = AssetDatabase.LoadAssetAtPath("Assets/Editor/SkillEditor/SkillBuffElement.uxml"); visualTree.CloneTree(root); this.root = root; this.buffDescLbl = root.Q