Rewrite property panel to adapt to ruleset config.
This commit is contained in:
@@ -6,7 +6,7 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
|
||||
namespace Cryville.Crtr {
|
||||
public class Settings {
|
||||
[Category("gameplay")]
|
||||
[Range(0f, 10f)][Precision(1)]
|
||||
[Range(0, 10)][Precision(1)]
|
||||
public int AreaJudgePrecision {
|
||||
get {
|
||||
return PlayerPrefs.GetInt("AreaJudgePrecision", 4);
|
||||
@@ -17,7 +17,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(0.01f, 20f)][Step(1f)][Precision(1e-2)]
|
||||
[LogarithmicScale][Range(-4.6, 3)][Step(1)][Precision(1e-2)]
|
||||
public float BackwardClippingDistance {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
|
||||
@@ -73,7 +73,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.02f)][Precision(1e-3)]
|
||||
[Step(0.02)][Precision(1e-3)]
|
||||
public float GraphicalOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("GraphicalOffset", 0);
|
||||
@@ -142,7 +142,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(0.1f, 200f)][Step(1f)][Precision(1e-1)]
|
||||
[LogarithmicScale][Range(-2.3, 6)][Step(1)][Precision(1e-1)]
|
||||
public float RenderDistance {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("RenderDistance", 4);
|
||||
@@ -154,7 +154,7 @@ namespace Cryville.Crtr {
|
||||
|
||||
[Category("graphics")]
|
||||
[Description("The span before the renderer fetches the object data again. Smaller value generates more detailed objects while increasing CPU load. Leave 0 to let the game decides the value automatically.")]
|
||||
[Range(0, 0.1f)][Precision(1e-3)]
|
||||
[Range(0, 0.1)][Precision(1e-3)]
|
||||
public float RenderStep {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("RenderStep", 0f);
|
||||
@@ -165,7 +165,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.1f)][Precision(1e-3)]
|
||||
[Step(0.1)][Precision(1e-3)]
|
||||
public float SoundOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("SoundOffset", 0);
|
||||
@@ -176,7 +176,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("debug")]
|
||||
[Range(0, float.PositiveInfinity)][Step(60f)][Precision(1e-1)]
|
||||
[Range(0, double.PositiveInfinity)][Step(60)][Precision(1e-1)]
|
||||
public float StartOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("StartOffset", 0);
|
||||
@@ -187,7 +187,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(15, 1024)][Step(2f)]
|
||||
[LogarithmicScale][Range(1.15, 3.5)][Step(2)]
|
||||
public int TargetFrameRate {
|
||||
get {
|
||||
return PlayerPrefs.GetInt("TargetFrameRate", 60);
|
||||
|
Reference in New Issue
Block a user