Example #1
0
 public RedOwlBaseField() : base("", null)
 {
     if (IsInitalized)
     {
         return;
     }
     RedOwlUtils.Setup(this, this);
     BuildUI();
     IsInitalized = true;
 }
Example #2
0
 public RedOwlVisualElement()
 {
     if (IsInitalized)
     {
         return;
     }
     RedOwlUtils.Setup(this, this);
     BuildUI();
     IsInitalized = true;
 }
Example #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;
 }