public PressButtonView(Button control, Sprite sprite) : base(control) { _control = control; _sprite = sprite; _sprite.DrawMode = _control.DrawMode; _control.HorizontalAlignment = HorizontalAlignment.Left; _control.VerticalAlignment = VerticalAlignment.Top; _control.Margin = new Margin(); _control.Invalidated += UpdateVisual; UpdateVisual(control); }
public TextButtonView(Button control, SpriteFont font) : base(control) { _c = control; _font = font; }
public PressButtonView(Button control, ResourceRef<Texture2D> texture) : this(control, new Sprite(texture)) { }