Пример #1
0
 public static void OpenBountyUI()
 {
     if (!SystemOpenManager.IsSystemClickOpen(27, 0, true))
     {
         return;
     }
     InstanceManagerUI.OpenBountyUI();
 }
Пример #2
0
    public static void SystemLink(int systemId, bool isTip = true, Action finish_callback = null)
    {
        if (DataReader <SystemOpen> .Get(systemId) == null)
        {
            Debug.Log("<color=red>Error:</color>找不到对应的系统, systemId = " + systemId);
            return;
        }
        if (!SystemOpenManager.IsSystemClickOpen(systemId, 0, isTip))
        {
            return;
        }
        switch (systemId)
        {
        case 3:
            LinkNavigationManager.OpenSkillUI(finish_callback);
            return;

        case 4:
            LinkNavigationManager.OpenPetUI(finish_callback);
            return;

        case 5:
            LinkNavigationManager.OpenActorUI(finish_callback);
            return;

        case 6:
        case 8:
        case 10:
        case 12:
        case 20:
        case 23:
        case 26:
        case 30:
        case 34:
        case 36:
        case 40:
        case 41:
        case 42:
        case 43:
        case 44:
        case 47:
        case 49:
        case 50:
        case 51:
        case 52:
        case 53:
        case 57:
        case 58:
        case 59:
        case 60:
        case 64:
        case 69:
        case 70:
        case 72:
        case 73:
        case 75:
        case 76:
        case 77:
IL_17C:
            switch (systemId)
            {
            case 102:
                LinkNavigationManager.OpenXMarketUI2();
                return;

            case 104:
                LinkNavigationManager.OpenZeroTaskUI();
                return;

            case 105:
                LinkNavigationManager.OpenPVPShopUI();
                return;

            case 106:
                LinkNavigationManager.OpenVIPUI2VipInvest();
                return;

            case 107:
                LinkNavigationManager.OpenRankUpUI();
                return;

            case 110:
                LinkNavigationManager.OpenMultiPVPUI();
                return;

            case 111:
                LinkNavigationManager.OpenMultiPVEUI();
                return;

            case 112:
                LinkNavigationManager.OpenPetTaskUI();
                return;
            }
            Debug.Log("<color=red>Error:</color>找不到超链接: systemId = " + systemId);
            goto IL_41F;

        case 7:
            UIManagerControl.Instance.OpenUI("LuckDrawUI", null, false, UIType.FullScreen);
            goto IL_41F;

        case 9:
            LinkNavigationManager.OpenFirstPayUI(finish_callback);
            return;

        case 11:
            LinkNavigationManager.OpenDailyTaskUI();
            goto IL_41F;

        case 13:
            LinkNavigationManager.OpenPVPUI();
            goto IL_41F;

        case 14:
            InstanceManagerUI.OpenGangFightUI();
            goto IL_41F;

        case 15:
            LinkNavigationManager.OpenSurvivalChallengeUI();
            goto IL_41F;

        case 16:
            UIManagerControl.Instance.OpenUI("ElementInstanceUI", null, false, UIType.FullScreen);
            goto IL_41F;

        case 17:
            InstanceManagerUI.OpenSpecialInstanceUI();
            goto IL_41F;

        case 18:
            InstanceManagerUI.OpenEliteDungeonUI();
            goto IL_41F;

        case 19:
            MultiPlayerManager.Instance.OpenMultiPlayerUI(10002, "多人副本");
            goto IL_41F;

        case 21:
            LinkNavigationManager.OpenEquipStrengthenUI(EquipLibType.ELT.Weapon, finish_callback);
            return;

        case 22:
            LinkNavigationManager.OpenEquipGemUI(EquipLibType.ELT.Weapon, null);
            goto IL_41F;

        case 24:
            LinkNavigationManager.OpenPetLevelUI();
            goto IL_41F;

        case 25:
            LinkNavigationManager.OpenPetStarUI();
            goto IL_41F;

        case 27:
            InstanceManagerUI.OpenBountyUI();
            goto IL_41F;

        case 28:
            goto IL_41F;

        case 29:
            CurrenciesUIViewModel.Instance.OnClickGold();
            goto IL_41F;

        case 31:
            EnergyManager.Instance.BuyEnergy(null);
            goto IL_41F;

        case 32:
            LinkNavigationManager.OpenVIPUI2VipLimit();
            return;

        case 33:
            LinkNavigationManager.OpenVIPUI2Recharge();
            return;

        case 35:
            LinkNavigationManager.OpenActorUI(delegate
            {
                ActorUI actorUI = UIManagerControl.Instance.GetUIIfExist("ActorUI") as ActorUI;
                if (!actorUI)
                {
                    return;
                }
                actorUI.LogicClickTabToWing();
                if (finish_callback != null)
                {
                    finish_callback.Invoke();
                }
            });
            return;

        case 37:
            LinkNavigationManager.OpenEquipStarUpUI(EquipLibType.ELT.Weapon, finish_callback);
            return;

        case 38:
            LinkNavigationManager.OpenEquipWashUI(EquipLibType.ELT.Weapon, finish_callback);
            return;

        case 39:
            LinkNavigationManager.OpenEquipEnchantmentUI(EquipLibType.ELT.Weapon, finish_callback);
            return;

        case 45:
            LinkNavigationManager.OpenGuildUI(null);
            return;

        case 46:
            UIStackManager.Instance.PopTownUI();
            MainTaskManager.Instance.ExecuteTask(MainTaskManager.Instance.RingTaskId, false);
            goto IL_41F;

        case 48:
            UIStackManager.Instance.PopTownUI();
            goto IL_41F;

        case 54:
            InstanceManagerUI.OpenSpecialInstanceGuardUI();
            goto IL_41F;

        case 55:
            LinkNavigationManager.OpenTramcarUI();
            goto IL_41F;

        case 56:
            InstanceManagerUI.OpenSpecialInstanceAttackUI();
            goto IL_41F;

        case 61:
            LinkNavigationManager.OpenMemCollabUI();
            goto IL_41F;

        case 62:
            LinkNavigationManager.OpenXMarketUI();
            return;

        case 63:
            InstanceManagerUI.OpenSpecialInstanceExperienceUI();
            goto IL_41F;

        case 65:
            LinkNavigationManager.OpenGodSoldierUI();
            goto IL_41F;

        case 66:
            LinkNavigationManager.OpenMushroomHitUI();
            goto IL_41F;

        case 67:
            LinkNavigationManager.OpenGodWeaponUI();
            return;

        case 68:
            LinkNavigationManager.OpenBossBookUI();
            return;

        case 71:
            UIManagerControl.Instance.OpenUI("RadarMapUI", UINodesManager.NormalUIRoot, false, UIType.FullScreen);
            goto IL_41F;

        case 74:
            LinkNavigationManager.OpenHuntUI(0);
            return;

        case 78:
            LinkNavigationManager.OpenEquipSuitForgeUI(EquipLibType.ELT.Weapon, finish_callback);
            return;

        case 79:
            LinkNavigationManager.OpenFriendUI();
            return;
        }
        goto IL_17C;
IL_41F:
        if (finish_callback != null)
        {
            finish_callback.Invoke();
        }
    }
Пример #3
0
    public static void GoTo(int pathId)
    {
        DLuJingShuXing dLuJingShuXing = DataReader <DLuJingShuXing> .Get(pathId);

        if (dLuJingShuXing.type == 0 && !UIManagerControl.Instance.IsOpen("InstanceDetailUI"))
        {
            int       instanceID = (int)float.Parse(dLuJingShuXing.invokeParam);
            Hashtable hashtable  = DungeonManager.Instance.CheckLock(instanceID);
            bool      flag       = (bool)hashtable.get_Item("ISLock");
            string    text       = (string)hashtable.get_Item("LockReason");
            if (flag)
            {
                UIManagerControl.Instance.ShowToastText(text);
                return;
            }
            InstanceManagerUI.OpenInstanceUI(instanceID, false, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 1 && !UIManagerControl.Instance.IsOpen("SurvivalChallengeUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenSurvivalChallengeUI();
        }
        else if (dLuJingShuXing.type == 2 && !UIManagerControl.Instance.IsOpen("PVPUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenPVPUI();
        }
        else if (dLuJingShuXing.type == 3 && !UIManagerControl.Instance.IsOpen("GangFightUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            UIManagerControl.Instance.OpenUI("GangFightUI", null, false, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 4 && !UIManagerControl.Instance.IsOpen("ElementInstanceUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            UIManagerControl.Instance.OpenUI("ElementInstanceUI", null, false, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 5 && !UIManagerControl.Instance.IsOpen("SpecialInstanceUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            InstanceManagerUI.OpenSpecialInstanceUI();
        }
        else if (dLuJingShuXing.type == 6 && !UIManagerControl.Instance.IsOpen("ShoppingUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            MarketManager.Instance.OpenShop(3);
        }
        else if (dLuJingShuXing.type == 7 && !UIManagerControl.Instance.IsOpen("LuckDrawUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            UIManagerControl.Instance.OpenUI("LuckDrawUI", null, true, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 8 && !UIManagerControl.Instance.IsOpen("EveryDayUI"))
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            UIManagerControl.Instance.OpenUI("DailyTaskUI", null, true, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 9)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenPetUI(null);
        }
        else if (dLuJingShuXing.type == 10)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenEquipGemUI(EquipLibType.ELT.Weapon, null);
        }
        else if (dLuJingShuXing.type == 11)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenActorUI(null);
        }
        else if (dLuJingShuXing.type == 12)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
        }
        else if (dLuJingShuXing.type == 13)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            UIManagerControl.Instance.OpenUI("RiseUI", null, true, UIType.FullScreen);
        }
        else if (dLuJingShuXing.type == 14)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenVIPUI2Recharge();
        }
        else if (dLuJingShuXing.type == 15)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            CurrenciesUIViewModel.Instance.OnClickGold();
        }
        else if (dLuJingShuXing.type == 16)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
        }
        else if (dLuJingShuXing.type == 17)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            InstanceManagerUI.OpenEliteDungeonUI();
        }
        else if (dLuJingShuXing.type == 18)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
        }
        else if (dLuJingShuXing.type == 19)
        {
            if (!SystemOpenManager.IsSystemClickOpen(37, 0, true))
            {
                return;
            }
            LinkNavigationManager.OpenEquipStarUpUI(EquipLibType.ELT.Weapon, null);
        }
        else if (dLuJingShuXing.type == 20)
        {
            LinkNavigationManager.OpenEquipStrengthenUI(EquipLibType.ELT.Weapon, null);
        }
        else if (dLuJingShuXing.type == 21)
        {
            if (!SystemOpenManager.IsSystemClickOpen(dLuJingShuXing.systemOpenID, 502255, true))
            {
                return;
            }
            LinkNavigationManager.OpenEquipGemUI(EquipLibType.ELT.Weapon, null);
        }
        else if (dLuJingShuXing.type == 22)
        {
            LinkNavigationManager.OpenSkillUI(null);
        }
        else if (dLuJingShuXing.type == 23)
        {
            LinkNavigationManager.OpenPetLevelUI();
        }
        else if (dLuJingShuXing.type == 24)
        {
            LinkNavigationManager.OpenPetStarUI();
        }
        else if (dLuJingShuXing.type == 25)
        {
            LinkNavigationManager.OpenPetSkillUI();
        }
        else if (dLuJingShuXing.type == 28)
        {
            if (!SystemOpenManager.IsSystemClickOpen(27, 0, true))
            {
                return;
            }
            InstanceManagerUI.OpenBountyUI();
        }
        else if (dLuJingShuXing.type == 29)
        {
            if (!SystemOpenManager.IsSystemClickOpen(41, 0, true))
            {
                return;
            }
        }
        else
        {
            Debug.LogError("错误的索引ID  " + pathId);
        }
        if (SourceReferenceUI.m_actionClickGoToItem != null)
        {
            SourceReferenceUI.m_actionClickGoToItem.Invoke();
            SourceReferenceUI.m_actionClickGoToItem = null;
        }
    }