Exemplo n.º 1
0
 /// <summary>Clones an existing material</summary>
 public Material(Material Prototype)
 {
     this.Color               = Prototype.Color;
     this.EmissiveColor       = Prototype.EmissiveColor;
     this.TransparentColor    = Prototype.TransparentColor;
     this.Flags               = Prototype.Flags;
     this.DaytimeTexture      = Prototype.DaytimeTexture;
     this.NighttimeTexture    = Prototype.NighttimeTexture;
     this.BlendMode           = Prototype.BlendMode;
     this.GlowAttenuationData = Prototype.GlowAttenuationData;
     this.TextColor           = Prototype.TextColor;
     this.BackgroundColor     = Prototype.BackgroundColor;
     this.TextPadding         = Prototype.TextPadding;
     this.Font     = Prototype.Font;
     this.WrapMode = Prototype.WrapMode;
 }
Exemplo n.º 2
0
 /// <summary>Creates a new Material with default properties</summary>
 public Material()
 {
     this.Color               = Color32.White;
     this.EmissiveColor       = Color24.Black;
     this.TransparentColor    = Color24.Black;
     this.Flags               = MaterialFlags.None;
     this.DaytimeTexture      = null;
     this.NighttimeTexture    = null;
     this.BlendMode           = MeshMaterialBlendMode.Normal;
     this.GlowAttenuationData = 0;
     this.TextColor           = System.Drawing.Color.Black;
     this.BackgroundColor     = System.Drawing.Color.White;
     this.TextPadding         = new Vector2(0, 0);
     this.Font     = "Arial";
     this.WrapMode = null;
 }