Esempio n. 1
0
 /// <summary>
 ///     The post reset event.
 /// </summary>
 /// <param name="args">The event args.</param>
 private static void OnPostReset(EventArgs args)
 {
     Font.OnResetDevice();
     FontBold.OnResetDevice();
     FontBoldItalic.OnResetDevice();
     FontItalic.OnResetDevice();
 }
Esempio n. 2
0
        private void Drawing_OnPostReset(EventArgs args)
        {
            if (Font == null || Font.IsDisposed)
            {
                return;
            }

            Font?.OnResetDevice();
        }
Esempio n. 3
0
        /// <summary>
        ///     Loads this instance.
        /// </summary>
        public void Load()
        {
            Font = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
            {
                FaceName        = "Tahoma", Height = this.Menu.Item("FontSize").GetValue <Slider>().Value,
                OutputPrecision = FontPrecision.Default, Quality = FontQuality.Antialiased
            });

            Drawing.OnEndScene  += this.Drawing_OnEndScene;
            Drawing.OnPreReset  += args => { Font.OnLostDevice(); };
            Drawing.OnPostReset += args => { Font.OnResetDevice(); };
        }
Esempio n. 4
0
        /// <summary>
        ///     Loads this instance.
        /// </summary>
        public void Load()
        {
            Font = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Tahoma",
                    Height = 30,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.Default
                });

            GameObject.OnCreate += this.OnGameObjectCreate;
            GameObject.OnDelete += this.OnGameObjectDelete;
            Drawing.OnEndScene += this.OnDrawingEndScene;

            Drawing.OnPreReset += args => { Font.OnLostDevice(); };
            Drawing.OnPostReset += args => { Font.OnResetDevice(); };
        }
Esempio n. 5
0
 static void Drawing_OnPostReset(EventArgs args)
 {
     S.OnResetDevice();
     RecF.OnResetDevice();
 }
Esempio n. 6
0
 void Drawing_OnPostReset(EventArgs args)
 {
     Text.OnResetDevice();
 }
Esempio n. 7
0
        /// <summary>
        ///     Loads this instance.
        /// </summary>
        public void Load()
        {
            Font = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Tahoma",
                    Height = getSliderItem("FontSize"),
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.Default
                });

            Drawing.OnEndScene += this.Drawing_OnEndScene;
            Drawing.OnPreReset += args => { Font.OnLostDevice(); };
            Drawing.OnPostReset += args => { Font.OnResetDevice(); };
        }
Esempio n. 8
0
 private static void DrawingOnOnPostReset(EventArgs args)
 {
     Text.OnResetDevice();
     TextLittle.OnResetDevice();
 }
Esempio n. 9
0
 private void Drawing_OnPostReset(EventArgs args)
 {
     Dispose();
     Font?.OnResetDevice();
 }
Esempio n. 10
0
 /// <summary>
 /// Fired after the DirectX device has been reset.
 /// </summary>
 /// <param name="args">The <see cref="EventArgs"/> instance containing the event data.</param>
 private static void DrawingOnOnPostReset(EventArgs args)
 {
     sprite.OnResetDevice();
     Text.OnResetDevice();
     BoxLine.OnResetDevice();
 }
Esempio n. 11
0
 private static void Drawing_OnPostReset(EventArgs args)
 {
     text.OnResetDevice();
 }
Esempio n. 12
0
 private static void DrawingOnOnPostReset(EventArgs args)
 {
     TextStatus.OnResetDevice();
 }
Esempio n. 13
0
 private static void DrawingOnPostReset(EventArgs args)
 {
     //Game.PrintChat("DrawingOnPostReset");
     Text.OnResetDevice();
     Sprite.OnResetDevice();
 }