X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=DTXMania%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%2F%E3%82%B3%E3%83%BC%E3%83%89%2F%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B8%2F07.%E6%BC%94%E5%A5%8F%2FCAct%E6%BC%94%E5%A5%8FDanger%E5%85%B1%E9%80%9A.cs;fp=DTXMania%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%2F%E3%82%B3%E3%83%BC%E3%83%89%2F%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B8%2F07.%E6%BC%94%E5%A5%8F%2FCAct%E6%BC%94%E5%A5%8FDanger%E5%85%B1%E9%80%9A.cs;h=0000000000000000000000000000000000000000;hb=4b70e63bc3e2c99e836477240bd5039d41d10640;hp=b0e7a855477a5fd556f213347dd0d4764ab5272d;hpb=296446998eeba408353da55a275458b590e4ebf5;p=dtxmania%2Fdtxmania.git
diff --git a/DTXManiaããã¸ã§ã¯ã/ã³ã¼ã/ã¹ãã¼ã¸/07.æ¼å¥/CActæ¼å¥Dangerå
±é.cs b/DTXManiaããã¸ã§ã¯ã/ã³ã¼ã/ã¹ãã¼ã¸/07.æ¼å¥/CActæ¼å¥Dangerå
±é.cs
deleted file mode 100644
index b0e7a855..00000000
--- a/DTXManiaããã¸ã§ã¯ã/ã³ã¼ã/ã¹ãã¼ã¸/07.æ¼å¥/CActæ¼å¥Dangerå
±é.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Drawing;
-using FDK;
-using SharpDX;
-
-using Color = System.Drawing.Color;
-
-namespace DTXMania
-{
- internal class CActæ¼å¥Dangerå
±é : CActivity
- {
- private CTextureAf txDANGER;
- private CTexture txRedScreen;
- private bool bDangerä¸;
- // = { false, false, false };
- private CCounter ct移åç¨;
- private CCounter ctéæ度ç¨;
- private const int næ³¢é· = 40;
- private const int néæ度MAX = 180;
- private const int néæ度MIN = 20;
-
- public override void Onæ´»æ§å()
- {
- if (bæ´»æ§åãã¦ãªã)
- {
- bDangerä¸ = false;
- ct移åç¨ = null;
- ctéæåº¦ç¨ = null;
- base.Onæ´»æ§å();
- }
- }
-
- public override void Onéæ´»æ§å()
- {
- if (bæ´»æ§åãã¦ã)
- {
- this.ct移åç¨ = null;
- this.ctéæåº¦ç¨ = null;
- base.Onéæ´»æ§å();
- }
- }
-
- public override void OnManagedãªã½ã¼ã¹ã®ä½æ()
- {
- if (bæ´»æ§åãã¦ã)
- {
- this.txDANGER = TextureFactory.tãã¯ã¹ãã£ã®çæAf(CSkin.Path(@"Graphics\ScreenPlayDrums danger.png"), false);
-
- using ( Bitmap bmp = new Bitmap( SampleFramework.GameWindowSize.Width, SampleFramework.GameWindowSize.Height ) )
- {
- using ( var g = Graphics.FromImage( bmp ) )
- {
- using ( var brush = new SolidBrush( Color.Red ) )
- {
- g.FillRectangle( brush, 0, 0, bmp.Width, bmp.Height );
- }
- }
- this.txRedScreen = TextureFactory.tãã¯ã¹ãã£ã®çæ( bmp );
- }
-
-
- base.OnManagedãªã½ã¼ã¹ã®ä½æ();
- }
- }
-
- public override void OnManagedãªã½ã¼ã¹ã®è§£æ¾()
- {
- if (bæ´»æ§åãã¦ã)
- {
- TextureFactory.tãã¯ã¹ãã£ã®è§£æ¾(ref this.txRedScreen);
- TextureFactory.tãã¯ã¹ãã£ã®è§£æ¾(ref this.txDANGER);
- base.OnManagedãªã½ã¼ã¹ã®è§£æ¾();
- }
- }
-
- ///
- /// DANGERæç»
- ///
- /// DrumsãDangerãªãtrue
- /// GuitarãDangerãªãtrue
- /// BassãDangerãªãtrue
- ///
- public int té²è¡æç»(bool isDanger)
- {
- if (bæ´»æ§åãã¦ã)
- {
- if (!isDanger)
- {
- bDangerä¸ = false;
- return 0;
- }
- if (!bDangerä¸)
- {
- this.ct移åç¨ = new CCounter(0, 0x7f, 7, CDTXMania.Instance.Timer);
- this.ctéæåº¦ç¨ = new CCounter(0, 0x167, 4, CDTXMania.Instance.Timer);
- }
- bDangerä¸ = isDanger;
- this.ct移åç¨.té²è¡Loop();
- this.ctéæ度ç¨.té²è¡Loop();
- if (!bDangerä¸)
- {
- return 0;
- }
- int num = this.ctéæ度ç¨.nç¾å¨ã®å¤;
- if ( txRedScreen != null )
- {
- this.txRedScreen.néæ度 = ( ( ( num < 180 ) ? num : ( 360 - num ) ) * 256 / 180) / 3 ;
- this.txRedScreen.t2Dæç»( CDTXMania.Instance.Device, 0, 0 );
- }
- if ( this.txDANGER != null )
- {
- this.txDANGER.néæ度 = 60 + ((num < 180) ? num : (360 - num));
- }
- num = this.ct移åç¨.nç¾å¨ã®å¤;
- int num2 = CDTXMania.Instance.ConfigIni.bReverse.Drums ? (0x7f - num) : num;
- for (int i = -1; i < 4; i++)
- {
- if (this.txDANGER != null)
- {
- //float d = (CDTXMania.Instance.ConfigIni.eãã©ã ã¬ã¼ã³è¡¨ç¤ºä½ç½® == Eãã©ã ã¬ã¼ã³è¡¨ç¤ºä½ç½®.Left) ? 1.0f : 0.75f;
- //this.txDANGER.vcæ¡å¤§ç¸®å°åç = new Vector3(d, d, d);
- int y = (int)(((i * 0x80) + num2) * Scale.Y);
- this.txDANGER.t2Dæç»(CDTXMania.Instance.Device,
- CDTXMania.Instance.Coordinates.Danger.Min, y);
- this.txDANGER.t2Dæç»(CDTXMania.Instance.Device,
- CDTXMania.Instance.Coordinates.Danger.Max, y);
- }
- }
- }
- return 0;
- }
-
- }
-}