Ejemplo n.º 1
0
        void onEnterClick()
        {
            if (curServerData == null)
            {
                return;
            }

            if (curServerData.srv_status == 5)
            {
                //服务器维护中
                msg.show(true, ContMgr.getOutGameCont("debug3"));
            }
            else
            {
                bt.interactable = false;
                btn_look.SetActive(false);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.LOGIN_SERVER_SID, curServerData.sid);
                LGPlatInfo.inst.sendLogin(curServerData.login_url);
                //if (debug.instance != null)
                //    debug.instance.showMsg(ContMgr.getOutGameCont("debug1"));

                if (Application.platform == RuntimePlatform.Android)
                {
                    AndroidPlotformSDK.ANDROID_HIDE_STATUSBAR();
                }
            }
        }
Ejemplo n.º 2
0
        public static void setMusic(bool on)
        {
            GlobleSetting.MUSIC_ON = on;
            int num = (int)(float.Parse(MediaClient.getInstance().getMusicVolume().ToString("F2")) * 100f);

            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_MUSIC, on ? num : GlobleSetting.minMusicValue);
            MediaClient.getInstance().isPlayMusic = on;
        }
Ejemplo n.º 3
0
        public static void setSound(bool on)
        {
            GlobleSetting.SOUND_ON = on;
            int num = (int)(float.Parse(MediaClient.getInstance().getSoundVolume().ToString("F2")) * 100f);

            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_SOUND, on ? num : GlobleSetting.minSoundValue);
            MediaClient.getInstance().isPlaySound = on;
        }
Ejemplo n.º 4
0
        public static void setMusic(bool on)
        {
            MUSIC_ON = on;
            float musicValue   = MediaClient.instance.getMusicVolume();
            int   currentValue = (int)(float.Parse(musicValue.ToString("F2")) * 100);

            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_MUSIC, on ? currentValue : minMusicValue);
            MediaClient.instance.isPlayMusic = on;
        }
Ejemplo n.º 5
0
        public static void setSound(bool on)
        {
            SOUND_ON = on;
            float soundValue   = MediaClient.instance.getSoundVolume();
            int   currentValue = (int)(float.Parse(soundValue.ToString("F2")) * 100);

            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_SOUND, on ? currentValue : minSoundValue);
            MediaClient.instance.isPlaySound = on;
        }
Ejemplo n.º 6
0
        private void onEnterClick()
        {
            bool flag = this.curServerData == null;

            if (!flag)
            {
                this.bt.interactable = false;
                this.btn_look.SetActive(false);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.LOGIN_SERVER_SID, this.curServerData.sid);
                LGPlatInfo.inst.sendLogin(this.curServerData.login_url);
            }
        }
        void onBtnClose(GameObject go)
        {
            //设置系统数据配置之后关闭当前UI
            SystemPanel sp = SystemPanel.mInstance.GetValue();

            //SceneCamera.SetGameScreenPow(sp.videoQualityValue);
            SceneCamera.SetGameLight((int)sp.roleShadowType);
            SceneCamera.SetGameShadow((int)sp.roleShadowType);
            SceneCamera.SetGameScene((int)sp.sceneDetailType);
            SceneCamera.SetSikillEff((int)sp.skillDetailType);
            //SceneCamera.SetResolution((int)sp.resolutionType);
            SceneCamera.SetFPSLimit((int)sp.fpsLimitType);
            SceneCamera.SetModelDetail((int)sp.modelDetailType);


            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_MUSIC, sp.musicValue);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_SOUND, sp.musicEffect);
            //PlayeLocalInfo.saveString(PlayeLocalInfo.VIDEO_QUALITY, sp.videoQualityValue.ToString());
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SKILL_EFFECT, (int)sp.skillDetailType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.FPS_LIMIT, (int)sp.fpsLimitType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.ROLE_SHADOW, (int)sp.roleShadowType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SCENE_DETAIL, (int)sp.sceneDetailType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.MODEL_DETAIL, (int)sp.modelDetailType);
            //PlayeLocalInfo.saveInt(PlayeLocalInfo.SCREEN_RESOLUTION, (int)sp.resolutionType);
            //gameSetting
            if (GamePanel.mInstance != null)
            {
                GamePanel gp = GamePanel.mInstance.GetValue();
                GlobleSetting.REFUSE_TEAM_INVITE         = gp.refuseTeamInvite;
                GlobleSetting.IGNORE_PRIVATE_INFO        = gp.ignorePrivateInfo;
                GlobleSetting.IGNORE_KNIGHTAGE_INVITE    = gp.ignorePaladinInvite;
                GlobleSetting.IGNORE_FRIEND_ADD_REMINDER = gp.ignoreAddFirendHint;
                GlobleSetting.IGNORE_OTHER_EFFECT        = gp.ignoreOtherEffect;
                GlobleSetting.IGNORE_OTHER_PLAYER        = gp.ignoreOther;
                GlobleSetting.IGNORE_OTHER_PET           = gp.ignoreOtherPet;

                PlayeLocalInfo.saveInt(PlayeLocalInfo.REFUSE_TEAM_INVITE, GlobleSetting.REFUSE_TEAM_INVITE ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_PRIVATE_INFO, GlobleSetting.IGNORE_PRIVATE_INFO ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE, GlobleSetting.IGNORE_KNIGHTAGE_INVITE ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER, GlobleSetting.IGNORE_FRIEND_ADD_REMINDER ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_EFFECT, GlobleSetting.IGNORE_OTHER_EFFECT ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_PLAYER, GlobleSetting.IGNORE_OTHER_PLAYER ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_PET, GlobleSetting.IGNORE_OTHER_PET ? 1 : 0);
            }


            //PlayerPrefs.DeleteAll();//test default value
            InterfaceMgr.getInstance().close(InterfaceMgr.A3_SYSTEM_SETTING);
        }
Ejemplo n.º 8
0
        private void onBtnClose(GameObject go)
        {
            a3_systemSetting.SystemPanel value = a3_systemSetting.SystemPanel.mInstance.GetValue();
            SceneCamera.SetGameScreenPow(value.videoQualityValue);
            SceneCamera.SetGameLight((int)value.shadowVolumeType);
            SceneCamera.SetGameShadow((int)value.roleShadowType);
            SceneCamera.SetGameScene((int)value.sceneDetailType);
            SceneCamera.SetSikillEff((int)value.skillEffectType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_MUSIC, value.musicValue);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SYS_SOUND, value.musicEffect);
            PlayeLocalInfo.saveString(PlayeLocalInfo.VIDEO_QUALITY, value.videoQualityValue.ToString());
            PlayeLocalInfo.saveInt(PlayeLocalInfo.DYNAM_LIGHT, (int)value.shadowVolumeType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.ROLE_SHADOW, (int)value.roleShadowType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SCENE_DETAIL, (int)value.sceneDetailType);
            PlayeLocalInfo.saveInt(PlayeLocalInfo.SKILL_EFFECT, (int)value.skillEffectType);
            bool flag = a3_systemSetting.GamePanel.mInstance != null;

            if (flag)
            {
                a3_systemSetting.GamePanel value2 = a3_systemSetting.GamePanel.mInstance.GetValue();
                GlobleSetting.REFUSE_TEAM_INVITE         = value2.refuseTeamInvite;
                GlobleSetting.IGNORE_PRIVATE_INFO        = value2.ignorePrivateInfo;
                GlobleSetting.IGNORE_KNIGHTAGE_INVITE    = value2.ignorePaladinInvite;
                GlobleSetting.IGNORE_FRIEND_ADD_REMINDER = value2.ignoreAddFirendHint;
                GlobleSetting.IGNORE_OTHER_EFFECT        = value2.ignoreOtherEffect;
                GlobleSetting.IGNORE_OTHER_PLAYER        = value2.ignoreOther;
                GlobleSetting.IGNORE_OTHER_PET           = value2.ignoreOtherPet;
                PlayeLocalInfo.saveInt(PlayeLocalInfo.REFUSE_TEAM_INVITE, GlobleSetting.REFUSE_TEAM_INVITE ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_PRIVATE_INFO, GlobleSetting.IGNORE_PRIVATE_INFO ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE, GlobleSetting.IGNORE_KNIGHTAGE_INVITE ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER, GlobleSetting.IGNORE_FRIEND_ADD_REMINDER ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_EFFECT, GlobleSetting.IGNORE_OTHER_EFFECT ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_PLAYER, GlobleSetting.IGNORE_OTHER_PLAYER ? 1 : 0);
                PlayeLocalInfo.saveInt(PlayeLocalInfo.IGNORE_OTHER_PET, GlobleSetting.IGNORE_OTHER_PET ? 1 : 0);
            }
            InterfaceMgr.getInstance().close(InterfaceMgr.A3_SYSTEM_SETTING);
        }