Ejemplo n.º 1
0
 public MapTextBuilder Text(string text, LoadedFont font, Color?textColor = null, Color?shadowColor = null, bool?haveShadow = null, MapItemAlignment?alignment = null)
 {
     this.Text(text,
               textColor,
               shadowColor,
               API.Content.Fonts.GetFont(font),
               haveShadow,
               alignment);
     return(this);
 }
Ejemplo n.º 2
0
        public void SetLoadedFont(FontType type, LoadedFont font)
        {
            var name = type.ToString();

            if (name.StartsWith("Gui"))
            {
                name = name.Remove(0, 3);
                Properties.GuiFonts.Default[name] = font;
            }
            else if (name.StartsWith("Map"))
            {
                name = name.Remove(0, 3);
                Properties.MapFonts.Default[name] = font;
            }
        }
Ejemplo n.º 3
0
 public MapTextBuilder(LoadedFont font, Color textColor, Color shadowColor, bool haveShadow, MapItemAlignment alignment)
     : this(API.Content.Fonts.GetFont(font), textColor, shadowColor, haveShadow, alignment)
 {
 }
Ejemplo n.º 4
0
 public SpriteFont GetFont(LoadedFont type)
 {
     return(this.fonts[type]);
 }