diff --git a/Content.Client/UserInterface/Controls/RecordedSplitContainer.cs b/Content.Client/UserInterface/Controls/RecordedSplitContainer.cs index b255ac15a30..fd217bc7e86 100644 --- a/Content.Client/UserInterface/Controls/RecordedSplitContainer.cs +++ b/Content.Client/UserInterface/Controls/RecordedSplitContainer.cs @@ -1,7 +1,5 @@ using System.Numerics; -using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; -using Robust.Shared.Input; namespace Content.Client.UserInterface.Controls; @@ -10,8 +8,6 @@ namespace Content.Client.UserInterface.Controls; /// public sealed class RecordedSplitContainer : SplitContainer { - public Action? OnSplitResizeFinish; - public double? DesiredSplitCenter; protected override Vector2 ArrangeOverride(Vector2 finalSize) @@ -30,24 +26,4 @@ protected override Vector2 ArrangeOverride(Vector2 finalSize) return base.ArrangeOverride(finalSize); } - - protected override void KeyBindUp(GUIBoundKeyEventArgs args) - { - base.KeyBindUp(args); - - if (args.Function != EngineKeyFunctions.UIClick) - { - return; - } - - if (ChildCount != 2) - { - return; - } - - var first = GetChild(0); - var second = GetChild(1); - - OnSplitResizeFinish?.Invoke(first.Size, second.Size); - } } diff --git a/Content.Client/UserInterface/Screens/SeparatedChatGameScreen.xaml.cs b/Content.Client/UserInterface/Screens/SeparatedChatGameScreen.xaml.cs index 9aef78fd856..41c4a85e7ee 100644 --- a/Content.Client/UserInterface/Screens/SeparatedChatGameScreen.xaml.cs +++ b/Content.Client/UserInterface/Screens/SeparatedChatGameScreen.xaml.cs @@ -24,7 +24,7 @@ public SeparatedChatGameScreen() SetAnchorAndMarginPreset(Hotbar, LayoutPreset.BottomWide, margin: 5); SetAnchorAndMarginPreset(Alerts, LayoutPreset.CenterRight, margin: 10); - ScreenContainer.OnSplitResizeFinish += (first, second) => + ScreenContainer.OnSplitResizeFinished += () => OnChatResized?.Invoke(new Vector2(ScreenContainer.SplitFraction, 0)); }