public override void OnManagedリソースの解放()
        {
            if (!base.b活性化してない)
            {
                TJAPlayer4.t安全にDisposeする(ref this.txScrollBar);
                TJAPlayer4.t安全にDisposeする(ref this.txScrollPosition);

                base.OnManagedリソースの解放();
            }
        }
Exemple #2
0
 public override void OnManagedリソースの解放()
 {
     if (!base.b活性化してない)
     {
         //CDTXMania.tテクスチャの解放( ref this.txPopupMenuBackground );
         //CDTXMania.tテクスチャの解放( ref this.txCursor );
         TJAPlayer4.t安全にDisposeする(ref this.prvFont);
     }
     base.OnManagedリソースの解放();
 }
Exemple #3
0
 public override void On非活性化()
 {
     TJAPlayer4.t安全にDisposeする(ref this.ct上背景FIFOタイマー);
     for (int i = 0; i < 2; i++)
     {
         ct上背景スクロール用タイマー[i] = null;
     }
     TJAPlayer4.t安全にDisposeする(ref this.ct下背景スクロール用タイマー1);
     base.On非活性化();
 }
Exemple #4
0
        public override void OnManagedリソースの解放()
        {
            if (this.b活性化してない)
            {
                return;
            }

            //CDTXMania.t安全にDisposeする( ref this.txDialogNowEnumeratingSongs );
            //CDTXMania.t安全にDisposeする( ref this.txNowEnumeratingSongs );
            TJAPlayer4.t安全にDisposeする(ref this.txMessage);
            base.OnManagedリソースの解放();
        }
        public override void OnManagedリソースの解放()
        {
            if (!base.b活性化してない)
            {
                TJAPlayer4.t安全にDisposeする(ref this.pfMusicName);
                TJAPlayer4.tテクスチャの解放(ref this.txMusicName);

                TJAPlayer4.t安全にDisposeする(ref this.pfStageText);
                TJAPlayer4.tテクスチャの解放(ref this.txStageText);
                base.OnManagedリソースの解放();
            }
        }
 public override void OnManagedリソースの解放()
 {
     if (!base.b活性化してない)
     {
         TJAPlayer4.tテクスチャの解放(ref this.txPanel);
         TJAPlayer4.tテクスチャの解放(ref this.txMusicName);
         TJAPlayer4.tテクスチャの解放(ref this.txGENRE);
         TJAPlayer4.tテクスチャの解放(ref this.txPanel);
         TJAPlayer4.tテクスチャの解放(ref this.tx歌詞テクスチャ);
         TJAPlayer4.t安全にDisposeする(ref this.pfMusicName);
         TJAPlayer4.t安全にDisposeする(ref this.pf歌詞フォント);
         base.OnManagedリソースの解放();
     }
 }
Exemple #7
0
 public override void On非活性化()
 {
     Trace.TraceInformation("曲読み込みステージを非活性化します。");
     Trace.Indent();
     try
     {
         TJAPlayer4.t安全にDisposeする(ref this.pfTITLE);
         TJAPlayer4.t安全にDisposeする(ref this.pfSUBTITLE);
         base.On非活性化();
     }
     finally
     {
         Trace.TraceInformation("曲読み込みステージの非活性化を完了しました。");
         Trace.Unindent();
     }
 }
Exemple #8
0
        public override void OnManagedリソースの解放()
        {
            if (this.b活性化してない)
            {
                return;
            }

            TJAPlayer4.tテクスチャの解放(ref this.tx背景);
            TJAPlayer4.tテクスチャの解放(ref this.txヘッダー);
            TJAPlayer4.tテクスチャの解放(ref this.txフッター);

            TJAPlayer4.tテクスチャの解放(ref this.tx説明背景);
            TJAPlayer4.tテクスチャの解放(ref this.tx説明1);

            TJAPlayer4.t安全にDisposeする(ref this.soundSelectAnnounce);

            for (int i = 0; i < (int)Difficulty.Total; i++)
            {
                TJAPlayer4.tテクスチャの解放(ref this.tx踏み台[i]);
            }

            base.OnManagedリソースの解放();
        }
Exemple #9
0
        public void tReset()
        {
            if (this.dsBGV != null)
            {
                if (this.dsBGV.dshow != null)
                {
                    this.dsBGV.dshow.MediaSeeking.SetPositions(
                        DsLong.FromInt64((long)(0)),
                        AMSeekingSeekingFlags.AbsolutePositioning,
                        null,
                        AMSeekingSeekingFlags.NoPositioning);
                    this.dsBGV.dshow.MediaCtrl.Stop();
                }
            }
            if (this.tx描画用 != null && this.tx窓描画用 != null)
            {
                //2016.12.22 kairera0467 解放→生成というのもどうなのだろうか...
                TJAPlayer4.t安全にDisposeする(ref this.tx描画用);
                TJAPlayer4.t安全にDisposeする(ref this.tx窓描画用);

                this.tx描画用  = new CTexture(TJAPlayer4.app.Device, 1280, 720, TJAPlayer4.app.GraphicsDeviceManager.CurrentSettings.BackBufferFormat, Pool.Managed);
                this.tx窓描画用 = new CTexture(TJAPlayer4.app.Device, 1280, 720, TJAPlayer4.app.GraphicsDeviceManager.CurrentSettings.BackBufferFormat, Pool.Managed);
            }
        }
Exemple #10
0
 public override void On非活性化()
 {
     TJAPlayer4.t安全にDisposeする(ref this.ct分岐アニメ進行);
     base.On非活性化();
 }
Exemple #11
0
        public override void OnManagedリソースの作成()
        {
            if (this.b活性化してない)
            {
                return;
            }
            //string pathNowEnumeratingSongs = CSkin.Path( @"Graphics\ScreenTitle NowEnumeratingSongs.png" );
            //if ( File.Exists( pathNowEnumeratingSongs ) )
            //{
            //	this.txNowEnumeratingSongs = CDTXMania.tテクスチャの生成( pathNowEnumeratingSongs, false );
            //}
            //else
            //{
            //	this.txNowEnumeratingSongs = null;
            //}
            //string pathDialogNowEnumeratingSongs = CSkin.Path( @"Graphics\ScreenConfig NowEnumeratingSongs.png" );
            //if ( File.Exists( pathDialogNowEnumeratingSongs ) )
            //{
            //	this.txDialogNowEnumeratingSongs = CDTXMania.tテクスチャの生成( pathDialogNowEnumeratingSongs, false );
            //}
            //else
            //{
            //	this.txDialogNowEnumeratingSongs = null;
            //}

            try
            {
                System.Drawing.Font ftMessage  = new System.Drawing.Font("MS UI Gothic", 40f, FontStyle.Bold, GraphicsUnit.Pixel);
                string[]            strMessage =
                {
                    "     曲データの一覧を\n       取得しています。\n   しばらくお待ちください。",
                    " Now enumerating songs.\n         Please wait..."
                };
                int ci = (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ja") ? 0 : 1;
                if ((strMessage != null) && (strMessage.Length > 0))
                {
                    Bitmap   image    = new Bitmap(1, 1);
                    Graphics graphics = Graphics.FromImage(image);
                    SizeF    ef       = graphics.MeasureString(strMessage[ci], ftMessage);
                    Size     size     = new Size((int)Math.Ceiling((double)ef.Width), (int)Math.Ceiling((double)ef.Height));
                    graphics.Dispose();
                    image.Dispose();
                    image    = new Bitmap(size.Width, size.Height);
                    graphics = Graphics.FromImage(image);
                    graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
                    graphics.DrawString(strMessage[ci], ftMessage, Brushes.White, (float)0f, (float)0f);
                    graphics.Dispose();
                    this.txMessage          = new CTexture(TJAPlayer4.app.Device, image, TJAPlayer4.TextureFormat);
                    this.txMessage.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);
                    image.Dispose();
                    TJAPlayer4.t安全にDisposeする(ref ftMessage);
                }
                else
                {
                    this.txMessage = null;
                }
            }
            catch (CTextureCreateFailedException e)
            {
                Trace.TraceError("テクスチャの生成に失敗しました。(txMessage)");
                Trace.TraceError(e.ToString());
                Trace.TraceError("例外が発生しましたが処理を継続します。 (761b726d-d27c-470d-be0b-a702971601b5)");
                this.txMessage = null;
            }

            base.OnManagedリソースの作成();
        }