Rearrange the categories of the settings.
This commit is contained in:
@@ -5,6 +5,14 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
|
||||
|
||||
namespace Cryville.Crtr {
|
||||
public class Settings {
|
||||
static readonly Settings _default = new Settings();
|
||||
[Browsable(false)]
|
||||
public static Settings Default {
|
||||
get {
|
||||
return _default;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Range(0, 10)][Precision(1)]
|
||||
public int AreaJudgePrecision {
|
||||
@@ -16,35 +24,6 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(-4.6, 3)][Step(1)][Precision(1e-2)]
|
||||
public float BackwardClippingDistance {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("BackwardClippingDistance", value);
|
||||
}
|
||||
}
|
||||
|
||||
static readonly Settings _default = new Settings();
|
||||
[Browsable(false)]
|
||||
public static Settings Default {
|
||||
get {
|
||||
return _default;
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
public bool DisableGC {
|
||||
get {
|
||||
return PlayerPrefs.GetInt("DisableGC", 1) == 1;
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetInt("DisableGC", value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Range(-1, 30)]
|
||||
public int ForceSyncFrames {
|
||||
@@ -56,6 +35,49 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.02)][Precision(1e-3)]
|
||||
public float GraphicalOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("GraphicalOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("GraphicalOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.1)][Precision(1e-3)]
|
||||
public float SoundOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("SoundOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("SoundOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Range(0, double.PositiveInfinity)][Step(60)][Precision(1e-1)]
|
||||
public float StartOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("StartOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("StartOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public string LastRunVersion {
|
||||
get {
|
||||
return PlayerPrefs.GetString("LastRunVersion", "0.0");
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetString("LastRunVersion", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
[Category("data")]
|
||||
[Description("The directory where the game files are stored.")]
|
||||
@@ -72,27 +94,6 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.02)][Precision(1e-3)]
|
||||
public float GraphicalOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("GraphicalOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("GraphicalOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public string LastRunVersion {
|
||||
get {
|
||||
return PlayerPrefs.GetString("LastRunVersion", "0.0");
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetString("LastRunVersion", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
[Category("data")]
|
||||
[Description("The chart file to load.")]
|
||||
@@ -141,9 +142,20 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(-4.6, 3)][Step(1)][Precision(1e-2)]
|
||||
public float BackwardRenderDistance {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("BackwardClippingDistance", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(-2.3, 6)][Step(1)][Precision(1e-1)]
|
||||
public float RenderDistance {
|
||||
public float ForwardRenderDistance {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("RenderDistance", 4);
|
||||
}
|
||||
@@ -164,28 +176,6 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("gameplay")]
|
||||
[Step(0.1)][Precision(1e-3)]
|
||||
public float SoundOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("SoundOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("SoundOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("debug")]
|
||||
[Range(0, double.PositiveInfinity)][Step(60)][Precision(1e-1)]
|
||||
public float StartOffset {
|
||||
get {
|
||||
return PlayerPrefs.GetFloat("StartOffset", 0);
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetFloat("StartOffset", value);
|
||||
}
|
||||
}
|
||||
|
||||
[Category("graphics")]
|
||||
[LogarithmicScale][Range(1.15, 3.5)][Step(2)]
|
||||
public int TargetFrameRate {
|
||||
@@ -227,6 +217,16 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
}
|
||||
|
||||
[Category("debug")]
|
||||
public bool DisableGC {
|
||||
get {
|
||||
return PlayerPrefs.GetInt("DisableGC", 1) == 1;
|
||||
}
|
||||
set {
|
||||
PlayerPrefs.SetInt("DisableGC", value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
public void Save() { PlayerPrefs.Save(); }
|
||||
public void Reset() { PlayerPrefs.DeleteAll(); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user