示例#1
0
        private void OnResourcePackPreLoadCompleted(Image <Rgba32> fontBitmap, List <char> bitmapCharacters)
        {
            UIThreadQueue.Enqueue(() =>
            {
                var scalar = fontBitmap.Width / 128;
                Font       = new BitmapFont(GraphicsDevice, fontBitmap, 16, bitmapCharacters);

                GuiManager.ApplyFont(Font);
            });
        }
示例#2
0
        private void OnResourcePackPreLoadCompleted(Bitmap fontBitmap, List <char> bitmapCharacters)
        {
            Font = new BitmapFont(GraphicsDevice, fontBitmap, 16, bitmapCharacters);

            GuiManager.ApplyFont(Font);
        }
示例#3
0
文件: Alex.cs 项目: wqd1019dqw/Alex
        private void OnResourcePackPreLoadCompleted(IFont font)
        {
            Font = font;

            GuiManager.ApplyFont(font);
        }