[Fix] More fixes (#487)

* fix criminal console foobar

* fix tts volume

* log reputation
This commit is contained in:
HitPanda
2023-10-12 22:51:20 +03:00
committed by Aviu00
parent b8d28ceb37
commit 12d304b5af
5 changed files with 50 additions and 7 deletions

View File

@@ -10,7 +10,7 @@
Access="Public"
HorizontalExpand="True"
VerticalExpand="False"
ToolTip="foobar"
ToolTip="{Loc 'criminal-login-in-desc'}"
TooltipDelay="0.25">
<BoxContainer Orientation="Horizontal" >
<TextureRect Access="Public" Name="LIcon"

View File

@@ -100,9 +100,12 @@ public sealed class TTSSystem : EntitySystem
private void OnPlayTTS(PlayTTSEvent ev)
{
var volume = 0f;
if (_volume <= -20f)
return;
var volume = _volume;
if (ev.BoostVolume)
volume = 5f;
volume += 5f;
if (!TryCreateAudioSource(ev.Data, out var source, volume))
return;