예제 #1
0
        private bool tリザルト画像の指定があれば構築する()
        {
            int rank = CScoreIni.tCalculateOverallRankValue(CDTXMania.stageResult.stPerformanceEntry.Drums, CDTXMania.stageResult.stPerformanceEntry.Guitar, CDTXMania.stageResult.stPerformanceEntry.Bass);

            if (rank == 99)     // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
            {
                rank = 6;
            }
            if (string.IsNullOrEmpty(CDTXMania.DTX.RESULTIMAGE[rank]))
            {
                return(false);
            }
            CDTXMania.tReleaseTexture(ref this.txリザルト画像);
            this.r表示するリザルト画像 = null;
            string path = CDTXMania.DTX.strFolderName + CDTXMania.DTX.RESULTIMAGE[rank];

            if (!File.Exists(path))
            {
                Trace.TraceWarning("ファイルが存在しません。({0})", new object[] { path });
                return(false);
            }
            this.txリザルト画像    = CDTXMania.tGenerateTexture(path);
            this.r表示するリザルト画像 = this.txリザルト画像;
            return(this.r表示するリザルト画像 != null);
        }
        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                if (CDTXMania.ConfigIni.nJudgeAnimeType == 1)
                {
                    //this.tx判定文字列[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_judge strings.png"));
                    //this.tx判定文字列[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_judge strings.png"));
                    //this.tx判定文字列[2] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_judge strings.png"));
                    //2013.8.2 kairera0467 CStage演奏画面共通側で読み込むテスト。
                }
                else if (CDTXMania.ConfigIni.nJudgeAnimeType == 2)
                {
                }
                else
                {
                    this.tx判定文字列[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay judge strings 1.png"));
                    this.tx判定文字列[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay judge strings 2.png"));
                    this.tx判定文字列[2] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay judge strings 3.png"));
                }

                this.txlag数値 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_lag numbers.png"));
                base.OnManagedCreateResources();
            }
        }
예제 #3
0
        public override void OnActivate()
        {
            #region [ 本体位置 ]
            for (int i = 0; i < 3; i++)
            {
                this.n本体X[i] = 0;
            }

            this.n本体X[0] = 22;
            this.n本体Y    = 250;

            #endregion

            this.prv表示用フォント = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.str曲名表示フォント), 20, FontStyle.Regular);
            this.prv称号フォント  = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.str曲名表示フォント), 12, FontStyle.Regular);
            this.txスキルパネル   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_SkillPanel.png"));
            this.txパネル文字[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Ratenumber_s.png"));
            this.txパネル文字[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Ratenumber_l.png"));
            this.tx難易度パネル   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Difficulty.png"));
            this.tx難易度用数字   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_LevelNumber.png"));
            //Load new textures
            this.txPercent  = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_RatePercent_l.png"));
            this.txSkillMax = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_skill max.png"));

            base.OnActivate();
        }
예제 #4
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.tx火花[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay chip fire red.png"));
         if (this.tx火花[0] != null)
         {
             this.tx火花[0].bAdditiveBlending = true;
         }
         this.tx火花[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay chip fire green.png"));
         if (this.tx火花[1] != null)
         {
             this.tx火花[1].bAdditiveBlending = true;
         }
         this.tx火花[2] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay chip fire blue.png"));
         if (this.tx火花[2] != null)
         {
             this.tx火花[2].bAdditiveBlending = true;
         }
         this.tx火花[3] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay chip fire yellow.png"));
         if (this.tx火花[3] != null)
         {
             this.tx火花[3].bAdditiveBlending = true;
         }
         this.tx火花[4] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay chip fire purple.png"));
         if (this.tx火花[4] != null)
         {
             this.tx火花[4].bAdditiveBlending = true;
         }
         this.txレーンの線 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_guitar line.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #5
0
        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.tx白タイル64x64 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Tile white 64x64.png"), false);
                this.txリザルト画像    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_background.jpg"), false);
                this.txFullCombo = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\\7_FullCombo.png"));
                this.txExcellent = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\\7_Excellent.png"));
                this.tx黒幕        = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\\7_Drums_black.png"));

                this.txボーナス花火 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlayDrums chip star.png"));
                if (this.txボーナス花火 != null)
                {
                    this.txボーナス花火.bAdditiveBlending = true;
                }

                for (int i = 0; i < 16; i++)
                {
                    this.st青い星[i]      = new ST青い星();
                    this.st青い星[i].b使用中 = false;
                    this.st青い星[i].ct進行 = new CCounter();
                }

                base.OnManagedCreateResources();
            }
        }
        private bool tプレビュー画像の指定があれば構築する()
        {
            CScore cスコア = CDTXMania.stageSongSelection.rSelectedScore;

            if ((cスコア == null) || string.IsNullOrEmpty(cスコア.SongInformation.Preimage))
            {
                return(false);
            }
            string str = cスコア.FileInformation.AbsoluteFolderPath + cスコア.SongInformation.Preimage;

            if (!str.Equals(this.str現在のファイル名))
            {
                CDTXMania.tReleaseTexture(ref this.txプレビュー画像);
                this.str現在のファイル名 = str;
                if (!File.Exists(this.str現在のファイル名))
                {
                    Trace.TraceWarning("ファイルが存在しません。({0})", new object[] { this.str現在のファイル名 });
                    return(false);
                }
                this.txプレビュー画像 = CDTXMania.tGenerateTexture(this.str現在のファイル名, false);
                if (this.txプレビュー画像 != null)
                {
                    this.r表示するプレビュー画像 = this.txプレビュー画像;
                }
                else
                {
                    this.r表示するプレビュー画像 = this.txプレビュー画像がないときの画像;
                }
            }
            return(true);
        }
예제 #7
0
        // 2013.02.22 kairera0467
        // ギターのレーンフラッシュの幅は37。

        // CActivity 実装(共通クラスからの差分のみ)

        public override void OnManagedCreateResources()
        {
            this.txLane      = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Paret_Guitar.png"));
            this.txLaneDark  = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Paret_Guitar_Dark.png"));
            this.txLaneFlush = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_guitar line.png"));

            base.OnManagedCreateResources();
        }
예제 #8
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated && !CDTXMania.DTXVmode.Enabled && !CDTXMania.DTX2WAVmode.Enabled)
     {
         this.txScore = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_score numbersGD.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #9
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.tx黒 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Danger.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #10
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txDANGER = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlayGuitar danger.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #11
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txStageFailed = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_stage_failed.jpg"));
         base.OnManagedCreateResources();
     }
 }
예제 #12
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.tx黒タイル64x64 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Tile black 64x64.png"), false);
         base.OnManagedCreateResources();
     }
 }
예제 #13
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.tx背景 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\1_background.jpg"), false);
         base.OnManagedCreateResources();
     }
 }
예제 #14
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txOptionPanel = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Screen option panels.png"), false);
         base.OnManagedCreateResources();
     }
 }
예제 #15
0
        // CActivity 実装

        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.tx数値 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenSelect level numbers.png"));
                base.OnManagedCreateResources();
            }
        }
예제 #16
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txScrollBar = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_scrollbar.png"), false);
         base.OnManagedCreateResources();
     }
 }
        public override void OnActivate()
        {
            #region [ 本体位置 ]
            this.n本体X[0] = 0;
            this.n本体X[1] = 373;
            this.n本体X[2] = 665;
            this.n本体Y    = 254;

            if (!CDTXMania.DTX.bチップがある.Bass)
            {
                if (CDTXMania.ConfigIni.bIsSwappedGuitarBass)
                {
                    this.n本体X[1] = 0;
                }
                else
                {
                    this.n本体X[2] = 0;
                }
            }
            else if (!CDTXMania.DTX.bチップがある.Guitar)
            {
                if (CDTXMania.ConfigIni.bIsSwappedGuitarBass)
                {
                    this.n本体X[2] = 0;
                }
                else
                {
                    this.n本体X[1] = 0;
                }
            }
            else if (CDTXMania.ConfigIni.bGraph有効.Guitar || CDTXMania.ConfigIni.bGraph有効.Bass)
            {
                if (!CDTXMania.ConfigIni.bAllGuitarsAreAutoPlay && CDTXMania.ConfigIni.bAllBassAreAutoPlay)
                {
                    this.n本体X[2] = 0;
                }
                else if (CDTXMania.ConfigIni.bAllGuitarsAreAutoPlay && !CDTXMania.ConfigIni.bAllBassAreAutoPlay)
                {
                    this.n本体X[1] = 0;
                }
            }
            #endregion
            this.strPlayerName = new string[2];
            this.strTitleName  = new string[2];

            this.prv表示用フォント = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.str曲名表示フォント), 20, FontStyle.Regular);
            this.prv称号フォント  = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.str曲名表示フォント), 12, FontStyle.Regular);
            this.txスキルパネル   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_SkillPanel.png"));
            this.txパネル文字[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Ratenumber_s.png"));
            this.txパネル文字[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Ratenumber_l.png"));
            this.tx難易度パネル   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Difficulty.png"));
            this.tx難易度用数字   = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_LevelNumber.png"));
            //Load new textures
            this.txPercent  = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_RatePercent_l.png"));
            this.txSkillMax = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_skill max.png"));

            base.OnActivate();
        }
예제 #18
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txコメントバー = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_comment bar.png"), true);
         this.t選択曲が変更された();
         base.OnManagedCreateResources();
     }
 }
예제 #19
0
        // CActivity 実装

        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.tx通常文字 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Screen font dfp.png"), false);
                this.tx強調文字 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Screen font dfp em.png"), false);
                base.OnManagedCreateResources();
            }
        }
예제 #20
0
        public static void txGenerateProgressBarHelper(ref CTexture txRefProgressBarTexture, string strProgressBar, int nWidth, int nHeight, int nIntervals)
        {
            if (strProgressBar == null)
            {
                return;
            }

            //
            Color[] clBarColors = new Color[4]
            {
                Color.Black,
                Color.DeepSkyBlue,
                Color.Yellow,
                Color.Yellow
            };

            char[] arrProgress = strProgressBar.ToCharArray();
            if (arrProgress.Length == nIntervals)
            {
                using (Bitmap tempBarBitmap = new Bitmap(nWidth, nHeight))
                {
                    using (Graphics barGraphics = Graphics.FromImage(tempBarBitmap))
                    {
                        int nOffsetY = nHeight;
                        for (int i = 0; i < nIntervals; i++)
                        {
                            int nCurrentPosY          = (int)Math.Round((double)nHeight - ((double)i + 1.0) * (double)nHeight / (double)nIntervals);
                            int nCurrentSectionHeight = nOffsetY - nCurrentPosY;
                            nOffsetY = nCurrentPosY;

                            int nColorIndex = (int)(arrProgress[i] - '0');
                            //Handle out of range
                            if (nColorIndex < 0 || nColorIndex > 3)
                            {
                                nColorIndex = 0;
                            }
                            //Draw current section
                            barGraphics.FillRectangle(new SolidBrush(clBarColors[nColorIndex]), 0, nCurrentPosY, tempBarBitmap.Width, nCurrentSectionHeight);
                        }
                    }
                    txRefProgressBarTexture = CDTXMania.tGenerateTexture(tempBarBitmap);
                }
            }
            else
            {
                using (Bitmap tempBarBitmap = new Bitmap(nWidth, nHeight))
                {
                    using (Graphics barGraphics = Graphics.FromImage(tempBarBitmap))
                    {
                        barGraphics.FillRectangle(new SolidBrush(clBarColors[0]), 0, 0, tempBarBitmap.Width, tempBarBitmap.Height);
                    }
                    txRefProgressBarTexture = CDTXMania.tGenerateTexture(tempBarBitmap);
                }

                //CDTXMania.t安全にDisposeする(ref txProgressBarTexture);
            }
        }
예제 #21
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txカーソル        = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenConfig menu cursor.png"), false);
         this.txHitKeyダイアログ = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenConfig hit key to assign dialog.png"), false);
         base.OnManagedCreateResources();
     }
 }
예제 #22
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txパネル本体 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_play history panel.png"), true);
         this.t選択曲が変更された();
         base.OnManagedCreateResources();
     }
 }
예제 #23
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txRGB     = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_RGB buttons.png"));
         this.txShutter = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_shutter_GB.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #24
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txフォント8x16[0] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Console font 8x16.png"));
         this.txフォント8x16[1] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\Console font 2 8x16.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #25
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txWailingBonus = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlay wailing bonus.png"));
         this.txWailingFlush = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_WailingFlush.png"));
         this.txWailingFire  = CDTXMania.tテクスチャの生成Af(CSkin.Path(@"Graphics\7_WailingFire.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #26
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         this.txパッド    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_pads.png"));
         this.tx光るパッド  = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenPlayDrums pads flush.png"));
         this.txボーナス文字 = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_Bonus.png"));
         base.OnManagedCreateResources();
     }
 }
예제 #27
0
        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.txStageCleared = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenResult StageCleared.png"));
                this.txFullCombo    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenResult fullcombo.png"));
                this.txExcellent    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\ScreenResult Excellent.png"));

                for (int j = 0; j < 3; j++)
                {
                    switch (CDTXMania.stageResult.nRankValue[j])
                    {
                    case 0:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankSS.png"));
                        break;

                    case 1:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankS.png"));
                        break;

                    case 2:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankA.png"));
                        break;

                    case 3:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankB.png"));
                        break;

                    case 4:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankC.png"));
                        break;

                    case 5:
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankD.png"));
                        break;

                    case 6:
                    case 99:            // #23534 2010.10.28 yyagi: 演奏チップが0個のときは、rankEと見なす
                        this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankE.png"));
                        if (this.b全オート[j])
                        {
                            this.txランク文字[j] = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\8_rankSS.png"));
                        }
                        break;

                    default:
                        this.txランク文字[j] = null;
                        break;
                    }
                }
                base.OnManagedCreateResources();
            }
        }
예제 #28
0
        public override void OnManagedCreateResources()
        {
            if (!base.bNotActivated)
            {
                this.txBackground  = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_background.jpg"), false);
                this.txTopPanel    = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_header panel.png"), false);
                this.txBottomPanel = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\5_footer panel.png"), false);
                this.prvFontSearchInputNotification = new CPrivateFastFont(new FontFamily(CDTXMania.ConfigIni.str選曲リストフォント), 14, FontStyle.Regular);

                base.OnManagedCreateResources();
            }
        }
예제 #29
0
 public override void OnManagedCreateResources()
 {
     if (!base.bNotActivated)
     {
         string pathパネル本体 = CSkin.Path(@"Graphics\ScreenSelect popup auto settings.png");
         if (File.Exists(pathパネル本体))
         {
             this.txパネル本体 = CDTXMania.tGenerateTexture(pathパネル本体, false);
         }
         base.OnManagedCreateResources();
     }
 }
예제 #30
0
        // CActivity 実装

        public override void OnActivate()
        {
            this.n本体X = 0x1d5;
            this.n本体Y = 0x11b;

            this.ftSongNameFont       = new System.Drawing.Font("Impact", 24f, FontStyle.Regular, GraphicsUnit.Pixel);
            this.ftSongDifficultyFont = new System.Drawing.Font("Impact", 15f, FontStyle.Regular);
            this.ftSongNameFont       = new System.Drawing.Font("DFG平成ゴシック体W7", 21f, FontStyle.Regular, GraphicsUnit.Pixel);
            this.iDrumSpeed           = Image.FromFile(CSkin.Path(@"Graphics\7_panel_icons.jpg"));
            this.txジャケットパネル           = CDTXMania.tGenerateTexture(CSkin.Path(@"Graphics\7_JacketPanel.png"));
            base.OnActivate();
        }