Exemplo n.º 1
0
        // Token: 0x0600D75D RID: 55133 RVA: 0x003AA4D4 File Offset: 0x003A86D4
        private void ClosePanel()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ClosePanel_hotfix != null)
            {
                this.m_ClosePanel_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            CommonUIStateController component = base.gameObject.GetComponent <CommonUIStateController>();

            if (component != null)
            {
                component.SetActionForUIStateFinshed("Close", delegate
                {
                    base.gameObject.SetActive(false);
                });
                component.SetToUIState("Close", false, true);
            }
            else
            {
                base.gameObject.SetActive(false);
            }
        }
Exemplo n.º 2
0
 // Token: 0x060158C3 RID: 88259 RVA: 0x0057D010 File Offset: 0x0057B210
 public static void SetUIStateOpen(CommonUIStateController ctrl, string stateName, Action onEnd = null, Action <bool> EnableInput = null, bool allowToRefreshSameState = true)
 {
     if (ctrl == null)
     {
         return;
     }
     if (string.IsNullOrEmpty(stateName))
     {
         return;
     }
     if (EnableInput != null)
     {
         EnableInput(false);
     }
     ctrl.gameObject.SetActive(true);
     ctrl.SetActionForUIStateFinshed(stateName, delegate
     {
         if (EnableInput != null)
         {
             EnableInput(true);
         }
         if (onEnd != null)
         {
             onEnd();
         }
     });
     ctrl.SetToUIState(stateName, false, allowToRefreshSameState);
 }
Exemplo n.º 3
0
 // Token: 0x060158C4 RID: 88260 RVA: 0x0057D08C File Offset: 0x0057B28C
 public static void SetUIStateClose(CommonUIStateController ctrl, string stateName, Action onEnd = null, Action <bool> EnableInput = null, bool allowToRefreshSameState = true)
 {
     if (ctrl == null)
     {
         return;
     }
     if (string.IsNullOrEmpty(stateName))
     {
         return;
     }
     if (!ctrl.gameObject.activeSelf)
     {
         return;
     }
     if (EnableInput != null)
     {
         EnableInput(false);
     }
     ctrl.SetActionForUIStateFinshed(stateName, delegate
     {
         MonoBehaviour monoBehaviour = null;
         if (onEnd != null && ctrl.transform.parent != null)
         {
             monoBehaviour = ctrl.transform.parent.GetComponentInParent <MonoBehaviour>();
         }
         if (monoBehaviour != null)
         {
             monoBehaviour.StartCoroutine(Utility.Co_UIStateCloseFinished(ctrl, onEnd, EnableInput));
         }
         else
         {
             ctrl.gameObject.SetActive(false);
             if (EnableInput != null)
             {
                 EnableInput(true);
             }
             if (onEnd != null)
             {
                 onEnd();
             }
         }
     });
     ctrl.SetToUIState(stateName, false, allowToRefreshSameState);
 }
        // Token: 0x0601090F RID: 67855 RVA: 0x0044EC94 File Offset: 0x0044CE94
        private void CloseSkillDesc()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CloseSkillDesc_hotfix != null)
            {
                this.m_CloseSkillDesc_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            CommonUIStateController component = this.m_infoSkillDescGo.GetComponent <CommonUIStateController>();

            component.SetActionForUIStateFinshed("Close", delegate
            {
                this.m_infoSkillDescGo.SetActive(false);
                this.m_infoSkillDescLoadButton.gameObject.SetActive(false);
                this.m_infoSkillDescUnLoadButton.gameObject.SetActive(false);
            });
            component.SetToUIState("Close", false, true);
        }