Fixed child rects not being updated when modifying GUIButton or GUITickBox rects

This commit is contained in:
Regalis
2016-10-09 14:17:22 +03:00
parent b09eebc9c2
commit 39c31b10f5
2 changed files with 4 additions and 2 deletions

View File

@@ -124,9 +124,10 @@ namespace Barotrauma
}
set
{
base.Rect = value;
frame.Rect = new Rectangle(value.X, value.Y, frame.Rect.Width, frame.Rect.Height);
textBlock.Rect = value;
rect = value;
}
}

View File

@@ -48,9 +48,10 @@ namespace Barotrauma
}
set
{
base.Rect = value;
box.Rect = new Rectangle(value.X,value.Y,box.Rect.Width,box.Rect.Height);
text.Rect = new Rectangle(box.Rect.Right + 10, box.Rect.Y + 2, 20, box.Rect.Height);
rect = value;
}
}