Make CharacterWindow bigger to accomodate traitor objectives (#5850)

* Move MinSize to the same place where the window is created

* Adds BoxContainer to a ScrollContainer so it can resize in case of more objectives

* Slight adjustment to ensure the convention is followed

* Changes MinSize to SetSize so it can be resized to lower sizes and to stop it resizing every time you reopen it
This commit is contained in:
Júlio César Ueti
2021-12-20 22:30:12 -03:00
committed by GitHub
parent b5a78073ef
commit bd5e642045
2 changed files with 10 additions and 2 deletions

View File

@@ -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)