Esempio n. 1
0
 public Button(Texture2D Texture, Rectangle Rectangle)
 {
     this.Texture   = Texture;
     this.Rectangle = Rectangle;
     type           = ButtonType.Regular;
     Source         = Rectangle;
     Axis           = ColorChangeAxis.A;
 }
Esempio n. 2
0
 public Button(Texture2D Texture, Vector2 Position)
 {
     this.Texture   = Texture;
     this.Rectangle = new Rectangle((int)Position.X, (int)Position.Y, Texture.Width, Texture.Height);
     type           = ButtonType.Regular;
     Source         = Rectangle;
     Axis           = ColorChangeAxis.A;
 }
Esempio n. 3
0
 public Button(Texture2D Texture)
 {
     this.Texture   = Texture;
     this.Rectangle = new Rectangle(0, 0, Texture.Width, Texture.Height);
     type           = ButtonType.Regular;
     Source         = Rectangle;
     Axis           = ColorChangeAxis.A;
 }