Add area judge precision settings.
This commit is contained in:
@@ -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();
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user