Example #1
0
        public static void initSystemSetting()
        {
            bool flag = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_SOUND);

            if (flag)
            {
                GlobleSetting.SOUND_ON = (PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_SOUND) > GlobleSetting.minSoundValue);
            }
            else
            {
                GlobleSetting.SOUND_ON = true;
            }
            MediaClient.getInstance().isPlaySound = GlobleSetting.SOUND_ON;
            bool flag2 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_MUSIC);

            if (flag2)
            {
                GlobleSetting.MUSIC_ON = (PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_MUSIC) > GlobleSetting.minMusicValue);
            }
            else
            {
                GlobleSetting.MUSIC_ON = true;
            }
            MediaClient.getInstance().isPlayMusic = GlobleSetting.MUSIC_ON;
            GlobleSetting.initSetting();
        }
 private static void initGameSetting()
 {
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.REFUSE_TEAM_INVITE))
     {
         REFUSE_TEAM_INVITE = PlayeLocalInfo.loadInt(PlayeLocalInfo.REFUSE_TEAM_INVITE) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_PRIVATE_INFO))
     {
         IGNORE_PRIVATE_INFO = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_PRIVATE_INFO) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE))
     {
         IGNORE_KNIGHTAGE_INVITE = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER))
     {
         IGNORE_FRIEND_ADD_REMINDER = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_EFFECT))
     {
         IGNORE_OTHER_EFFECT = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_EFFECT) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_PLAYER))
     {
         IGNORE_OTHER_PLAYER = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_PLAYER) == 1 ? true : false;
     }
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_PET))
     {
         IGNORE_OTHER_PET = PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_PET) == 1 ? true : false;
     }
 }
Example #3
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();
                }
            }
        }
Example #4
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;
        }
Example #5
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;
        }
        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;
        }
        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;
        }
Example #8
0
 public static void initLog()
 {
     if (PlayeLocalInfo.checkKey(PlayeLocalInfo.DEBUG_SHOW))
     {
         show_debug = PlayeLocalInfo.loadInt(PlayeLocalInfo.DEBUG_SHOW) == 1 ? true : false;
     }
     else
     {
         show_debug = true;
     }
 }
Example #9
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);
        }
Example #11
0
        public static int loadInt(string id)
        {
            bool flag = !PlayeLocalInfo.checkKey(id);
            int  result;

            if (flag)
            {
                result = 0;
            }
            else
            {
                result = PlayerPrefs.GetInt(id);
            }
            return(result);
        }
Example #12
0
        private static void initGameSetting()
        {
            bool flag = PlayeLocalInfo.checkKey(PlayeLocalInfo.REFUSE_TEAM_INVITE);

            if (flag)
            {
                GlobleSetting.REFUSE_TEAM_INVITE = (PlayeLocalInfo.loadInt(PlayeLocalInfo.REFUSE_TEAM_INVITE) == 1);
            }
            bool flag2 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_PRIVATE_INFO);

            if (flag2)
            {
                GlobleSetting.IGNORE_PRIVATE_INFO = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_PRIVATE_INFO) == 1);
            }
            bool flag3 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE);

            if (flag3)
            {
                GlobleSetting.IGNORE_KNIGHTAGE_INVITE = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_KNIGHTAGE_INVITE) == 1);
            }
            bool flag4 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER);

            if (flag4)
            {
                GlobleSetting.IGNORE_FRIEND_ADD_REMINDER = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_FRIEND_ADD_REMINDER) == 1);
            }
            bool flag5 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_EFFECT);

            if (flag5)
            {
                GlobleSetting.IGNORE_OTHER_EFFECT = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_EFFECT) == 1);
            }
            bool flag6 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_PLAYER);

            if (flag6)
            {
                GlobleSetting.IGNORE_OTHER_PLAYER = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_PLAYER) == 1);
            }
            bool flag7 = PlayeLocalInfo.checkKey(PlayeLocalInfo.IGNORE_OTHER_PET);

            if (flag7)
            {
                GlobleSetting.IGNORE_OTHER_PET = (PlayeLocalInfo.loadInt(PlayeLocalInfo.IGNORE_OTHER_PET) == 1);
            }
        }
Example #13
0
        public void refresh()
        {
            bool active = this.goUpdate.active;

            if (active)
            {
                base.getGameObjectByPath("login").SetActive(true);
                base.getGameObjectByPath("login").transform.DOScale(0f, 0.3f).From <Tweener>();
            }
            else
            {
                base.getGameObjectByPath("login").SetActive(true);
            }
            this.btChoose.interactable = true;
            int  num  = 0;
            bool flag = PlayeLocalInfo.checkKey(PlayeLocalInfo.LOGIN_SERVER_SID);

            if (flag)
            {
                num = PlayeLocalInfo.loadInt(PlayeLocalInfo.LOGIN_SERVER_SID);
            }
            bool flag2 = num == 0;

            if (flag2)
            {
                bool flag3 = Globle.defServerId != 0;
                if (flag3)
                {
                    num = Globle.defServerId;
                }
                else
                {
                    bool flag4 = Globle.lServer.Count > 0;
                    if (flag4)
                    {
                        num = Globle.lServer[0].sid;
                    }
                }
            }
            this.setServer(num);
            this.serverChanged = false;
        }
Example #14
0
        public void refresh()
        {
            if (goUpdate.active)
            {
                getGameObjectByPath("login").SetActive(true);
                getGameObjectByPath("login").transform.DOScale(0, 0.3f).From();
            }
            else
            {
                getGameObjectByPath("login").SetActive(true);
            }


            btChoose.interactable = true;
            int sid = 0;

            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.LOGIN_SERVER_SID))
            {
                sid = PlayeLocalInfo.loadInt(PlayeLocalInfo.LOGIN_SERVER_SID);
            }

            if (sid == 0)
            {
                //发送给服务器读取服务器缓存sid
                if (Globle.defServerId != 0)
                {
                    sid = Globle.defServerId;
                }
                else if (Globle.lServer.Count > 0)
                {
                    sid = Globle.lServer[0].sid;
                }
            }


            setServer(sid);
            serverChanged = false;
        }
        public override void onShowed()
        {
            //默认选中最新的记录
            List <ServerData> l = Globle.lServer;

            if (l.Count > 0)
            {
                changeArea((l.Count - 1) / 10);
            }

            int sid = 0;

            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.LOGIN_SERVER_SID))
            {
                sid = PlayeLocalInfo.loadInt(PlayeLocalInfo.LOGIN_SERVER_SID);
            }
            last_server.visiable = false;
            if (sid != 0 && Globle.dServer.ContainsKey(sid))
            {
                last_server.setData(Globle.dServer[sid]);
                last_server.visiable = true;
            }
        }
Example #16
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);
        }
        public static void initSystemSetting()
        {
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_SOUND))
            {
                SOUND_ON = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_SOUND) > minSoundValue;
            }
            else
            {
                SOUND_ON = true;
            }
            MediaClient.instance.isPlaySound = SOUND_ON;

            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_MUSIC))
            {
                MUSIC_ON = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_MUSIC) > minMusicValue;
            }
            else
            {
                MUSIC_ON = true;
            }

            MediaClient.instance.isPlayMusic = MUSIC_ON;
            initSetting();
        }
Example #18
0
        private static void initSystem()
        {
            bool flag = PlayeLocalInfo.checkKey(PlayeLocalInfo.VIDEO_QUALITY);

            if (flag)
            {
                SceneCamera.m_fScreenGQ_Level = float.Parse(PlayeLocalInfo.loadString(PlayeLocalInfo.VIDEO_QUALITY));
            }
            bool flag2 = PlayeLocalInfo.checkKey(PlayeLocalInfo.DYNAM_LIGHT);

            if (flag2)
            {
                bool flag3 = PlayeLocalInfo.loadInt(PlayeLocalInfo.DYNAM_LIGHT) != 0;
                if (flag3)
                {
                    SceneCamera.m_nLightGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.DYNAM_LIGHT);
                }
            }
            bool flag4 = PlayeLocalInfo.checkKey(PlayeLocalInfo.ROLE_SHADOW);

            if (flag4)
            {
                bool flag5 = PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW) != 0;
                if (flag5)
                {
                    SceneCamera.m_nShadowGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW);
                }
            }
            bool flag6 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SCENE_DETAIL);

            if (flag6)
            {
                bool flag7 = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL) != 0;
                if (flag7)
                {
                    SceneCamera.m_nSceneGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL);
                }
            }
            bool flag8 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_SOUND);

            if (flag8)
            {
                int   num         = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_SOUND);
                float soundVolume = (float)num / 100f;
                MediaClient.getInstance().setSoundVolume(soundVolume);
            }
            else
            {
                MediaClient.getInstance().setSoundVolume(0.8f);
            }
            bool flag9 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_MUSIC);

            if (flag9)
            {
                int   num2        = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_MUSIC);
                float musicVolume = (float)num2 / 100f;
                MediaClient.getInstance().setMusicVolume(musicVolume);
            }
            else
            {
                MediaClient.getInstance().setMusicVolume(0.8f);
            }
            bool flag10 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SKILL_EFFECT);

            if (flag10)
            {
                int nSkillEff_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SKILL_EFFECT);
                SceneCamera.m_nSkillEff_Level = nSkillEff_Level;
            }
        }
        private static void initSystem()
        {
            //if (PlayeLocalInfo.checkKey(PlayeLocalInfo.VIDEO_QUALITY))
            //{
            //    SceneCamera.m_fScreenGQ_Level = float.Parse(PlayeLocalInfo.loadString(PlayeLocalInfo.VIDEO_QUALITY));
            //}

            //if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SCREEN_RESOLUTION))
            //{
            //    if (PlayeLocalInfo.loadInt(PlayeLocalInfo.SCREEN_RESOLUTION) != 0)
            //        SceneCamera.m_nScreenResolution_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCREEN_RESOLUTION);
            //}

            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.MODEL_DETAIL))
            {
                if (PlayeLocalInfo.loadInt(PlayeLocalInfo.MODEL_DETAIL) != 0)
                {
                    SceneCamera.m_nModelDetail_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.MODEL_DETAIL);
                }
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.FPS_LIMIT))
            {
                if (PlayeLocalInfo.loadInt(PlayeLocalInfo.FPS_LIMIT) != 0)
                {
                    SceneCamera.m_nFPSLimit_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.FPS_LIMIT);
                }
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.ROLE_SHADOW))
            {
                if (PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW) != 0)
                {
                    SceneCamera.m_nShadowAndLightGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW);
                }
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SCENE_DETAIL))
            {
                if (PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL) != 0)
                {
                    SceneCamera.m_nSceneGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL);
                }
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SKILL_EFFECT))
            {
                if (PlayeLocalInfo.loadInt(PlayeLocalInfo.SKILL_EFFECT) != 0)
                {
                    SceneCamera.m_nSkillEff_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SKILL_EFFECT);
                }
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_SOUND))
            {
                int   soundValue = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_SOUND);
                float valuef     = (float)soundValue / 100.0f;
                MediaClient.instance.setSoundVolume(valuef);
            }
            else
            {
                MediaClient.instance.setSoundVolume(0.8f);//设置默认值
            }
            if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_MUSIC))
            {
                int   musicValue = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_MUSIC);
                float valuef     = (float)musicValue / 100.0f;
                MediaClient.instance.setMusicVolume(valuef);
            }
            else
            {
                MediaClient.instance.setMusicVolume(0.8f);//设置默认值
            }
            //if (PlayeLocalInfo.checkKey(PlayeLocalInfo.SCREEN_RESOLUTION))
            //{
            //    int skilleffValue = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCREEN_RESOLUTION);
            //    SceneCamera.m_nSkillEff_Level = skilleffValue;
            //}
        }