Ejemplo n.º 1
0
        //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);
        }
Ejemplo n.º 2
0
 public override void ParentResized(Vector2 dimensions)
 {
     Position = GUICanvas.UpdateAlignment(Alignment, dimensions, Dimensions, Position, OffsetPosition);
 }