예제 #1
0
 public override void Show()
 {
     if (TxtureObject2 != null)
     {
         SpriteMain.Draw2D(TxtureObject2, ScaleWidth, ScaleLength, (float)(Direction - Math.PI / 2.0 + Angle), Position, Color.FromArgb(TransparentValue, ColorValue), Mirrored);
     }
     base.Show();
 }
예제 #2
0
 public override void Show()
 {
     if (TxtureObject == null)
     {
         return;
     }
     SpriteMain.Draw2D(TxtureObject, 1f, 0.0f, OriginalPosition, Color.FromArgb(TransparentValue, Color.White));
 }
예제 #3
0
 public override void Show()
 {
     if (TxtureObject == null)
     {
         return;
     }
     SpriteMain.Draw2D(TxtureObject.TXTure, TxtureObject.PosRect, new SizeF(TxtureObject.Width * ScaleWidth, TxtureObject.Height * ScaleLength), new PointF(TxtureObject.Width / 2, 0.0f), (float)(Direction - Math.PI / 2.0 + Angle), Position, Color.FromArgb(TransparentValue, ColorValue));
 }
예제 #4
0
 public override void Show()
 {
     if (Boss == null || TxtureObject == null)
     {
         return;
     }
     SpriteMain.Draw2D(TxtureObject, ScaleWidth, ScaleLength, (float)(Direction - Math.PI / 2.0 + Angle), OriginalPosition, Color.FromArgb(TransparentValue, ColorValue), Mirrored);
 }
예제 #5
0
 public override void Show()
 {
     if (TxtureObject == null)
     {
         return;
     }
     SpriteMain.Draw2D(TextureObjectDictionary["border" + type + "1"], 1f, 0.0f, OriginalPosition, Color.FromArgb(TransparentValue, Color.White));
     int           num1      = TxtureObject.Height * MyPlane.StarPoint / MyPlane.maxStarPoint;
     int           height    = num1 > 1 ? num1 : 1;
     Size          size1     = new Size(TxtureObject.Width, height);
     Rectangle     rectangle = new Rectangle();
     ref Rectangle local     = ref rectangle;
예제 #6
0
파일: SubPlane_Reimu.cs 프로젝트: THSJF/sjf
        public override void Show()
        {
            if (!Enabled || TxtureObject == null)
            {
                return;
            }
            double num = -Time * 5 % 360 * Math.PI / 180.0;

            if (MyPlane.Power >= 400)
            {
                SpriteMain.Draw2D(TxtureObject, 1.3f, 1.3f, -(float)num, Position, Color.FromArgb(TransparentValue * 6 / 10, ColorValue), this.Mirrored);
            }
            SpriteMain.Draw2D(TxtureObject, ScaleWidth, ScaleLength, (float)num, Position, Color.FromArgb(TransparentValue, ColorValue), Mirrored);
        }
예제 #7
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();
 }
예제 #8
0
        public void DrawText(string text, PointF Pos)
        {
            text = text.Replace("\t", "    ");
            text = text.Replace("\r\n", string.Empty);
            int num = 0;

            char[] charArray = text.ToCharArray();
            for (int index = 0; index < charArray.Length; ++index)
            {
                PointF position = new PointF(Pos.X + 5f + num, Pos.Y + 9f);
                if (TextureObjectDictionary.ContainsKey(charArray[index].ToString()))
                {
                    SpriteMain.Draw2D(TextureObjectDictionary[charArray[index].ToString()], 1f, 0.0f, position, Color.FromArgb(TransparentValue, ColorValue));
                }
                num += 11;
                if (charArray[index] == '.')
                {
                    num -= 6;
                }
            }
        }
예제 #9
0
 public override void ShowRegion() => SpriteMain.Draw2D(TextureObjectDictionary["Region"], (TxtureObject.Width - 64) * 1f / TextureObjectDictionary["Region"].Width * ScaleWidth, TxtureObject.Height * 1f / TextureObjectDictionary["Region"].Height * ScaleLength, (float)(Direction - Math.PI / 2.0 + Angle), Position, Color.White, Mirrored);
예제 #10
0
 public override void Show() => SpriteMain.Draw2D(TxtureObject, 1f, 0.0f, OriginalPosition, TxtureObject.LeftTop, Color.FromArgb(TransparentValue, Color.Black));
예제 #11
0
        public override void Show()
        {
            SizeF destinationSize = new SizeF(TxtureObject.Width * Scale, TxtureObject.Height * Scale);

            SpriteMain.Draw2D(TxtureObject.TXTure, TxtureObject.PosRect, destinationSize, TxtureObject.RotatingCenter, 0.0f, Position, Color.FromArgb(TransparentValue, Active ? Color.White : Color.Gray));
        }
예제 #12
0
 public override void Show()
 {
     base.Show();
     SpriteMain.Draw2D(TextureObjectDictionary["bullet50_3"], (float)(ScaleWidth * 0.129999995231628 / 0.0399999991059303), (float)(ScaleLength * 0.129999995231628 / 0.0399999991059303), 0.0f, Position, Color.FromArgb(76, ColorValue), Mirrored);
 }