Esempio n. 1
0
    private void RecvWingUpLvRes(short state, WingUpLvRes msg = null)
    {
        if ((int)state == Status.ITEM_NOT_ENOUGH_COUNT)
        {
            LinkNavigationManager.ItemNotEnoughToLink(msg.itemId, true, null, true);
            return;
        }
        if (state != 0)
        {
            StateManager.Instance.StateShow(state, msg.itemId);
            return;
        }
        WingManager.wingInfoDict.set_Item(msg.wingInfo.cfgId, msg.wingInfo);
        WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI;

        if (wingUpgradeUI != null)
        {
            wingUpgradeUI.Refresh();
            wingUpgradeUI.PlayProgressSpine();
            wingUpgradeUI.PlayUpgradeSpine();
        }
        WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI;

        if (wingUI != null)
        {
            wingUI.CheckBadge();
        }
        ActorUI actorUI = UIManagerControl.Instance.GetUIIfExist("ActorUI") as ActorUI;

        if (actorUI != null)
        {
            actorUI.CheckBadge();
        }
    }
Esempio n. 2
0
    private void RecvWingComposeRes(short state, WingComposeRes msg = null)
    {
        if (state != 0)
        {
            StateManager.Instance.StateShow(state, 0);
            return;
        }
        WingManager.wingInfoDict.set_Item(msg.wingInfo.cfgId, msg.wingInfo);
        WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI;

        if (wingUpgradeUI != null)
        {
            wingUpgradeUI.PlayActiveSuccess();
            wingUpgradeUI.Refresh();
        }
        WingSelectUI wingSelectUI = UIManagerControl.Instance.GetUIIfExist("WingSelectUI") as WingSelectUI;

        if (wingSelectUI != null)
        {
            wingSelectUI.PlayActiveSuccess(msg.wingInfo.cfgId);
        }
        WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI;

        if (wingUI != null)
        {
            wingUI.CheckBadge();
        }
        ActorUI actorUI = UIManagerControl.Instance.GetUIIfExist("ActorUI") as ActorUI;

        if (actorUI != null)
        {
            actorUI.CheckBadge();
        }
    }
Esempio n. 3
0
    private void OnClickBtnPage(GameObject sender)
    {
        int num = int.Parse(sender.get_name().Split(new char[]
        {
            '_'
        })[1]);

        this.SetBtnPageHightlight(num);
        if (num == 1)
        {
            UIManagerControl.Instance.HideUI("WingSelectUI");
            Transform     parent        = base.FindTransform("RootWingUpgradeUI");
            WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.OpenUI("WingUpgradeUI", parent, false, UIType.NonPush) as WingUpgradeUI;
            wingUpgradeUI.Refresh();
        }
        else
        {
            UIManagerControl.Instance.HideUI("WingUpgradeUI");
            Transform parent2 = base.FindTransform("RootWingSelectUI");
            UIManagerControl.Instance.OpenUI("WingSelectUI", parent2, false, UIType.NonPush);
        }
    }
Esempio n. 4
0
    protected void OnEquipWing(int wingId, int wingLv, bool isHidden)
    {
        WingUI.wingIdLast = wingId;
        WingUI wingUI = UIManagerControl.Instance.GetUIIfExist("WingUI") as WingUI;

        if (wingUI != null)
        {
            wingUI.Refresh();
        }
        WingUpgradeUI wingUpgradeUI = UIManagerControl.Instance.GetUIIfExist("WingUpgradeUI") as WingUpgradeUI;

        if (wingUpgradeUI != null)
        {
            wingUpgradeUI.Refresh();
        }
        WingSelectUI wingSelectUI = UIManagerControl.Instance.GetUIIfExist("WingSelectUI") as WingSelectUI;

        if (wingSelectUI != null)
        {
            wingSelectUI.RefreshWings();
        }
    }