This commit is contained in:
SoulliesOfficial
2026-02-13 09:19:55 -05:00
parent 4fe6ee5f99
commit 0109878661
27 changed files with 1055 additions and 27 deletions

View File

@@ -278,7 +278,12 @@ namespace Ichni.RhythmGame
{
return;
}
if (SettingsManager.instance.gameSettings.autoPlay)
{
if (isFirstJudged) ExecuteProcessJudge();
}
if (isHolding)
{
holdingTime = songTime - exactJudgeTime;
@@ -321,6 +326,14 @@ namespace Ichni.RhythmGame
e.UpdateEffect(exactJudgeTime);
}
if (SettingsManager.instance.gameSettings.autoPlay)
{
if (!isFirstJudged && GameManager.instance.songTime >= exactJudgeTime)
{
ExecuteStartJudge();
}
}
if (isFirstJudged && songTime > holdEndTime)
{
isHolding = false;

View File

@@ -137,7 +137,6 @@ namespace Ichni.RhythmGame
}*/
SetJudgeArea();
//SetJudgeRankText();
foreach (EffectBase e in noteVisual.effectSubmodule.effectCollection["Generate"])
@@ -153,6 +152,14 @@ namespace Ichni.RhythmGame
isFinalJudged = true;
RemoveFromCheckingList();
}
if (SettingsManager.instance.gameSettings.autoPlay)
{
if (!isFirstJudged && GameManager.instance.songTime >= exactJudgeTime)
{
ExecuteStartJudge();
}
}
}
protected virtual NoteJudgeType GetStartJudgeType(float timeDifference)

View File

@@ -23,6 +23,7 @@ namespace Ichni
public bool debugMode = false;
public bool judgeType = false;
public bool autoPlay = false;
public GameSettings()
{
@@ -30,7 +31,8 @@ namespace Ichni
}
public GameSettings(int masterVolume, int musicVolume, int soundEffectVolume, int uiVolume,
int beatmapOffset, int targetFrame, int resolutionLevel, int languageIndex, bool debugMode, bool judgeType)
int beatmapOffset, int targetFrame, int resolutionLevel, int languageIndex, bool debugMode,
bool judgeType, bool autoPlay)
{
this.masterVolume = masterVolume;
this.musicVolume = musicVolume;
@@ -42,6 +44,7 @@ namespace Ichni
this.languageIndex = languageIndex;
this.debugMode = debugMode;
this.judgeType = judgeType;
this.autoPlay = autoPlay;
}
public void ApplyVolume()

View File

@@ -50,7 +50,7 @@ namespace Ichni
{
gameSettings = new GameSettings(
50, 50, 50, 50,
0, 60, 3, 0, false, false);
0, 60, 3, 0, false, false, false);
}
gameSettings.ApplyVolume();

View File

@@ -9,6 +9,7 @@ namespace Ichni.Menu
{
public Switch debugModeSwitch;
public Switch judgeTypeSwitch;
public Switch autoPlaySwitch;
public override void Initialize()
{
@@ -23,12 +24,19 @@ namespace Ichni.Menu
{
gameSettings.judgeType = judgeTypeSwitch.GetValue();
};
autoPlaySwitch.SetUp(gameSettings.autoPlay, "Menu UI/Settings_Auto_Play");
autoPlaySwitch.updateValueAction = () =>
{
gameSettings.autoPlay = autoPlaySwitch.GetValue();
};
}
public override void SetValuesFromSettings()
{
debugModeSwitch.SetValue(gameSettings.debugMode);
judgeTypeSwitch.SetValue(gameSettings.judgeType);
autoPlaySwitch.SetValue(gameSettings.autoPlay);
}
}
}