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%2F05.%E9%81%B8%E6%9B%B2%2FCActSelectShowCurrentPosition.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%2F05.%E9%81%B8%E6%9B%B2%2FCActSelectShowCurrentPosition.cs;h=0000000000000000000000000000000000000000;hb=4b70e63bc3e2c99e836477240bd5039d41d10640;hp=ef780b50bb575a31da9167baf32ab8b4f695d01e;hpb=296446998eeba408353da55a275458b590e4ebf5;p=dtxmania%2Fdtxmania.git diff --git a/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelectShowCurrentPosition.cs b/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelectShowCurrentPosition.cs deleted file mode 100644 index ef780b50..00000000 --- a/DTXManiaプロジェクト/コード/ステージ/05.選曲/CActSelectShowCurrentPosition.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Drawing; -using System.Diagnostics; -using System.IO; -using SharpDX; -using FDK; - -using Rectangle = System.Drawing.Rectangle; - -namespace DTXMania -{ - internal class CActSelectShowCurrentPosition : CActivity - { - // メソッド - - public CActSelectShowCurrentPosition() - { - base.b活性化してない = true; - } - - // CActivity 実装 - - public override void On活性化() - { - if (this.b活性化してる) - return; - - base.On活性化(); - } - public override void On非活性化() - { - base.On非活性化(); - } - public override void OnManagedリソースの作成() - { - if (!base.b活性化してない) - { - string pathScrollBar = CSkin.Path(@"Graphics\ScreenSelect scrollbar.png"); - string pathScrollPosition = CSkin.Path(@"Graphics\ScreenSelect scrollbar.png"); - if (File.Exists(pathScrollBar)) - { - this.txScrollBar = TextureFactory.tテクスチャの生成(pathScrollBar, false); - } - if (File.Exists(pathScrollPosition)) - { - this.txScrollPosition = TextureFactory.tテクスチャの生成(pathScrollPosition, false); - } - base.OnManagedリソースの作成(); - } - } - public override void OnManagedリソースの解放() - { - if (!base.b活性化してない) - { - TextureFactory.t安全にDisposeする(ref this.txScrollBar); - TextureFactory.t安全にDisposeする(ref this.txScrollPosition); - - base.OnManagedリソースの解放(); - } - } - public override int On進行描画() - { - #region [ スクロールバーの描画 #27648 ] - if (this.txScrollBar != null) - { - for (int sy = 0; sy < (int)(336 * Scale.Y); sy += (int)(128 * Scale.Y)) - { - int ry = (sy / (int)(128 * Scale.Y)); - int h = ((ry + 1) * (int)(128 * Scale.Y) > (int)(336 * Scale.Y)) ? (int)(336 * Scale.Y) - ry * (int)(128 * Scale.Y) : (int)(128 * Scale.Y); - this.txScrollBar.t2D描画( - CDTXMania.Instance.Device, - SampleFramework.GameWindowSize.Width - 12 * Scale.X, - 58 * Scale.Y + sy, - new Rectangle( - (int)(ry * 12 * Scale.X), - 0, - (int)(12 * Scale.X), - h - ) - ); // 本当のy座標は88なんだが、なぜか約30のバイアスが掛かる・・・ - } - } - #endregion - #region [ スクロール地点の描画 (計算はCActSelect曲リストで行う。スクロール位置と選曲項目の同期のため。)#27648 ] - if (this.txScrollPosition != null) - { - int py = CDTXMania.Instance.stage選曲.nスクロールバー相対y座標; - if (py <= 336 * Scale.Y - 6 - 8 && py >= 0) - { - this.txScrollPosition.t2D描画( - CDTXMania.Instance.Device, - SampleFramework.GameWindowSize.Width - (12 - 3) * Scale.X, - 58 * Scale.Y + py, - new Rectangle( - (int)(30 * Scale.X), - (int)(120 * Scale.Y), - (int)(6 * Scale.X), - (int)(8 * Scale.Y) - ) - ); - } - } - #endregion - - return 0; - } - - - // その他 - - #region [ private ] - //----------------- - private CTexture txScrollPosition; - private CTexture txScrollBar; - //----------------- - #endregion - } -}