/// <summary> /// Creates a new instance of the ImageButton class /// </summary> /// <param name="gif">The picture of the ImageButton</param> public ImageButton(AnimatedGif gif) : base() { Picture = new ImageUnion(null, gif); }
/// <summary> /// Creates a new instance of the Image class /// </summary> /// <param name="image">The picture of the Image, as an AnimatedGif</param> public Image(AnimatedGif image) : base() { Picture = new ImageUnion(null, image); }
/// <summary> /// Creates a new instance of the ImageButton class /// </summary> /// <param name="tex">The picture of the ImageButton</param> public ImageButton(Texture2D tex) : base() { Picture = new ImageUnion(tex, null); }
/// <summary> /// Creates a new instance of the Image class /// </summary> /// <param name="image">The picture of the Image, as a Texture2D</param> public Image(Texture2D image) : base() { Picture = new ImageUnion(image, null); }