List of linkable subs in the editor is refreshed after saving a new sub

This commit is contained in:
Regalis
2016-12-14 17:00:09 +02:00
parent a2f19a3b16
commit d7ed27381f
4 changed files with 23 additions and 14 deletions

View File

@@ -103,14 +103,11 @@ namespace Barotrauma
{
GUITextBlock textBlock = new GUITextBlock(new Rectangle(0,0,0,20), text, GUI.Style, listBox);
textBlock.UserData = userData;
}
//int totalHeight = 0;
//foreach (GUIComponent child in listBox.children)
//{
// totalHeight += child.Rect.Height;
//}
//listBox.Rect = new Rectangle(listBox.Rect.X,listBox.Rect.Y,listBox.Rect.Width,totalHeight);
public override void ClearChildren()
{
listBox.ClearChildren();
}
public List<GUIComponent> GetChildren()