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

        if (UIStack.Instance != null && UIStack.Instance.gameObject.activeSelf)
        {
            UIStack.Open(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);
            }
        }
    }
Exemple #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();
    }