Exemplo n.º 1
0
 public void ReloadSkin()
 {
     for (int i = 0; i < nシステムサウンド数; i++)
     {
         if (!this[i].b排他)                       // BGM系以外のみ読み込む。(BGM系は必要になったときに読み込む)
         {
             Cシステムサウンド cシステムサウンド = this[i];
             if (!CDTXMania.bコンパクトモード || cシステムサウンド.bCompact対象)
             {
                 try
                 {
                     cシステムサウンド.t読み込み();
                     Trace.TraceInformation("システムサウンドを読み込みました。({0})", cシステムサウンド.strファイル名);
                 }
                 catch (FileNotFoundException)
                 {
                     Trace.TraceWarning("システムサウンドが存在しません。({0})", cシステムサウンド.strファイル名);
                 }
                 catch (Exception e)
                 {
                     Trace.TraceError(e.Message);
                     Trace.TraceWarning("システムサウンドの読み込みに失敗しました。({0})", cシステムサウンド.strファイル名);
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Skin(Sounds)を再読込する準備をする(再生停止,Dispose,ファイル名再設定)。
        /// あらかじめstrSkinSubfolderを適切に設定しておくこと。
        /// その後、ReloadSkinPaths()を実行し、strSkinSubfolderの正当性を確認した上で、本メソッドを呼び出すこと。
        /// 本メソッド呼び出し後に、ReloadSkin()を実行することで、システムサウンドを読み込み直す。
        /// ReloadSkin()の内容は本メソッド内に含めないこと。起動時はReloadSkin()相当の処理をCEnumSongsで行っているため。
        /// </summary>
        public void PrepareReloadSkin()
        {
            Trace.TraceInformation("SkinPath設定: {0}",
                                   (strBoxDefSkinSubfolderFullName == "") ?
                                   strSystemSkinSubfolderFullName :
                                   strBoxDefSkinSubfolderFullName
                                   );

            for (int i = 0; i < nシステムサウンド数; i++)
            {
                if (this[i] != null && this[i].b読み込み成功)
                {
                    this[i].t停止する();
                    this[i].Dispose();
                }
            }
            this.soundカーソル移動音      = new Cシステムサウンド(@"Sounds\Move.ogg", false, false, false);
            this.sound決定音          = new Cシステムサウンド(@"Sounds\Decide.ogg", false, false, false);
            this.sound変更音          = new Cシステムサウンド(@"Sounds\Change.ogg", false, false, false);
            this.sound取消音          = new Cシステムサウンド(@"Sounds\Cancel.ogg", false, false, true);
            this.sound歓声音          = new Cシステムサウンド(@"Sounds\Audience.ogg", false, false, true);
            this.soundSTAGEFAILED音 = new Cシステムサウンド(@"Sounds\Stage failed.ogg", false, true, true);
            this.soundゲーム開始音       = new Cシステムサウンド(@"Sounds\Game start.ogg", false, false, false);
            this.soundゲーム終了音       = new Cシステムサウンド(@"Sounds\Game end.ogg", false, true, false);
            this.soundステージクリア音     = new Cシステムサウンド(@"Sounds\Stage clear.ogg", false, true, true);
            this.soundフルコンボ音       = new Cシステムサウンド(@"Sounds\Full combo.ogg", false, false, true);
            this.sound曲読込開始音       = new Cシステムサウンド(@"Sounds\Now loading.ogg", false, true, true);
            this.soundタイトル音        = new Cシステムサウンド(@"Sounds\Title.ogg", false, true, false);
            this.bgm起動画面           = new Cシステムサウンド(@"Sounds\Setup BGM.ogg", true, true, false);
            this.bgmオプション画面        = new Cシステムサウンド(@"Sounds\Option BGM.ogg", true, true, false);
            this.bgmコンフィグ画面        = new Cシステムサウンド(@"Sounds\Config BGM.ogg", true, true, false);
            this.bgm選曲画面           = new Cシステムサウンド(@"Sounds\Select BGM.ogg", true, true, false);

            //this.soundRed               = new Cシステムサウンド( @"Sounds\dong.ogg",            false, false, true  );
            //this.soundBlue              = new Cシステムサウンド( @"Sounds\ka.ogg",              false, false, true  );
            this.soundBalloon = new Cシステムサウンド(@"Sounds\balloon.ogg", false, false, true);
            this.sound曲決定音    = new Cシステムサウンド(@"Sounds\SongDecide.ogg", false, false, true);
            this.sound成績発表    = new Cシステムサウンド(@"Sounds\ResultIn.ogg", false, false, false);

            tReadSkinConfig();
        }