OSDN Git Service

#36043 rev.920 で手違いが起きたため、一度 rev.919 に戻し、ファイルを再修正。Ech定義の使用を CChip のプロパティを使うよう一部変更。
[dtxmania/dtxmania.git] / DTXManiaプロジェクト / コード / ステージ / 05.選曲 / CActSelectShowCurrentPosition.cs
index 4fd44c7..c1490a7 100644 (file)
@@ -12,6 +12,7 @@ namespace DTXMania
        internal class CActSelectShowCurrentPosition : CActivity\r
        {\r
                // メソッド\r
+\r
                public CActSelectShowCurrentPosition()\r
                {\r
                        base.b活性化してない = true;\r
@@ -21,7 +22,7 @@ namespace DTXMania
 \r
                public override void On活性化()\r
                {\r
-                       if (this.b活性化してる)\r
+                       if ( this.b活性化してる )\r
                                return;\r
 \r
                        base.On活性化();\r
@@ -32,27 +33,27 @@ namespace DTXMania
                }\r
                public override void OnManagedリソースの作成()\r
                {\r
-                       if (!base.b活性化してない)\r
+                       if ( !base.b活性化してない )\r
                        {\r
-                               string pathScrollBar = CSkin.Path(@"Graphics\ScreenSelect scrollbar.png");\r
-                               string pathScrollPosition = CSkin.Path(@"Graphics\ScreenSelect scrollbar.png");\r
-                               if (File.Exists(pathScrollBar))\r
+                               string pathScrollBar = CSkin.Path( @"Graphics\ScreenSelect scrollbar.png" );\r
+                               string pathScrollPosition = CSkin.Path( @"Graphics\ScreenSelect scrollbar.png" );\r
+                               if ( File.Exists( pathScrollBar ) )\r
                                {\r
-                                       this.txScrollBar = TextureFactory.tテクスチャの生成(pathScrollBar, false);\r
+                                       this.txScrollBar = TextureFactory.tテクスチャの生成( pathScrollBar, false );\r
                                }\r
-                               if (File.Exists(pathScrollPosition))\r
+                               if ( File.Exists( pathScrollPosition ) )\r
                                {\r
-                                       this.txScrollPosition = TextureFactory.tテクスチャの生成(pathScrollPosition, false);\r
+                                       this.txScrollPosition = TextureFactory.tテクスチャの生成( pathScrollPosition, false );\r
                                }\r
                                base.OnManagedリソースの作成();\r
                        }\r
                }\r
                public override void OnManagedリソースの解放()\r
                {\r
-                       if (!base.b活性化してない)\r
+                       if ( !base.b活性化してない )\r
                        {\r
-                               TextureFactory.t安全にDisposeする(ref this.txScrollBar);\r
-                               TextureFactory.t安全にDisposeする(ref this.txScrollPosition);\r
+                               TextureFactory.t安全にDisposeする( ref this.txScrollBar );\r
+                               TextureFactory.t安全にDisposeする( ref this.txScrollPosition );\r
 \r
                                base.OnManagedリソースの解放();\r
                        }\r
@@ -60,15 +61,15 @@ namespace DTXMania
                public override int On進行描画()\r
                {\r
                        #region [ スクロールバーの描画 #27648 ]\r
-                       if (this.txScrollBar != null)\r
+                       if ( this.txScrollBar != null )\r
                        {\r
-                               for (int sy = 0; sy < (int)(336 * Scale.Y); sy += (int)(128 * Scale.Y))\r
+                               for ( int sy = 0; sy < (int)(336 * Scale.Y); sy += (int)(128 * Scale.Y))\r
                                {\r
-                                       int ry = (sy / (int)(128 * Scale.Y));\r
-                                       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);\r
+                                       int ry = ( sy / (int)(128 * Scale.Y) );\r
+                                       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);\r
                                        this.txScrollBar.t2D描画(\r
-                                               CDTXMania.app.Device,\r
-                                               SampleFramework.GameWindowSize.Width - 12 * Scale.X,\r
+                                               CDTXMania.Instance.Device,\r
+                                               SampleFramework.GameWindowSize.Width- 12 * Scale.X,\r
                                                58 * Scale.Y + sy,\r
                                                new Rectangle(\r
                                                        (int)(ry * 12 * Scale.X),\r
@@ -81,13 +82,13 @@ namespace DTXMania
                        }\r
                        #endregion\r
                        #region [ スクロール地点の描画 (計算はCActSelect曲リストで行う。スクロール位置と選曲項目の同期のため。)#27648 ]\r
-                       if (this.txScrollPosition != null)\r
+                       if ( this.txScrollPosition != null )\r
                        {\r
-                               int py = CDTXMania.app.stage選曲.nスクロールバー相対y座標;\r
-                               if (py <= 336 * Scale.Y - 6 - 8 && py >= 0)\r
+                               int py = CDTXMania.Instance.stage選曲.nスクロールバー相対y座標;\r
+                               if ( py <= 336 * Scale.Y - 6 - 8 && py >= 0 )\r
                                {\r
                                        this.txScrollPosition.t2D描画(\r
-                                               CDTXMania.app.Device,\r
+                                               CDTXMania.Instance.Device,\r
                                                SampleFramework.GameWindowSize.Width - (12 - 3) * Scale.X,\r
                                                58 * Scale.Y + py,\r
                                                new Rectangle(\r