private void SetupController() { float value = (float)this.editOptionList[OptionSetting.bgmKey] / 10f; float value2 = (float)this.editOptionList[OptionSetting.seKey] / 10f; this.bgmSlider.value = value; this.seSlider.value = value2; this.ChangePushNoticeOnOff(this.editOptionList[OptionSetting.pushEventKey] == this.pushNoticeOn, CMD_OptionSettings.PushNoticeType.Event); this.ChangePushNoticeOnOff(this.editOptionList[OptionSetting.pushGashaKey] == this.pushNoticeOn, CMD_OptionSettings.PushNoticeType.Gasha); this.ChangePushNoticeOnOff(this.editOptionList[OptionSetting.pushBuildedKey] == this.pushNoticeOn, CMD_OptionSettings.PushNoticeType.Builded); this.ChangePushNoticeOnOff(this.editOptionList[OptionSetting.pushStaminaMaxKey] == this.pushNoticeOn, CMD_OptionSettings.PushNoticeType.StaminaMax); this.ChangePushNoticeOnOff(this.editOptionList[OptionSetting.pushGardenKey] == this.pushNoticeOn, CMD_OptionSettings.PushNoticeType.Garden); this.language = (OptionSetting.LANGUAGE) this.editOptionList[OptionSetting.languageKey]; this.level_3D = (OptionSetting.LEVEL_3D) this.editOptionList[OptionSetting.graphicsQualityKey]; }
public void SaveOptionSetting(bool IsEventPushNotice, bool IsGachaPushNotice, bool IsBuildedPushNotice, bool IsStaminaMaxPushNotice, bool IsGardenPushNotice, int BgmVolume, int SeVolume, OptionSetting.LANGUAGE Language, OptionSetting.LEVEL_3D Level_3D) { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); this.optionList[OptionSetting.pushEventKey] = ((!IsEventPushNotice) ? 0 : 1); this.optionList[OptionSetting.pushGashaKey] = ((!IsGachaPushNotice) ? 0 : 1); this.optionList[OptionSetting.pushBuildedKey] = ((!IsBuildedPushNotice) ? 0 : 1); this.optionList[OptionSetting.pushStaminaMaxKey] = ((!IsStaminaMaxPushNotice) ? 0 : 1); this.optionList[OptionSetting.pushGardenKey] = ((!IsGardenPushNotice) ? 0 : 1); this.optionList[OptionSetting.bgmKey] = BgmVolume; this.optionList[OptionSetting.seKey] = SeVolume; this.optionList[OptionSetting.languageKey] = (int)Language; this.optionList[OptionSetting.graphicsQualityKey] = (int)Level_3D; this.SaveSoundVolume(); PushNotice.Instance.IsRecieveEndBuildingPushNotice = (this.optionList[OptionSetting.pushBuildedKey] == 1); PushNotice.Instance.IsRecieveStaminaMaxPushNotice = (this.optionList[OptionSetting.pushStaminaMaxKey] == 1); PushNotice.Instance.IsRecieveGardenPushNotice = true; GameWebAPI.RequestUS_RegisterOptionInfo requestUS_RegisterOptionInfo = new GameWebAPI.RequestUS_RegisterOptionInfo { SetSendData = delegate(GameWebAPI.US_Req_RegisterOptionInfo param) { param.optionList = this.optionList; } }; RequestBase request = requestUS_RegisterOptionInfo; if (OptionSetting.< > f__mg$cache0 == null) { OptionSetting.< > f__mg$cache0 = new Action(RestrictionInput.EndLoad); } AppCoroutine.Start(request.Run(OptionSetting.< > f__mg$cache0, null, null), false); }