Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public bool GotoOpenDragonForest(params object[] args)
 {
     if (!SysConfigManager.GetInstance().CheckSysHasOpened(GameConst.SYS_OPEN_DRAGON_FOREST, true))
     {
         return(false);
     }
     UIManager.GetInstance().ShowSysWindow("UIDragonForestEnterWindow");
     return(true);
 }
Exemple #4
0
        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);
        }
Exemple #5
0
 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);
 }
Exemple #6
0
 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);
 }
Exemple #7
0
 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);
 }
Exemple #8
0
 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);
 }
Exemple #9
0
 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);
 }
Exemple #10
0
 /// <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);
 }
Exemple #11
0
 /// <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);
 }
Exemple #12
0
 /// <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);
 }
Exemple #13
0
 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);
 }
Exemple #14
0
 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);
 }
Exemple #15
0
 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);
 }
Exemple #16
0
//         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);
        }
Exemple #17
0
 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);
 }
Exemple #18
0
 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);
 }
Exemple #19
0
 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);
 }
Exemple #20
0
 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);
 }
Exemple #21
0
 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);
 }
Exemple #22
0
        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);
        }
Exemple #23
0
        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);
        }
Exemple #24
0
        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);
        }
Exemple #25
0
 /// <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);
 }
Exemple #26
0
        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);
        }
Exemple #27
0
        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);
        }
Exemple #28
0
        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);
        }
Exemple #29
0
 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);
 }
Exemple #30
0
 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);
 }