update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ namespace Ichni
|
||||
{
|
||||
gameSettings = new GameSettings(
|
||||
50, 50, 50, 50,
|
||||
0, 60, 3, false);
|
||||
0, 60, 3, 0, false);
|
||||
}
|
||||
|
||||
gameSettings.ApplyVolume();
|
||||
|
||||
Reference in New Issue
Block a user