[Fix] More fixes (#487)
* fix criminal console foobar * fix tts volume * log reputation
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user