void Start() { // Post start message PostMessage(startupMessage); // Load spell icon collection spellIconCollection = new SpellIconCollection(); // Set version text versionFont = new DaggerfallFontPlus(Resources.Load <Texture2D>("Kingthings-Petrock-Light-PixelFont"), 16, 16, 32); versionText = string.Format("{0} {1} {2}", VersionInfo.DaggerfallUnityProductName, VersionInfo.DaggerfallUnityStatus, VersionInfo.DaggerfallUnityVersion); versionTextWidth = versionFont.GetCharacterWidth(versionText, -1, versionTextScale); }
public DaggerfallFontPlus GetHQPixelFont(HQPixelFonts pixelFont) { switch (pixelFont) { case HQPixelFonts.Petrock_32: if (fontPetrock32 == null) { fontPetrock32 = new DaggerfallFontPlus(Resources.Load <Texture2D>("Kingthings-Petrock-Light-PixelFont"), 16, 16, 32); } return(fontPetrock32); } return(null); }