public Button(Texture2D Texture, Rectangle Rectangle) { this.Texture = Texture; this.Rectangle = Rectangle; type = ButtonType.Regular; Source = Rectangle; Axis = ColorChangeAxis.A; }
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; }
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; }