public TileButton(CozyTexture texture, Rectangle SourceRect) { PreferredHeight = 32; PreferredWidth = 32; Margin = new Starbound.UI.Thickness(3, 3, 0, 0); Content = new XNAImageResource(texture.Get()); SourcePosition = new Starbound.UI.Vector2(SourceRect.X, SourceRect.Y); SourceSize = new Starbound.UI.Vector2(SourceRect.Width, SourceRect.Height); }