1
0
mirror of synced 2025-01-27 08:43:40 +01:00

Add Scene Preset support for TJAs (#478)

This commit is contained in:
DragonRatTiger / リュウコ 2023-08-10 04:41:53 -04:00 committed by GitHub
parent 60eb1cffde
commit 347b3d0077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -1335,6 +1335,8 @@ namespace TJAPlayer3
private int listBalloon_Expert_数値管理;
private int listBalloon_Master_数値管理;
public string scenePreset;
public bool[] b譜面が存在する = new bool[(int)Difficulty.Total];
private string[] dlmtSpace = { " " };
@ -5450,6 +5452,13 @@ namespace TJAPlayer3
this.SELECTBG = strCommandParam;
}
}
else if (strCommandName.Equals("SCENEPRESET"))
{
if (!string.IsNullOrEmpty(strCommandParam))
{
this.scenePreset = strCommandParam;
}
}
else if (strCommandName.Equals("DEMOSTART"))
{
//2015.04.10 kairera0467

View File

@ -145,7 +145,13 @@ namespace TJAPlayer3
&& ((Dictionary<string, DBSkinPreset.SkinScene>)_ps).ContainsKey(TJAPlayer3.stage選曲.r確定された曲.strScenePreset))
? ((Dictionary<string,DBSkinPreset.SkinScene>)_ps)[TJAPlayer3.stage選曲.r確定された曲.strScenePreset]
: null;
if (_ps != null
&& TJAPlayer3.DTX.scenePreset != null
&& ((Dictionary<string, DBSkinPreset.SkinScene>)_ps).ContainsKey(TJAPlayer3.DTX.scenePreset)) // If currently selected song has valid SCENEPRESET metadata within TJA
{
preset = ((Dictionary<string, DBSkinPreset.SkinScene>)_ps)[TJAPlayer3.DTX.scenePreset];
}
Random random = new Random();