public MapTextureText(MapTexture texture, MapText text, int textSpacing = 2) { this.texture = texture; this.text = text; this.textSpacing = textSpacing; this.AutoTextAlignment = true; }
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); }