//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.Value = settings.GameVolume; m_musicVolumeSlider.Value = settings.MusicVolume; m_hudWarnings.IsChecked = settings.HudWarnings; m_enableVoiceChat.IsChecked = settings.EnableVoiceChat; }
static void UpdateValues(MyGuiScreenOptionsAudioSettings settings) { /*if (settings.MusicVolume > 0f) * { * MyAudio.Static.VolumeMusic = MathHelper.Clamp(MathHelper.InterpLog((float)settings.MusicVolume, 0.01f, 1f), 0.01f, 1f); * } * else * { * MyAudio.Static.VolumeMusic = 0f; * } * if (settings.GameVolume > 0f) * { * MyAudio.Static.VolumeGame = MathHelper.Clamp(MathHelper.InterpLog((float)settings.GameVolume, 0.01f, 1f), 0.01f, 1f); * } * else * { * MyAudio.Static.VolumeGame = 0f; * }*/ MyAudio.Static.VolumeGame = settings.GameVolume; MyAudio.Static.VolumeMusic = settings.MusicVolume; MyAudio.Static.VolumeVoiceChat = settings.VoiceChatVolume; MyAudio.Static.VolumeHud = MyAudio.Static.VolumeGame; MyAudio.Static.EnableVoiceChat = settings.EnableVoiceChat; MyGuiAudio.HudWarnings = settings.HudWarnings; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { /*if (MySandboxGame.Config.MusicVolume > 0f) * { * settings.MusicVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.MusicVolume, 0.01f, 1f), 0.01f, 1f); * } * else * { * settings.MusicVolume = 0f; * } * if (MySandboxGame.Config.GameVolume > 0f) * { * settings.GameVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.GameVolume, 0.01f, 1f), 0.01f, 1f); * } * else * { * settings.GameVolume = 0f; * }*/ settings.GameVolume = MySandboxGame.Config.GameVolume; settings.MusicVolume = MySandboxGame.Config.MusicVolume; settings.VoiceChatVolume = MySandboxGame.Config.VoiceChatVolume; settings.HudWarnings = MySandboxGame.Config.HudWarnings; settings.EnableVoiceChat = MySandboxGame.Config.EnableVoiceChat; settings.EnableMuteWhenNotInFocus = MySandboxGame.Config.EnableMuteWhenNotInFocus; settings.EnableReverb = MySandboxGame.Config.EnableReverb; settings.EnableDynamicMusic = MySandboxGame.Config.EnableDynamicMusic; settings.ShipSoundsAreBasedOnSpeed = MySandboxGame.Config.ShipSoundsAreBasedOnSpeed; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { settings.GameVolume = MySandboxGame.Config.GameVolume; settings.MusicVolume = MySandboxGame.Config.MusicVolume; settings.HudWarnings = MySandboxGame.Config.HudWarnings; settings.EnableVoiceChat = MySandboxGame.Config.EnableVoiceChat; }
static void UpdateValues(MyGuiScreenOptionsAudioSettings settings) { MyAudio.Static.VolumeMusic = settings.MusicVolume; MyAudio.Static.VolumeGame = settings.GameVolume; MyAudio.Static.VolumeHud = settings.GameVolume; MyGuiAudio.HudWarnings = settings.HudWarnings; }
//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.Value = settings.GameVolume; m_musicVolumeSlider.Value = settings.MusicVolume; m_voiceChatVolumeSlider.Value = settings.VoiceChatVolume; m_hudWarnings.IsChecked = settings.HudWarnings; m_enableVoiceChat.IsChecked = settings.EnableVoiceChat; m_enableMuteWhenNotInFocus.IsChecked = settings.EnableMuteWhenNotInFocus; m_enableDynamicMusic.IsChecked = settings.EnableDynamicMusic; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { if (MySandboxGame.Config.MusicVolume > 0f) { settings.MusicVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.MusicVolume, 0.01f, 1f), 0.01f, 1f); } else { settings.MusicVolume = 0f; } if (MySandboxGame.Config.GameVolume > 0f) { settings.GameVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.GameVolume, 0.01f, 1f), 0.01f, 1f); } else { settings.GameVolume = 0f; } settings.VoiceChatVolume = MySandboxGame.Config.VoiceChatVolume; settings.HudWarnings = MySandboxGame.Config.HudWarnings; settings.EnableVoiceChat = MySandboxGame.Config.EnableVoiceChat; settings.EnableMuteWhenNotInFocus = MySandboxGame.Config.EnableMuteWhenNotInFocus; }
//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.Value = settings.GameVolume; m_musicVolumeSlider.Value = settings.MusicVolume; m_voiceChatVolumeSlider.Value = settings.VoiceChatVolume; m_hudWarnings.IsChecked = settings.HudWarnings; m_enableVoiceChat.IsChecked = settings.EnableVoiceChat; m_enableMuteWhenNotInFocus.IsChecked = settings.EnableMuteWhenNotInFocus; }
static void UpdateValues(MyGuiScreenOptionsAudioSettings settings) { /*if (settings.MusicVolume > 0f) { MyAudio.Static.VolumeMusic = MathHelper.Clamp(MathHelper.InterpLog((float)settings.MusicVolume, 0.01f, 1f), 0.01f, 1f); } else { MyAudio.Static.VolumeMusic = 0f; } if (settings.GameVolume > 0f) { MyAudio.Static.VolumeGame = MathHelper.Clamp(MathHelper.InterpLog((float)settings.GameVolume, 0.01f, 1f), 0.01f, 1f); } else { MyAudio.Static.VolumeGame = 0f; }*/ MyAudio.Static.VolumeGame = settings.GameVolume; MyAudio.Static.VolumeMusic = settings.MusicVolume; MyAudio.Static.VolumeVoiceChat = settings.VoiceChatVolume; MyAudio.Static.VolumeHud = MyAudio.Static.VolumeGame; MyAudio.Static.EnableVoiceChat = settings.EnableVoiceChat; MyGuiAudio.HudWarnings = settings.HudWarnings; }
//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.Value = settings.GameVolume; m_musicVolumeSlider.Value = settings.MusicVolume; m_voiceChatVolumeSlider.Value = settings.VoiceChatVolume; m_hudWarnings.IsChecked = settings.HudWarnings; m_enableVoiceChat.IsChecked = settings.EnableVoiceChat; m_enableMuteWhenNotInFocus.IsChecked = settings.EnableMuteWhenNotInFocus; m_enableDynamicMusic.IsChecked = settings.EnableDynamicMusic; m_shipSoundsAreBasedOnSpeed.IsChecked = settings.ShipSoundsAreBasedOnSpeed; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { /*if (MySandboxGame.Config.MusicVolume > 0f) { settings.MusicVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.MusicVolume, 0.01f, 1f), 0.01f, 1f); } else { settings.MusicVolume = 0f; } if (MySandboxGame.Config.GameVolume > 0f) { settings.GameVolume = MathHelper.Clamp(MathHelper.InterpLogInv((float)MySandboxGame.Config.GameVolume, 0.01f, 1f), 0.01f, 1f); } else { settings.GameVolume = 0f; }*/ settings.GameVolume = MySandboxGame.Config.GameVolume; settings.MusicVolume = MySandboxGame.Config.MusicVolume; settings.VoiceChatVolume = MySandboxGame.Config.VoiceChatVolume; settings.HudWarnings = MySandboxGame.Config.HudWarnings; settings.EnableVoiceChat = MySandboxGame.Config.EnableVoiceChat; settings.EnableMuteWhenNotInFocus = MySandboxGame.Config.EnableMuteWhenNotInFocus; settings.EnableDynamicMusic = MySandboxGame.Config.EnableDynamicMusic; settings.ShipSoundsAreBasedOnSpeed = MySandboxGame.Config.ShipSoundsAreBasedOnSpeed; }
static void UpdateValues(MyGuiScreenOptionsAudioSettings settings) { MyAudio.Static.VolumeMusic = settings.MusicVolume; MyAudio.Static.VolumeGame = settings.GameVolume; MyAudio.Static.VolumeHud = settings.GameVolume; MyGuiAudio.HudWarnings = settings.HudWarnings; }
//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.Value = settings.GameVolume; m_musicVolumeSlider.Value = settings.MusicVolume; m_hudWarnings.IsChecked = settings.HudWarnings; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { settings.GameVolume = MySandboxGame.Config.GameVolume; settings.MusicVolume = MySandboxGame.Config.MusicVolume; settings.HudWarnings = MySandboxGame.Config.HudWarnings; }
void UpdateFromConfig(MyGuiScreenOptionsAudioSettings settings) { m_settingsOld.GameVolume = MyConfig.GameVolume; m_settingsOld.MusicVolume = MyConfig.MusicVolume; }
static void UpdateValues(MyGuiScreenOptionsAudioSettings settings) { MyAudio.VolumeMusic = settings.MusicVolume; MyAudio.VolumeGame = settings.GameVolume; MyAudio.VolumeGui = settings.GameVolume; }
//void UpdateSettings(MyGuiScreenOptionsVideoSettings settings) //{ // settings.AspectRatio = (MyAspectRatioEnum)m_aspectRationCombobox.GetSelectedKey(); //} void UpdateControls(MyGuiScreenOptionsAudioSettings settings) { m_gameVolumeSlider.SetValue(settings.GameVolume); m_musicVolumeSlider.SetValue(settings.MusicVolume); }