From 4f9821ac316862406d2e6fef45a1223cacaeebb0 Mon Sep 17 00:00:00 2001 From: Surani <154987464+Surani1@users.noreply.github.com> Date: Thu, 10 Oct 2024 00:52:55 +0500 Subject: [PATCH] Jukebox update (#2018) * jukebox update start * Dexler pochini * add comments * comment boombox * fix conversations * Update Content.Server/Audio/Jukebox/JukeboxSystem.cs Co-authored-by: Stalen <33173619+stalengd@users.noreply.github.com> --------- Co-authored-by: Stalen <33173619+stalengd@users.noreply.github.com> --- .../Jukebox/JukeboxBoundUserInterface.cs | 9 +++++++++ Content.Client/Audio/Jukebox/JukeboxMenu.xaml | 6 ++++++ .../Audio/Jukebox/JukeboxMenu.xaml.cs | 20 +++++++++++++++++++ Content.Server/Audio/Jukebox/JukeboxSystem.cs | 14 ++++++++++++- .../Audio/Jukebox/JukeboxComponent.cs | 13 ++++++++++++ .../en-US/ss220/jukebox/jukebox-menu.ftl | 1 + .../ru-RU/ss220/jukebox/jukebox-menu.ftl | 1 + 7 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 Resources/Locale/en-US/ss220/jukebox/jukebox-menu.ftl create mode 100644 Resources/Locale/ru-RU/ss220/jukebox/jukebox-menu.ftl diff --git a/Content.Client/Audio/Jukebox/JukeboxBoundUserInterface.cs b/Content.Client/Audio/Jukebox/JukeboxBoundUserInterface.cs index 865dfc478d0680..cd607facc488e5 100644 --- a/Content.Client/Audio/Jukebox/JukeboxBoundUserInterface.cs +++ b/Content.Client/Audio/Jukebox/JukeboxBoundUserInterface.cs @@ -44,6 +44,8 @@ protected override void Open() _menu.OnSongSelected += SelectSong; _menu.SetTime += SetTime; + + _menu.SetGain += SetGain; //ss220-jukebox-tweak-end PopulateMusic(); Reload(); } @@ -97,5 +99,12 @@ public void SetTime(float time) SendMessage(new JukeboxSetTimeMessage(sentTime)); } + + //ss220-jukebox-tweak-begin + public void SetGain(float gain) + { + SendMessage(new JukeboxSetGainMessage(gain)); + } + //ss220-jukebox-tweak-end } diff --git a/Content.Client/Audio/Jukebox/JukeboxMenu.xaml b/Content.Client/Audio/Jukebox/JukeboxMenu.xaml index e8d39a9b119e89..af5f14c6f75c63 100644 --- a/Content.Client/Audio/Jukebox/JukeboxMenu.xaml +++ b/Content.Client/Audio/Jukebox/JukeboxMenu.xaml @@ -3,6 +3,12 @@ + + + +