public SampleButton(double x, double y) { PreferredHeight = 50; PreferredWidth = 150; Margin = new Starbound.UI.Thickness(3, 3, 0, 0); Font = Starbound.UI.Application.ResourceManager.GetResource<Starbound.UI.Resources.IFontResource>("Font"); Background = new Starbound.UI.SBColor(random.NextDouble(), random.NextDouble(), random.NextDouble()); Foreground = new Starbound.UI.SBColor(random.NextDouble(), random.NextDouble(), random.NextDouble()); X = x; Y = y; }
public SampleButton(double x, double y) { PreferredHeight = 50; PreferredWidth = 150; Margin = new Starbound.UI.Thickness(3, 3, 0, 0); Font = Starbound.UI.Application.ResourceManager.GetResource <Starbound.UI.Resources.IFontResource>("Font"); Background = new Starbound.UI.SBColor(random.NextDouble(), random.NextDouble(), random.NextDouble()); Foreground = new Starbound.UI.SBColor(random.NextDouble(), random.NextDouble(), random.NextDouble()); X = x; Y = y; }
public static Microsoft.Xna.Framework.Color ToXNAColor(this Starbound.UI.SBColor color) { return(new Microsoft.Xna.Framework.Color((float)color.R, (float)color.G, (float)color.B, (float)color.A)); }