Exemple #1
0
 public MapTextureText(MapTexture texture, MapText text, int textSpacing = 2)
 {
     this.texture           = texture;
     this.text              = text;
     this.textSpacing       = textSpacing;
     this.AutoTextAlignment = true;
 }
Exemple #2
0
        public object Clone()
        {
            var item = new MapTexture
            {
                KeyColor          = this.KeyColor,
                Position          = (PositionDefinition)this.Position.Clone(),
                PositionAlignment = this.PositionAlignment,
                Texture           = this.Texture
            };

            if (this.size != default(Vector2))
            {
                item.size = this.size;
            }
            return(item);
        }