//Adjust things when resized public override void ParentResized(Vector2 parentDimensions) { //for (int index = 0; index < _children.Count; index++) //{ // GUIElement child = _children[index]; // child.ParentResized(ElementDimensions); //} Position = GUICanvas.UpdateAlignment(Alignment, parentDimensions, Dimensions, Position, OffsetPosition); }
public override void ParentResized(Vector2 dimensions) { Position = GUICanvas.UpdateAlignment(Alignment, dimensions, Dimensions, Position, OffsetPosition); }