Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }