From 0d3c825c738ed3ccf326e26d2e4952a986f6133c Mon Sep 17 00:00:00 2001 From: Sh1ntra Date: Wed, 12 Jun 2024 21:18:53 +0300 Subject: [PATCH 1/4] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=B7=D1=83=D0=BD=D0=BE=D0=BA=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B1=D1=83=D0=BC=D0=B1=D0=BE=D0=BA=D1=81=D0=B0(?= =?UTF-8?q?=D0=BA=D1=83=D1=87=D0=B0=20=D0=B1=D0=B0=D0=B3=D0=BE=D0=B2,=20ne?= =?UTF-8?q?ed=20fix)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/BoomBox/UI/BoomBoxBoundUi.cs | 8 +++++++- Content.Client/BoomBox/UI/BoomBoxWindow.xaml | 9 ++++++--- .../BoomBox/UI/BoomBoxWindow.xaml.cs | 7 ++++++- Content.Server/BoomBox/BoomBoxComponent.cs | 3 ++- Content.Server/BoomBox/BoomBoxSystem.cs | 16 ++++++++++++---- Content.Shared/BoomBox/SharedBoomBox.cs | 18 ++++++++++++++++-- 6 files changed, 49 insertions(+), 12 deletions(-) diff --git a/Content.Client/BoomBox/UI/BoomBoxBoundUi.cs b/Content.Client/BoomBox/UI/BoomBoxBoundUi.cs index 1144f2c865f..b49009e8320 100644 --- a/Content.Client/BoomBox/UI/BoomBoxBoundUi.cs +++ b/Content.Client/BoomBox/UI/BoomBoxBoundUi.cs @@ -26,6 +26,12 @@ protected override void Open() _window.PlusVolButtonPressed += OnPlusVolButtonPressed; _window.StartButtonPressed += OnStartButtonPressed; _window.StopButtonPressed += OnStopButtonPressed; + _window.PlaybackSliderChanged += OnPlaybackSliderChanged; + } + + private void OnPlaybackSliderChanged(float newPosition) + { + SendMessage(new BoomBoxSetTimeMessage(newPosition)); // Отправка сообщения при изменении ползунка } private void OnMinusVolButtonPressed() @@ -64,4 +70,4 @@ protected override void Dispose(bool disposing) if (disposing) _window?.Dispose(); } -} \ No newline at end of file +} diff --git a/Content.Client/BoomBox/UI/BoomBoxWindow.xaml b/Content.Client/BoomBox/UI/BoomBoxWindow.xaml index fac87372437..e13e9c9b0c2 100644 --- a/Content.Client/BoomBox/UI/BoomBoxWindow.xaml +++ b/Content.Client/BoomBox/UI/BoomBoxWindow.xaml @@ -1,7 +1,7 @@ + MinSize="256 130" + SetSize="256 130">чё