예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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));
 }