private void OnClickskilliBtn(ButtonScript obj, object args, int param1, int param2) { SkillViewUI.SwithShowMe(); }
private void OnGoBtn(ButtonScript obj, object args, int param1, int param2) { if (Cheats == null) { return; } if (!string.IsNullOrEmpty(_cheatsData.find_)) { GameManager.Instance.ParseNavMeshInfo(_cheatsData.find_); return; } if (Cheats.uiType_ == HelpRaiseType.HRT_None) { return; } if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddProp) { PlayerPropertyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerResetProp) { PlayerPropertyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddEvolve) { PlayerPropertyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyAddProp) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } MainbabyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyReset) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } MainbabyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyStr) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } MainbabyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_BabySkill) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } MainbabyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyChange) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } MainbabyUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillAuto) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } SkillViewUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillItem) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } SkillViewUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipCompound) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } CompoundUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipGem) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } CompoundUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeBuy) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } EmployessControlUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeePos) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } EmployessControlUI.SwithShowMe(2); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeSkill) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } EmployessControlUI.SwithShowMe(1); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEquip) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } EmployessControlUI.SwithShowMe(3); } else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEvolve) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } EmployessControlUI.SwithShowMe(3); } else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicLevelUp) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } magicItemUI.SwithShowMe(); } else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicEvolve) { if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem)) { PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi")); return; } magicItemUI.SwithShowMe(); } }
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; } }