public override void OnManagedリソースの作成() { if (!base.b活性化してない) { // フォルダ内を走査してコンボボイスをListに入れていく // 1P、2P コンボボイス for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++) { var currentDir = CSkin.Path(string.Format(@"Sounds\Combo_{0}P\", i + 1)); if (Directory.Exists(currentDir)) { foreach (var item in Directory.GetFiles(currentDir)) { var comboVoice = new CComboVoice(); comboVoice.bFileFound = true; comboVoice.nPlayer = i; comboVoice.strFilePath = item; comboVoice.soundComboVoice = TJAPlayer3.Sound管理.tサウンドを生成する(item, ESoundGroup.Voice); comboVoice.nCombo = int.Parse(Path.GetFileNameWithoutExtension(item)); ListCombo[i].Add(comboVoice); } if (ListCombo[i].Count > 0) { ListCombo[i].Sort(); } } } base.OnManagedリソースの作成(); } }
public override void OnManagedリソースの作成() { if (!base.b活性化してない) { // フォルダ内を走査してコンボボイスをListに入れていく // 1P、2P コンボボイス for (int i = 0; i < TJAPlayer3.ConfigIni.nPlayerCount; i++) { var currentDir = CSkin.Path(string.Format(@"Sounds/Combo_{0}P/", i + 1)); if (Directory.Exists(currentDir)) { foreach (var item in Directory.GetFiles(currentDir)) { var comboVoice = new CComboVoice(); comboVoice.bFileFound = true; comboVoice.nPlayer = i; comboVoice.strFilePath = item; comboVoice.soundComboVoice = TJAPlayer3.SoundManager.tCreateSound(item, ESoundGroup.Voice); if (TJAPlayer3.ConfigIni.nPlayerCount >= 2 && TJAPlayer3.ConfigIni.b2P演奏時のSEの左右) //2020.05.06 Mr-Ojii 左右に出したかったから追加。 { if (i == 0) { comboVoice.soundComboVoice.n位置 = -100; } else { comboVoice.soundComboVoice.n位置 = 100; } } comboVoice.nCombo = int.Parse(Path.GetFileNameWithoutExtension(item)); ListCombo[i].Add(comboVoice); } if (ListCombo[i].Count > 0) { ListCombo[i].Sort(); } } } base.OnManagedリソースの作成(); } }