public static bool OnMultiplayerBtn(TitleMenuGui_N __instance)
        {
            Pathea.PeGameMgr.playerType  = Pathea.PeGameMgr.EPlayerType.Multiple;
            RandomMapConfig.useSkillTree = false;

            PatchUtils.LoadMultiplayerData();

            PeSceneCtrl.Instance.GotoMultiRoleScene();

            return(false);
        }
Beispiel #2
0
    void Start()
    {
        mInstance = this;
        //Record.m_Auto = Record.RecordOther(ref Otherlist);
        //if(Otherlist.Count < 1 || Record.m_Auto == -1)
        //    mContinueBtn.isEnabled = false;
        //if(Otherlist.Count < 1)
        //    mLoadBtn.isEnabled = false;

//		LogoGui_N.Instance.SetBGM("Sound/Music/PE_MainMenu");

        //mWndTran.localPosition = new Vector3((int)-Screen.width/4 + 50f,50f,0);
        Pathea.PeGameMgr.playerType = Pathea.PeGameMgr.EPlayerType.Multiple;
        Pathea.PeGameMgr.gameLevel  = Pathea.PeGameMgr.EGameLevel.Normal;

        //lz-2016.09.13 提示
        if (!string.IsNullOrEmpty(GlobalBehaviour.BadGfxDeviceName))
        {
            mGraphWaringLbl.text = "  " + PELocalization.GetString(8000691).Replace("$A$", GlobalBehaviour.BadGfxDeviceName);
            mGraphWaringWnd.SetActive(true);
        }
        else
        {
            mGraphWaringWnd.SetActive(false);
            CheckControlWndNeedShow();
        }

        InitVersion();
        mCustomSelectWnd.onOpen  += OnCustomWndOpen;
        mCustomSelectWnd.onClose += OnCustomWndClose;

        //w destroy multiplayer
#if DemoVersion
        GameObject.Destroy(menuMain[1].gameObject);
        menuMain.RemoveAt(1);
        for (int i = 0; i < menuMain.Count; ++i)
        {
            menuMain[i].localPosition = new Vector3(0, 120 - i * 40, 0);
        }
        GameObject.Destroy(menuSingle[3].gameObject);
        menuSingle.RemoveAt(3);
        GameObject.Destroy(menuSingle[1].gameObject);
        menuSingle.RemoveAt(1);
        for (int i = 0; i < menuSingle.Count; ++i)
        {
            menuSingle[i].localPosition = new Vector3(0, 80 - i * 40, 0);
        }
#endif
    }
        public static bool Update(TitleMenuGui_N __instance)
        {
            if (SystemSettingData.Instance != null)
            {
                if (__instance.mControlWnd.activeSelf)
                {
                    if (SystemSettingData.Instance.FixBlurryFont != __instance.mFixBlurryCB.isChecked)
                    {
                        SystemSettingData.Instance.FixBlurryFont = __instance.mFixBlurryCB.isChecked;
                        if (UIFontMgr.Instance != null)
                        {
                            UILabel[] labels = UIFontMgr.Instance.gameObject.GetComponentsInChildren <UILabel>(true);
                            for (int i = 0; i < labels.Length; i++)
                            {
                                labels[i].MakePixelPerfect();
                            }
                        }
                    }
                }
            }

            return(false);
        }