This commit is contained in:
SoulliesOfficial
2025-08-22 14:54:40 -04:00
parent 6aa498f6be
commit 70b2a43824
574 changed files with 173713 additions and 1884 deletions

View File

@@ -18,6 +18,8 @@ namespace Ichni
public int resolutionLevel = 3;
public int beatmapOffset = 0;
public int languageIndex = 0;
public bool debugMode = false;
@@ -27,7 +29,7 @@ namespace Ichni
}
public GameSettings(int masterVolume, int musicVolume, int soundEffectVolume, int uiVolume,
int beatmapOffset, int targetFrame, int resolutionLevel, bool debugMode)
int beatmapOffset, int targetFrame, int resolutionLevel, int languageIndex, bool debugMode)
{
this.masterVolume = masterVolume;
this.musicVolume = musicVolume;
@@ -36,6 +38,7 @@ namespace Ichni
this.beatmapOffset = beatmapOffset;
this.targetFrame = targetFrame;
this.resolutionLevel = resolutionLevel;
this.languageIndex = languageIndex;
this.debugMode = debugMode;
}
@@ -53,5 +56,11 @@ namespace Ichni
UniversalRenderPipelineAsset currentUrpAsset = GraphicsSettings.renderPipelineAsset as UniversalRenderPipelineAsset;
currentUrpAsset.renderScale = 0.7f + 0.1f * resolutionLevel;
}
public void ApplyLanguage()
{
I2.Loc.LocalizationManager.CurrentLanguage = MenuManager.instance.languageList[languageIndex];
I2.Loc.LocalizationManager.UpdateSources();
}
}
}

View File

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