コード例 #1
0
ファイル: ImageButton.cs プロジェクト: mugmickey/PoroCYon.MCT
 /// <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);
 }
コード例 #2
0
ファイル: Image.cs プロジェクト: mugmickey/PoroCYon.MCT
 /// <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);
 }
コード例 #3
0
ファイル: ImageButton.cs プロジェクト: mugmickey/PoroCYon.MCT
 /// <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);
 }
コード例 #4
0
ファイル: Image.cs プロジェクト: mugmickey/PoroCYon.MCT
 /// <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);
 }