Beispiel #1
0
 public RedOwlBaseField() : base("", null)
 {
     if (IsInitalized)
     {
         return;
     }
     RedOwlUtils.Setup(this, this);
     BuildUI();
     IsInitalized = true;
 }
Beispiel #2
0
 public RedOwlVisualElement()
 {
     if (IsInitalized)
     {
         return;
     }
     RedOwlUtils.Setup(this, this);
     BuildUI();
     IsInitalized = true;
 }
Beispiel #3
0
 protected virtual void OnEnable()
 {
     AssemblyReloadEvents.beforeAssemblyReload += OnBeforeAssemblyReload;
     if (IsInitalized)
     {
         return;
     }
     rootVisualElement.RegisterCallback <MouseEnterEvent>(e => { instance.Focus(); });
     RedOwlUtils.Setup(this, rootVisualElement);
     BuildUI();
     IsInitalized = true;
 }