Add area judge precision settings.

This commit is contained in:
2023-05-14 10:46:32 +08:00
parent c41d41c881
commit 959d07b0a9
2 changed files with 13 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ namespace Cryville.Crtr {
public static float graphicalOffset = 0;
public static float soundOffset = 0;
static float startOffset = 0;
public static int areaJudgePrecision = 16;
public static float sv = 16f;
public static Dictionary<Identifier, MotionRegistry> motionRegistry;
@@ -373,6 +374,7 @@ namespace Cryville.Crtr {
graphicalOffset = Settings.Default.GraphicalOffset;
soundOffset = Settings.Default.SoundOffset;
startOffset = Settings.Default.StartOffset;
areaJudgePrecision = 1 << Settings.Default.AreaJudgePrecision;
forceSyncFrames = Settings.Default.ForceSyncFrames;
texloaddone = false;
Game.NetworkTaskWorker.SuspendBackgroundTasks();

View File

@@ -5,6 +5,17 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
namespace Cryville.Crtr {
public class Settings {
[Category("gameplay")]
[Range(0f, 10f)][Precision(1)]
public int AreaJudgePrecision {
get {
return PlayerPrefs.GetInt("AreaJudgePrecision", 4);
}
set {
PlayerPrefs.SetInt("AreaJudgePrecision", value);
}
}
[Category("graphics")]
[LogarithmicScale][Range(0.01f, 20f)][Step(1f)][Precision(1e-2)]
public float BackwardClippingDistance {