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);
        }
Exemple #2
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);
        }