コード例 #1
0
 /// <summary>
 /// Positions a sprite relatively to the bottom-center of its parent.
 /// Values are pixels to move away from the parent.
 /// </summary>
 /// <param name="sprite"></param>
 /// <param name="pixelsFromBottom">Pixels from bottom - positive values places the sprite closer to the top</param>
 /// <param name="pixelsFromLeft">Pixels from left - positive values places the sprite closer to the right</param>
 public static void pixelsFromBottom(this IPositionable sprite, int pixelsFromBottom, int pixelsFromLeft)
 {
     sprite.pixelsFromBottom(pixelsFromBottom, pixelsFromLeft, UIyAnchor.Bottom, UIxAnchor.Center);
 }