diff --git a/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs b/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs index 5c433b2123..fe22791a62 100644 --- a/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs +++ b/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs @@ -41,7 +41,11 @@ namespace Content.Client.CharacterInterface { Orientation = LayoutOrientation.Vertical }; - Contents.AddChild(contentsVBox); + + var mainScrollContainer = new ScrollContainer { }; + mainScrollContainer.AddChild(contentsVBox); + + Contents.AddChild(mainScrollContainer); windowComponents.Sort((a, b) => ((int) a.Priority).CompareTo((int) b.Priority)); foreach (var element in windowComponents) diff --git a/Content.Client/CharacterInterface/CharacterInterfaceSystem.cs b/Content.Client/CharacterInterface/CharacterInterfaceSystem.cs index b92a2c15fa..0d227bd80a 100644 --- a/Content.Client/CharacterInterface/CharacterInterfaceSystem.cs +++ b/Content.Client/CharacterInterface/CharacterInterfaceSystem.cs @@ -48,7 +48,11 @@ namespace Content.Client.CharacterInterface if (comp.UIComponents.Count == 0) return; - comp.Window = new CharacterInterfaceComponent.CharacterWindow(comp.UIComponents); + comp.Window = new CharacterInterfaceComponent.CharacterWindow(comp.UIComponents) + { + SetSize = (545, 400) + }; + comp.Window.OnClose += () => _gameHud.CharacterButtonDown = false; }