public ImageTextButton(string text, string basic, string hover, string press, Transform2 transform, Action onClick, Func <bool> isVisible) : base(transform.ToRectangle()) { _isVisible = isVisible; _button = new ImageButton(basic, hover, press, transform, onClick, _isVisible); _label = new Label { BackgroundColor = Color.Transparent, Text = text, Transform = transform.WithPadding(8, 8), TextColor = Color.White }; }