Esempio n. 1
0
    /// <summary>
    /// shortcut for UIStack.Queue
    /// </summary>
    public void Queue()
    {
        if (this.gameObject != null)
        {
            EB.Debug.LogUI("执行【<color=#00ff00>{0}</color>】预设UIController中<color=#42fe79>Queue无参</color>方法", this.gameObject.name);
        }

        if (UIStack.Instance != null && UIStack.Instance.gameObject.activeSelf)
        {
            UIStack.Queue(this);
            //ToDo:暂时屏蔽
            //if (GlobalMenuManager.Instance != null && gameObject != null)
            //{
            //    GlobalMenuManager.Instance.SetUIEnabled(MCurrentViewName, true);
            //}
            if (gameObject != null)
            {
                GlobalUtils.CallStaticHotfix("Hotfix_LT.UI.GlobalMenuManager", "SetUIEnabledFromILR", MCurrentViewName, true);
            }
        }
    }
Esempio n. 2
0
    protected void OnLoadAndPlace(GameObject placed)
    {
        if (placed == null)
        {
            return;
        }

        IStackableUI stackable = (IStackableUI)placed.GetComponent(typeof(IStackableUI));

        if (stackable != null && stackable.EnstackOnCreate)
        {
            if (UIStack.Instance.IsLoadingScreenUp || UIStack.Instance.IsWaittingScreenUp)
            {
                UIStack.Queue(stackable);
            }
            else
            {
                UIStack.Open(stackable);
            }
        }
        SetHudShow();
    }