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