public bool GotoGuildFire(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_GUILD_FIRE, true)) { return(false); } if (!ActivityHelper.IsActivityOpen(GameConst.SYS_OPEN_GUILD_FIRE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_GUILD_FIRE)) { return(false); } if (LocalPlayerManager.Instance.GuildID > 0) { InstanceHelper.EnterGuildManor(); } else { UIManager.GetInstance().ShowSysWindow("UIGuildWindow"); } return(true); }
public bool GenericGoToSysWindow(uint sys_id, params object[] args) { //先判断是否有下拉系统列表 DBSysConfig.SysConfig config = DBSysConfig.Instance.GetConfigById(sys_id); if (config.DropDown != null && config.DropDown.Count > 0) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(sys_id, true)) { return(false); } if (!CheckSysDownloaded(sys_id)) { return(false); } if (config.DropDownType == 0) { UIManager.GetInstance().ShowWindow("UISysDropDownWindow", sys_id, args); } else if (config.DropDownType == 1) { //只有韩国版开放 if (Const.Region == RegionType.KOREA) { UIManager.GetInstance().ShowWindow("UIActivityEntryWindow", sys_id, args); } } return(true); } //只有韩国版开放 if (Const.Region == RegionType.KOREA) { //如果是正常跳转到系统界面,需要关闭下拉窗 if (UIManager.GetInstance().GetWindow("UISysDropDownWindow") != null) { UIManager.GetInstance().CloseWindow("UISysDropDownWindow"); } if (UIManager.GetInstance().GetWindow("UIActivityEntryWindow") != null) { UIManager.GetInstance().CloseWindow("UIActivityEntryWindow"); } } //再执行正常流程 OpenSysWindowDelegate dlg; if (RouterDict.TryGetValue(sys_id, out dlg)) { dlg(args); } else { UINotice.Instance.ShowMessage(xc.DBConstText.GetText("MODULE_IS_DEVELOPING")); GameDebug.LogError(string.Format("没有配置系统({0})的点击事件!", sys_id)); } return(true); }
public bool GotoOpenDragonForest(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_DRAGON_FOREST, true)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIDragonForestEnterWindow"); return(true); }
public bool GotoGuildTask(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_QUEST_GUILD, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_QUEST_GUILD)) { return(false); } // 记录当弹出退出提示的时候是否要继续自动战斗 if (SceneHelp.Instance.IsInInstance == true || SceneHelp.Instance.IsCanExitBtnInWild == true) { SceneHelp.Instance.IsAutoFightingWhenShowExitTips = InstanceManager.Instance.IsAutoFighting || SceneHelp.Instance.IsAutoFightingWhenShowExitTips; } GuildTaskInfo guildTaskInfo = TaskManager.Instance.GuildTaskInfo; List <Task> tasks = TaskManager.Instance.VisibleGuildTasks; bool isGoto = false; if (guildTaskInfo == null) { isGoto = false; } else { if (tasks.Count > 0) { isGoto = true; } else { isGoto = false; } } if (isGoto == true) { TaskHelper.TaskGuide(tasks[0]); } else { if (guildTaskInfo != null && guildTaskInfo.reward_state == 1) { xc.ui.ugui.UIManager.Instance.ShowSysWindow("UITaskWindow", xc.GameConst.QUEST_GUILD, null); } else { TaskHelper.AcceptGuildTaskGuide(); } } UIManager.Instance.CloseSysWindow("UITowerClimbWindow"); return(true); }
public bool GotoInstanceHall(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_INSTANCE_HALL, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_INSTANCE_HALL)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow"); return(true); }
public bool GotoGodGoodsCompose(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_GOD_GOODS_COMPOSE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_GOD_GOODS_COMPOSE)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIGoodsComposeWindow", "godGoods"); return(true); }
public bool GotoCorsair(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_CORSAIR, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_CORSAIR)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow", GameConst.SYS_OPEN_CORSAIR); return(true); }
public bool GotoRank(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_RANK, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_RANK)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIRankListWindow", args); return(true); }
public bool GotoTrialBoss(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_TRIAL_BOSS, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_TRIAL_BOSS)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow", GameConst.SYS_OPEN_TRIAL_BOSS); return(true); }
/// <summary> /// 打开商城系统 /// </summary> /// <param name="args"></param> /// <returns></returns> public bool GotoShopWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SHOP, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SHOP)) { return(false); } LuaScriptMgr.Instance.CallLuaFunction(LuaScriptMgr.Instance.Lua.Global, "MallHelper_OnOpenMallAndSelectItem", args); return(true); }
/// <summary> /// 打开福利系统 /// </summary> /// <param name="args"></param> /// <returns></returns> public bool GotoWelfareWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_WELFARE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_WELFARE)) { return(false); } UIManager.Instance.ShowSysWindow("UIWelfareWindow"); return(true); }
/// <summary> /// 跳转到地图界面 /// </summary> /// <param name="args"></param> /// <returns></returns> public bool GotoMapWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_MAP, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_MAP)) { return(false); } UIManager.Instance.ShowSysWindow("UIMapWindow", args); return(true); }
public bool GoToPlayerMainWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_ROLE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_ROLE)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIPlayerPropertyWindow"); return(true); }
public bool GoToFriendsWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_FRIEND, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_FRIEND)) { return(false); } UIManager.Instance.ShowSysWindow("UIFriendSystemWindow", "Friend"); return(true); }
public bool GoToSkillWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SKILL, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SKILL)) { return(false); } UIManager.GetInstance().ShowSysWindow("UISkillWindow"); return(true); }
// public bool GotoStigma(params object[] args) // { // if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_STIGMA, true)) // { // return false; // } // if (!CheckSysDownloaded(GameConst.SYS_OPEN_STIGMA)) // { // return false; // } // UIManager.GetInstance().ShowSysWindow("UIPlayerPropertyWindow", "StigmataTab"); // return true; // } public bool GotoForgottenTomb(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_FORGOTTEN_TOMB, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_FORGOTTEN_TOMB)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow", GameConst.SYS_OPEN_FORGOTTEN_TOMB); return(true); }
public bool GotoFairyValley(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_FAIRY_VALLEY, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_FAIRY_VALLEY)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow", GameConst.SYS_OPEN_FAIRY_VALLEY); return(true); }
public bool GotoSoulExchange(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SOUL_EXCHANGE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SOUL_EXCHANGE)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIExchangeMallWindow", GameConst.SYS_OPEN_SOUL_EXCHANGE); return(true); }
public bool GotoOpenSouthLand(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SOUTH_LAND, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SOUTH_LAND)) { return(false); } UIManager.GetInstance().ShowSysWindow("UITreasureWindow", "UISouthLandWindow"); return(true); }
public bool GoToEquipSuit(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SUIT, true) || !SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_STRENGTH, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SUIT) || !CheckSysDownloaded(GameConst.SYS_OPEN_STRENGTH)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIEquipmentWindow", "SetEquip"); return(true); }
public bool GotoGuildBoss(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_GUILD_BOSS, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_GUILD_BOSS)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIGuildWindow", "GUILD_BOSS"); return(true); }
public bool GotoSevenGift(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SEVEN_GIFT, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SEVEN_GIFT)) { return(false); } UIManager.GetInstance().ShowSysWindow("UISevenDayGiftWindow"); return(true); }
public bool GotoGuildLeaguePrime(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_LEAGUE_PRIME, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_LEAGUE_PRIME)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIGuildLeaguePrimeGuildWindow"); return(true); }
public bool GotoOpenTargetSys(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_TARGET, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_TARGET)) { return(false); } UIManager.GetInstance().ShowSysWindow("UITargetWindow"); return(true); }
/// <summary> /// show mail window. /// </summary> /// <returns><c>true</c>, if to mail window was create, <c>false</c> otherwise.</returns> public bool GoToMailWnd(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(2, true)) { return(false); } if (!CheckSysDownloaded(2)) { return(false); } // var friendManagerWindow = UIManager.Instance.GetWindow<UIFriendsManagerWindow>(true); // friendManagerWindow.ShowMailPage(); return(true); }
public bool GotoSecretDefend(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_SECRET_DEFEND, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_SECRET_DEFEND)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIInstanceHallWindow", GameConst.SYS_OPEN_SECRET_DEFEND); return(true); }
public bool GotoGuildLeaguePreview(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_LEAGUE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_LEAGUE)) { return(false); } //UIManager.GetInstance().ShowSysWindow("UIGuildWindow", "GUILD_LEAGUE"); UIManager.GetInstance().ShowWindow("UIGuildWarFunctionNoticeWindow"); return(true); }
public bool GotoTreasure(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_TREASURE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_TREASURE)) { return(false); } UIManager.GetInstance().CloseWindow("UIOpenBossTipsWindow"); UIManager.GetInstance().ShowSysWindow("UITreasureWindow"); return(true); }
public bool GotoWorshipMeeting(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_WORSHIP_MEETING, true)) { return(false); } if (!ActivityHelper.IsActivityOpen(GameConst.SYS_OPEN_WORSHIP_MEETING, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_WORSHIP_MEETING)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIWorshipMeetingEnterWindow"); return(true); }
public bool GotoDeadSpace(params object[] args) { if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_DEAD_SPACE, true)) { return(false); } if (!ActivityHelper.IsActivityOpen(GameConst.SYS_OPEN_DEAD_SPACE, true)) { return(false); } if (!CheckSysDownloaded(GameConst.SYS_OPEN_DEAD_SPACE)) { return(false); } UIManager.GetInstance().ShowSysWindow("UIDeadSpaceEnterWindow"); return(true); }