Пример #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);
 }
Пример #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;
            }
        }
Пример #3
0
 public MapTextBuilder(LoadedFont font, Color textColor, Color shadowColor, bool haveShadow, MapItemAlignment alignment)
     : this(API.Content.Fonts.GetFont(font), textColor, shadowColor, haveShadow, alignment)
 {
 }
Пример #4
0
 public SpriteFont GetFont(LoadedFont type)
 {
     return(this.fonts[type]);
 }