Esempio n. 1
0
 private void RefreshUI()
 {
     EventDispatcher.Broadcast <UIBase>(EventNames.RefreshTipsButtonStateInUIBase, this);
     this.SetChangeCareerLock();
     this.CheckBadge();
     UIManagerControl.Instance.OpenUI("EquipShowUI", this.Content, false, UIType.NonPush);
     this.m_RightState = ActorUI.RightState.Property;
     this.OnClickTab(base.FindTransform("InfoBtn").get_gameObject());
     this.RefreshEquipPart();
 }
Esempio n. 2
0
    private void OnClickTab(GameObject go)
    {
        string name = go.get_name();

        if (name != null)
        {
            if (ActorUI.< > f__switch$map15 == null)
            {
                Dictionary <string, int> dictionary = new Dictionary <string, int>(3);
                dictionary.Add("InfoBtn", 0);
                dictionary.Add("TitleBtn", 1);
                dictionary.Add("WingBtn", 2);
                ActorUI.< > f__switch$map15 = dictionary;
            }
            int num;
            if (ActorUI.< > f__switch$map15.TryGetValue(name, ref num))
            {
                switch (num)
                {
                case 0:
                    this.m_RightState = ActorUI.RightState.Property;
                    break;

                case 1:
                    this.m_RightState = ActorUI.RightState.Title;
                    break;

                case 2:
                    if (!SystemOpenManager.IsSystemClickOpen(35, 0, true))
                    {
                        return;
                    }
                    this.m_RightState = ActorUI.RightState.Wing;
                    break;
                }
            }
        }
        if (this.m_RightState == this.m_LastState)
        {
            return;
        }
        this.SetBtnLightAndDim(go, "fenleianniu_1", true);
        if (this.TabBtnDic.ContainsKey(this.m_LastState))
        {
            this.SetBtnLightAndDim(this.TabBtnDic.get_Item(this.m_LastState).get_gameObject(), "fenleianniu_2", false);
        }
        this.RefreshRightUIState(this.m_RightState);
        this.m_LastState = this.m_RightState;
    }
Esempio n. 3
0
    private void RefreshRightUIState(ActorUI.RightState state)
    {
        switch (this.m_LastState)
        {
        case ActorUI.RightState.Property:
            UIManagerControl.Instance.HideUI("ActorPropertyUI");
            break;

        case ActorUI.RightState.Title:
            UIManagerControl.Instance.HideUI("TitleUI");
            break;

        case ActorUI.RightState.Wing:
            UIManagerControl.Instance.HideUI("WingUI");
            break;
        }
        switch (state)
        {
        case ActorUI.RightState.Property:
        {
            ActorPropertyUI actorPropertyUI = UIManagerControl.Instance.OpenUI("ActorPropertyUI", this.RightTransRoot, false, UIType.NonPush) as ActorPropertyUI;
            actorPropertyUI.RefreshUI(EntityWorld.Instance.EntSelf);
            break;
        }

        case ActorUI.RightState.Title:
            UIManagerControl.Instance.OpenUI("TitleUI", this.RightTransRoot, false, UIType.NonPush);
            break;

        case ActorUI.RightState.Wing:
        {
            UIBase uIBase = UIManagerControl.Instance.OpenUI("WingUI", this.RightTransRoot, false, UIType.NonPush);
            uIBase.get_transform().set_localPosition(new Vector3(344f, -73f));
            break;
        }
        }
    }