コード例 #1
0
ファイル: CStage終了.cs プロジェクト: smallghost/TJAP2fPC
 public override void OnManagedリソースの作成()
 {
     if (!base.b活性化してない)
     {
         this.tx文字  = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\9_text.png"));
         this.tx文字2 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\9_text.png"));
         this.tx文字3 = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\9_text.png"));
         this.tx背景  = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\9_background.jpg"), false);
         this.tx白   = CDTXMania.tテクスチャの生成(CSkin.Path(@"Graphics\Tile white 64x64.png"), false);
         this.ds背景  = CDTXMania.t失敗してもスキップ可能なDirectShowを生成する(CSkin.Path(@"Graphics\9_background.mp4"), CDTXMania.app.WindowHandle, true);
         base.OnManagedリソースの作成();
     }
 }
コード例 #2
0
        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.ds背景動画       = CDTXMania.t失敗してもスキップ可能なDirectShowを生成する(CSkin.Path(@"Graphics\8_background.mp4"), CDTXMania.app.WindowHandle, true);
                this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background.jpg"));
                switch (CDTXMania.stageResult.n総合ランク値)
                {
                case 0:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankSS.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankSS.png"));
                    }
                    break;

                case 1:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankS.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankS.png"));
                    }
                    break;

                case 2:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankA.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankA.png"));
                    }
                    break;

                case 3:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankB.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankB.png"));
                    }
                    break;

                case 4:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankC.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankC.png"));
                    }
                    break;

                case 5:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankD.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankD.png"));
                    }
                    break;

                case 6:
                case 99:
                    if (File.Exists(CSkin.Path(@"Graphics\8_background rankE.png")))
                    {
                        this.txBackground = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background rankE.png"));
                    }
                    break;
                }
                this.txTopPanel    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_header panel.png"), true);
                this.txBottomPanel = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_footer panel.png"), true);
                base.OnManagedCreateResources();
            }
        }