public void ReloadSkin() { for (int i = 0; i < nシステムサウンド数; i++) { if (!this[i].bExclusive) // BGM系以外のみ読み込む。(BGM系は必要になったときに読み込む) { CSystemSound cシステムサウンド = this[i]; if (!CDTXMania.bCompactMode || cシステムサウンド.bCompact対象) { try { cシステムサウンド.tRead(); Trace.TraceInformation("システムサウンドを読み込みました。({0})", cシステムサウンド.strFilename); } catch (FileNotFoundException) { Trace.TraceWarning("システムサウンドが存在しません。({0})", cシステムサウンド.strFilename); } catch (Exception e) { Trace.TraceError(e.Message); Trace.TraceWarning("システムサウンドの読み込みに失敗しました。({0})", cシステムサウンド.strFilename); } } } } }
/// <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.soundCursorMovement = new CSystemSound(@"Sounds\Move.ogg", false, false, false); this.soundDecide = new CSystemSound(@"Sounds\Decide.ogg", false, false, false); this.soundChange = new CSystemSound(@"Sounds\Change.ogg", false, false, false); this.soundCancel = new CSystemSound(@"Sounds\Cancel.ogg", false, false, true); this.soundAudience = new CSystemSound(@"Sounds\Audience.ogg", false, false, true); this.soundSTAGEFAILED音 = new CSystemSound(@"Sounds\Stage failed.ogg", false, true, true); this.soundGameStart = new CSystemSound(@"Sounds\Game start.ogg", false, false, false); this.soundGameEnd = new CSystemSound(@"Sounds\Game end.ogg", false, true, false); this.soundStageClear = new CSystemSound(@"Sounds\Stage clear.ogg", false, true, false); this.soundFullCombo = new CSystemSound(@"Sounds\Full combo.ogg", false, false, true); this.soundNewRecord = new CSystemSound(@"Sounds\New Record.ogg", false, false, true); this.soundExcellent = new CSystemSound(@"Sounds\Excellent.ogg", false, false, true); this.soundNowLoading = new CSystemSound(@"Sounds\Now loading.ogg", false, true, true); this.soundTitle = new CSystemSound(@"Sounds\Title.ogg", false, true, false); this.soundDecideSong = new CSystemSound(@"Sounds\MusicDecide.ogg", false, false, false); this.soundNovice = new CSystemSound(@"Sounds\Novice.ogg", false, false, false); this.soundRegular = new CSystemSound(@"Sounds\Regular.ogg", false, false, false); this.soundExpert = new CSystemSound(@"Sounds\Expert.ogg", false, false, false); this.soundBasic = new CSystemSound(@"Sounds\Basic.ogg", false, false, false); this.soundAdvanced = new CSystemSound(@"Sounds\Advanced.ogg", false, false, false); this.soundExtreme = new CSystemSound(@"Sounds\Extreme.ogg", false, false, false); this.soundMaster = new CSystemSound(@"Sounds\Master.ogg", false, false, false); this.soundSelectMusic = new CSystemSound(@"Sounds\SelectMusic.ogg", false, false, false); this.bgm起動画面 = new CSystemSound(@"Sounds\Setup BGM.ogg", true, true, false); this.bgmオプション画面 = new CSystemSound(@"Sounds\Option BGM.ogg", true, true, false); this.bgmコンフィグ画面 = new CSystemSound(@"Sounds\Config BGM.ogg", true, true, false); this.bgm選曲画面 = new CSystemSound(@"Sounds\Select BGM.ogg", true, true, false); this.bgm結果画面 = new CSystemSound(@"Sounds\Result BGM.ogg", true, true, false); }