Skip to content

Commit

Permalink
Последние фиксы (вроде)
Browse files Browse the repository at this point in the history
  • Loading branch information
FaDeOkno committed Aug 12, 2024
1 parent e93fb21 commit 6a49285
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ private void OnTtsVolumeChanged(float volume)

private void OnPlayTTS(PlayTTSEvent ev)
{
if (_cfg.GetCVar(ADTCCVars.ReplaceTTSWithBarks) == true)
return;

_sawmill.Verbose($"Play TTS audio {ev.Data.Length} bytes from {ev.SourceUid} entity");

var filePath = new ResPath($"{_fileIdx++}.ogg");

if (_cfg.GetCVar(ADTCCVars.ReplaceTTSWithBarks) == true)
return;

// Languages TTS support start
var player = _playerManager.LocalSession?.AttachedEntity;
if (player != null)
Expand Down
6 changes: 4 additions & 2 deletions Content.Client/Options/UI/Tabs/AudioTab.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
<!-- Corvax-TTS-Start --><ui:OptionSlider Name="SliderVolumeTts" Title="{Loc 'ui-options-tts-volume'}" /><!-- Corvax-TTS-End -->
<!-- ADT Barks start -->
<ui:OptionSlider Name="SliderVolumeBarks" Title="{Loc 'ui-options-barks-volume'}" />
<ui:OptionDropDown Name="DropDownBarksOrTTS" Title="{Loc 'ui-options-barks-or-tts'}" />
<!-- ADT Barks end -->
<ui:OptionSlider Name="SliderVolumeMidi" Title="{Loc 'ui-options-midi-volume'}" />
<ui:OptionSlider Name="SliderVolumeAmbientMusic" Title="{Loc 'ui-options-ambient-music-volume'}" />
<ui:OptionSlider Name="SliderVolumeAmbience" Title="{Loc 'ui-options-ambience-volume'}" />
<ui:OptionSlider Name="SliderVolumeLobby" Title="{Loc 'ui-options-lobby-volume'}" />
<ui:OptionSlider Name="SliderVolumeInterface" Title="{Loc 'ui-options-interface-volume'}" />
<ui:OptionSlider Name="SliderMaxAmbienceSounds" Title="{Loc 'ui-options-ambience-max-sounds'}"
<ui:OptionSlider Name="SliderMaxAmbienceSounds" Title="{Loc 'ui-options-ambience-max-sounds'}" />
<!-- ADT Barks start -->
<ui:OptionDropDown Name="DropDownBarksOrTTS" Title="{Loc 'ui-options-barks-or-tts'}"
Margin="0 0 0 8" />
<!-- ADT Barks end -->
<CheckBox Name="LobbyMusicCheckBox" Text="{Loc 'ui-options-lobby-music'}" />
<CheckBox Name="RestartSoundsCheckBox" Text="{Loc 'ui-options-restart-sounds'}" />
<CheckBox Name="EventMusicCheckBox" Text="{Loc 'ui-options-event-music'}" />
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/ADT/CCVar/ADTCCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public sealed class ADTCCVars
CVarDef.Create("barks.replace_tts", true, CVar.CLIENTONLY | CVar.ARCHIVE);

public static readonly CVarDef<float> BarksVolume =
CVarDef.Create("barks.volume", 0f, CVar.CLIENTONLY | CVar.ARCHIVE);
CVarDef.Create("barks.volume", 1f, CVar.CLIENTONLY | CVar.ARCHIVE);

}

0 comments on commit 6a49285

Please sign in to comment.