Esempio n. 1
0
 void UpdateGuildmenbers(COM_GuildMember guildMember)
 {
     if (guildMember.roleId_ == GamePlayer.Instance.InstId)
     {
         MyFamilyInfo.SwithShowMe();
         PopText.Instance.Show(LanguageManager.instance.GetValue("gongxijiaru"));
         Hide();
     }
 }
Esempio n. 2
0
 private void OnClickfamBtn(ButtonScript obj, object args, int param1, int param2)
 {
     MyFamilyInfo.SwithShowMe();
 }
Esempio n. 3
0
    public void NpcOpenUI(UIASSETS_ID id)
    {
        switch (id)
        {
        case UIASSETS_ID.UIASSETS__BabySkillLearning:
            BabySkillLearning.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_ProfessionPanel:
            ProfessionPanel.SwithShowMe();
            //UIBase.AsyncLoad(UIASSETS_ID.UIASSETS_ProfessionPanel);
            break;

        case UIASSETS_ID.UIASSETS_ExchangePanel:
            Exchange.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS__LearningUI:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Bar))
            {
                LearningUI.SwithShowMe();
            }
            break;

        case UIASSETS_ID.UIASSETS_FamilyPanel:
            FamilyPanelUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_FamilinfoPanel:
            MyFamilyInfo.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_FamilShopPanel:
            FamilyShopUI.SwithShowMe(true);
            break;

        case UIASSETS_ID.UIASSETS__StoreUI:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Shop))
            {
                StoreUI.SwithShowMe(2);
            }
            break;

        case UIASSETS_ID.UIASSETS__Arena:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_JJC))
            {
                ArenaUI.SwithShowMe();
            }
            else
            {
                int level = 0;
                GlobalValue.Get(Constant.C_PVPJJCOpenlevel, out level);
                if (GamePlayer.Instance.GetIprop(PropertyType.PT_Level) < level)
                {
                    PopText.Instance.Show(LanguageManager.instance.GetValue("EN_OpenBaoXiangLevel"));
                    return;
                }
            }
            break;

        case UIASSETS_ID.UIASSETS_ArenaPvpPanel:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_PVPJJC))
            {
                bool isOpen = ActivitySystem.Instance.GetInfoState(7) == ActivitySystem.ActivityInfo.ActivityState.AS_Open;
                if (!isOpen)
                {
                    PopText.Instance.Show(LanguageManager.instance.GetValue("jjcmeikai"));
                    return;
                }

                if (TeamSystem.IsInTeam())
                {
                    if (!TeamSystem.IsTeamLeader())
                    {
                        PopText.Instance.Show(LanguageManager.instance.GetValue("teamopen"));
                        return;
                    }

                    COM_SimplePlayerInst[] team = TeamSystem.GetTeamMembers();
                    if (team == null || team.Length < 3)
                    {
                        PopText.Instance.Show(LanguageManager.instance.GetValue("arenapvpnum"));
                        return;
                    }
                    if (team != null && team.Length > 0)
                    {
                        for (int i = 0; i < team.Length; i++)
                        {
                            if (team[i].isLeavingTeam_)
                            {
                                PopText.Instance.Show(LanguageManager.instance.GetValue("teamMemberLeavingNoopen"));
                                return;
                            }
                        }

                        int level = 0;
                        GlobalValue.Get(Constant.C_PVPJJCOpenlevel, out level);
                        for (int i = 0; i < team.Length; i++)
                        {
                            if (team[i].properties_[(int)PropertyType.PT_Level] < level)
                            {
                                PopText.Instance.Show(LanguageManager.instance.GetValue("duiyuandengji"));
                                return;
                            }
                        }
                    }
                }
                else
                {
                    PopText.Instance.Show(LanguageManager.instance.GetValue("pvpzudui"));
                    return;
                }

                NetConnection.Instance.joinWarriorchoose();

                //NetConnection.Instance.requestpvprank();
                //NetConnection.Instance.requestMyJJCTeamMsg();
                //ArenaPvpPanelUI.SwithShowMe();
            }
            else
            {
                int level = 0;
                GlobalValue.Get(Constant.C_PVPJJCOpenlevel, out level);
                if (GamePlayer.Instance.GetIprop(PropertyType.PT_Level) < level)
                {
                    PopText.Instance.Show(LanguageManager.instance.GetValue("EN_OpenBaoXiangLevel"));
                    return;
                }
            }
            break;

        case UIASSETS_ID.UIASSETS__WordMapUI:
            WorldMap.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_GatherPanel:
            SkillViewUI.SwithShowMe(1);
            break;

        case UIASSETS_ID.UIASSETS_AuctionHousePanel:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_AuctionHouse))
            {
                if (AuctionHouseSystem.Open_ == false)
                {
                    PopText.Instance.Show(LanguageManager.instance.GetValue("AuctionHouseClosed"), PopText.WarningType.WT_Warning);
                    return;
                }
                AuctionHousePanel.SwithShowMe();
            }
            break;

        case UIASSETS_ID.UIASSETS_HundredUI:
            if (GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Hundred))
            {
                HundredUI.SwithShowMe();
            }
            break;

        case UIASSETS_ID.UIASSETS_EmailPanel:
            EmailUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_LookchiPanel:
            LookTreeUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_PetTemple:
            PetTemple.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_FanilyBank:
            FanilyBankUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_FamilyCollection:
            FamilyCollectionUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_GuildBattlePanel:
            GuildBattleEnterScene.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_FamilyMonster:
        {
            if (FamilySystem.instance.GuildMember != null && (int)GuildSystem.GetGuildMemberSelf((int)GamePlayer.Instance.InstId).job_ >= (int)GuildJob.GJ_VicePremier)
            {
                FamilyMonsterUI.SwithShowMe();
            }
            else
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("EN_CommandPositionLess"));
            }
        }
        break;

        case UIASSETS_ID.UIASSETS_CopyOpenPanel:
            CopyOpenUI.SwithShowMe();
            break;

        case UIASSETS_ID.UIASSETS_EmployeeTask:
            NetConnection.Instance.requestEmployeeQuest();
            break;

        case UIASSETS_ID.UIASSETS_EquipUIPanel:
            EquipUIPanel.SwithShowMe();
            break;
        }
    }