Beispiel #1
0
        public void GetInstance(string key, bool shared, Action <PopupBase> callback)
        {
            var data = new PopupLoadData(key, shared, callback);

            InputBlocker.Show(this);
            loadList.Enqueue(data);
        }
Beispiel #2
0
 internal void OpenRequest()
 {
     this.closed = false;
     if (!initialized)
     {
         OnInit();
         initialized = true;
     }
     InputBlocker.Show(this);
     GetContents(() => {
         if (!closed)
         {
             window.Open();
         }
     });
 }
Beispiel #3
0
 private void OnHideBegin()
 {
     baseLayer = null;
     InputBlocker.Show(this);
     try
     {
         PreClose();
     } catch (Exception e)
     {
         log.Error(e);
     }
     log.Debug("{0} HideBegin", name);
     if (window.buttonHandler != null)
     {
         window.buttonHandler.enabled = false;
     }
     InputListenerStack.inst.Pop(this);
     if (onHideBegin != null)
     {
         onHideBegin();
     }
 }