diff options
| author | 2026-04-05 15:52:10 -0400 | |
|---|---|---|
| committer | 2026-04-05 15:52:10 -0400 | |
| commit | e094e66536e31f52e0b91521e6e561b593ed480a (patch) | |
| tree | 96e4ff54b2c80f9084358482aab3864c68425a9a /Config.cs | |
| parent | da80badc0e0acaa11459aefeb486f7e58c473eb3 (diff) | |
| download | NewCamera-e094e66536e31f52e0b91521e6e561b593ed480a.tar.gz NewCamera-e094e66536e31f52e0b91521e6e561b593ed480a.tar.bz2 NewCamera-e094e66536e31f52e0b91521e6e561b593ed480a.zip | |
Simplify and fix preset select and disable fading
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Config.cs')
| -rwxr-xr-x | Config.cs | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -10,6 +10,9 @@ namespace NewCamera public String Name => "NewCamera";
public String Version => "4.0";
+ public const float DEFAULT_FOV = 60.0f;
+ public const float DEFAULT_NEAR_CLIP = 16.0f;
+
public struct Settings
{
public const float DEFAULT_SPEED = 5.35f;
@@ -70,23 +73,33 @@ namespace NewCamera public struct Preset
{
public float FieldOfView { get; set; }
+ public float Roll { get; set; }
public float Forward { get; set; }
public float Right { get; set; }
public float Up { get; set; }
- public float Roll { get; set; }
public bool DisableFading { get; set; }
}
+ public static Preset DefaultPreset = new Preset()
+ {
+ FieldOfView = DEFAULT_FOV,
+ Roll = 0.0f,
+ Forward = 0.0f,
+ Right = 0.0f,
+ Up = 0.0f,
+ DisableFading = false
+ };
+
public struct Position
{
public float FieldOfView { get; set; }
+ public float Roll { get; set; }
public float PosX { get; set; }
public float PosY { get; set; }
public float PosZ { get; set; }
public float TargetX { get; set; }
public float TargetY { get; set; }
public float TargetZ { get; set; }
- public float Roll { get; set; }
}
private static Dictionary<string, Button> buttonMap = new Dictionary<string, Button>
|