Exemplo n.º 1
0
 public override void Render()
 {
     SpriteMain.Begin(SpriteFlags.AlphaBlend);
     SpriteMain.Draw2D(TextureObjectDictionary["MenuBackground"], 0.625f, 0.0f, new PointF(320f, 240f), byte.MaxValue);
     DXFont.DrawString(SpriteMain.sprite, "ver 1.00", 560, 460, Color.Black);
     SpriteMain.End();
     Background3D.Show();
     SpriteMain.Begin(SpriteFlags.AlphaBlend);
     DeviceMain.SetRenderState(RenderState.SourceBlend, 5);
     DeviceMain.SetRenderState(RenderState.DestinationBlend, 2);
     Background2.Show(true);
     SpriteMain.End();
     SpriteMain.Begin(SpriteFlags.AlphaBlend);
     Background2.Show(false);
     EffectList.ForEach(x => {
         if (x.Active)
         {
             return;
         }
         x.Show();
     });
     StageData.MenuGroupList.ForEach(x => x.Show());
     SpriteMain.End();
     SpriteMain.Begin(SpriteFlags.AlphaBlend);
     DeviceMain.SetRenderState(RenderState.SourceBlend, 5);
     DeviceMain.SetRenderState(RenderState.DestinationBlend, 2);
     EffectList.ForEach(x => {
         if (!x.Active)
         {
             return;
         }
         x.Show();
     });
     SpriteMain.End();
     Particle3D.Show();
     if (TimeMain >= 126)
     {
         return;
     }
     GlobalData.ScreenTexMan.Begin();
     GlobalData.LastState.Render();
     GlobalData.ScreenTexMan.End();
     SpriteMain.Begin(SpriteFlags.AlphaBlend);
     GlobalData.SpriteMain.Draw2D(GlobalData.ScreenTexMan.RenderTexture, new Point(0, 0), 0.0f, new PointF(0.0f, 0.0f), Color.FromArgb(byte.MaxValue - TimeMain * 2, Color.White));
     SpriteMain.End();
 }