public TextAnim(Loc loc, string text, FontSheet font) { EffectLoc = loc; Text = text; finished = false; UsedFont = font; mapLoc = new Loc(EffectLoc.X * GraphicsManager.TileSize, EffectLoc.Y * GraphicsManager.TileSize); }
private static FontSheet LoadFont(string prefix) { using (FileStream fileStream = File.OpenRead(String.Format(FONT_PATTERN, prefix))) { using (BinaryReader reader = new BinaryReader(fileStream)) { FontSheet font = FontSheet.Load(reader); return(font); } } }