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..0b5fb520a9a 100644 --- a/Content.Client/BoomBox/UI/BoomBoxWindow.xaml +++ b/Content.Client/BoomBox/UI/BoomBoxWindow.xaml @@ -1,7 +1,7 @@ + MinSize="280 130" + SetSize="280 130">