예제 #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);
        }
예제 #2
0
 internal void OpenRequest()
 {
     this.closed = false;
     if (!initialized)
     {
         OnInit();
         initialized = true;
     }
     InputBlocker.Show(this);
     GetContents(() => {
         if (!closed)
         {
             window.Open();
         }
     });
 }
예제 #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();
     }
 }