diff options
Diffstat (limited to 'Config.cs')
| -rwxr-xr-x | Config.cs | 140 |
1 files changed, 94 insertions, 46 deletions
@@ -7,37 +7,63 @@ namespace MHWNewCamera {
internal class Config : IConfig
{
+ public String Name => "MHWNewCamera";
+ public String Version => "4.0";
+
public struct Settings
{
- public const float DEFAULT_SPEED = 5.25f;
+ public const float DEFAULT_SPEED = 5.35f;
public const float DEFAULT_SPEED_MODIFIER = 0.40f;
- public const float DEFAULT_SENSITIVITY = 0.045f;
+ public const float DEFAULT_SENSITIVITY = 0.0425f;
public const float DEFAULT_ZOOM_SPEED = 0.02f;
public const double DEFAULT_PITCH_LIMIT = -1.0;
public const double MAX_PITCH_LIMIT = 89.95;
public const int DEFAULT_DEADZONE = 4750;
+ public const float DEFAULT_ALT_NEAR_CLIP = 0.3f;
public Settings()
{
- CameraSpeed = DEFAULT_SPEED;
- CameraSpeedModifier = DEFAULT_SPEED_MODIFIER;
- CameraSensitivity = DEFAULT_SENSITIVITY;
- CameraZoomSpeed = DEFAULT_ZOOM_SPEED;
- CameraPitchLimit = DEFAULT_PITCH_LIMIT;
+ Speed = DEFAULT_SPEED;
+ SpeedModifier = DEFAULT_SPEED_MODIFIER;
+ Sensitivity = DEFAULT_SENSITIVITY;
+ ZoomSpeed = DEFAULT_ZOOM_SPEED;
+ PitchLimit = DEFAULT_PITCH_LIMIT;
StickDeadzone = DEFAULT_DEADZONE;
+ AlternateNearClip = DEFAULT_ALT_NEAR_CLIP;
}
- public float CameraSpeed { get; set; }
- public float CameraSpeedModifier { get; set; }
- public float CameraSensitivity { get; set; }
- public float CameraZoomSpeed { get; set; }
- public double CameraPitchLimit { get; set; }
+ public float Speed { get; set; }
+ public float SpeedModifier { get; set; }
+ public float Sensitivity { get; set; }
+ public float ZoomSpeed { get; set; }
+ public double PitchLimit { get; set; }
public int StickDeadzone { get; set; }
+ public float AlternateNearClip { get; set; }
+
+ public struct Binds
+ {
+ public Binds()
+ {
+ EnableCombo = true;
+ FreeCameraCombo = "RStick,LT";
+ DisableComboButton1UnlessButton2Held = false;
+ EnableKeyboard = true;
+ KeyboardLookSensitivity = 19750;
+ }
+
+ public bool EnableCombo { get; set; }
+ public String FreeCameraCombo { get; set; }
+ public bool DisableComboButton1UnlessButton2Held { get; set; }
+#if SIMPLE_KEYBOARD_LAYER
+ public bool EnableKeyboard { get; set; }
+ public int KeyboardLookSensitivity { get; set; }
+#endif
+ }
}
public struct Preset
{
- public double FOV { get; set; }
+ public double FieldOfView { get; set; }
public float Forward { get; set; }
public float Right { get; set; }
public float Up { get; set; }
@@ -45,8 +71,57 @@ namespace MHWNewCamera public bool DisableFading { get; set; }
}
- public struct SavedPosition
+ public struct GraphicalTweaks
+ {
+ public GraphicalTweaks()
+ {
+ TripleShadowResolution = false;
+ SlightlyHigherShadowValues = true;
+ ShadowRangeOffset = 0.7f;
+ ApplyShadowRange = false;
+ ShadowRadiusOffset = -0.0001f;
+ ApplyShadowRadius = false;
+ HigherShadowDetailInHoarfrost = false;
+ SSAOAdjustments = false;
+ SSRAdjustments = false;
+ EnableHQMode = false;
+ DisableLODLimits = false;
+ FoliageLODBias = 3.0f;
+ TerrainLODBias = 16.0f;
+ FoliageLODFactor = 0.0f;
+ TerrainLODFactor = 0.0f;
+ SnowLODBias = 32.0f;
+ ApplyLODFactors = false;
+ LargerFoliageSwayRange = false;
+ DisableReducedRateAnimations = false;
+ DisableVolumetricDownsample = false;
+ }
+
+ public bool TripleShadowResolution { get; set; }
+ public bool SlightlyHigherShadowValues { get; set; }
+ public float ShadowRangeOffset { get; set; }
+ public bool ApplyShadowRange { get; set; }
+ public float ShadowRadiusOffset { get; set; }
+ public bool ApplyShadowRadius { get; set; }
+ public bool HigherShadowDetailInHoarfrost { get; set; }
+ public bool SSAOAdjustments { get; set; }
+ public bool SSRAdjustments { get; set; }
+ public bool EnableHQMode { get; set; }
+ public bool DisableLODLimits { get; set; }
+ public float FoliageLODBias { get; set; }
+ public float TerrainLODBias { get; set; }
+ public float FoliageLODFactor { get; set; }
+ public float TerrainLODFactor { get; set; }
+ public float SnowLODBias { get; set; }
+ public bool ApplyLODFactors { get; set; }
+ public bool LargerFoliageSwayRange { get; set; }
+ public bool DisableReducedRateAnimations { get; set; }
+ public bool DisableVolumetricDownsample { get; set; }
+ }
+
+ public struct Position
{
+ public float FieldOfView { get; set; }
public float PosX { get; set; }
public float PosY { get; set; }
public float PosZ { get; set; }
@@ -56,9 +131,6 @@ namespace MHWNewCamera public double Roll { get; set; }
}
- public String Name => "MHWNewCamera";
- public String Version => "4.0";
-
private static Dictionary<string, Button> buttonMap = new Dictionary<string, Button>
{
{ "r1", Button.R1 }, { "rb", Button.R1 },
@@ -96,41 +168,17 @@ namespace MHWNewCamera public bool DisableMod { get; set; } = false;
-#if SIMPLE_KEYBOARD_LAYER
- public bool EnableKeyboard { get; set; } = true;
- public int KeyboardLookSensitivity { get; set; } = 19750;
-#endif
+ public bool OverrideViewMode { get; set; } = false;
- public bool EnableCombo { get; set; } = true;
- public String FreeCameraCombo { get; set; } = "RStick,LT";
- public bool DisableComboButton1UnlessButton2Held { get; set; } = false;
+ public Settings Camera { get; set; } = new Settings();
+ public Settings.Binds Binds { get; set; } = new Settings.Binds();
- public Settings CameraSettings { get; set; } = new Settings();
public bool PerspectiveCameraEnabled { get; set; } = false;
public Dictionary<String, Preset> Presets { get; set; } = new Dictionary<String, Preset>();
public String Selected { get; set; } = "";
- public Dictionary<String, SavedPosition> Positions { get; set; } = new Dictionary<String, SavedPosition>();
- public bool TripleShadowResolution { get; set; } = false;
- public float ShadowRangeOffset { get; set; } = 0.7f;
- public bool ApplyShadowRange { get; set; } = false;
- public float ShadowRadiusOffset { get; set; } = -0.0001f;
- public bool ApplyShadowRadius { get; set; } = false;
- public bool HigherShadowDetailInHoarfrost { get; set; } = false;
- public bool SSAOAdjustments { get; set; } = false;
- public bool SSRAdjustments { get; set; } = false;
- public bool EnableHQMode { get; set; } = false;
- public bool DisableLODLimits { get; set; } = false;
- public float FoliageLODBias { get; set; } = 3.0f;
- public float TerrainLODBias { get; set; } = 16.0f;
- public float FoliageLODFactor { get; set; } = 0.0f;
- public float TerrainLODFactor { get; set; } = 0.0f;
- public float SnowLODBias { get; set; } = 32.0f;
- public bool ApplyLODFactors { get; set; } = false;
- public bool LargerFoliageSwayRange { get; set; } = false;
- public bool DisableReducedRateAnimations { get; set; } = false;
- public bool DisableVolumetricDownsample { get; set; } = false;
+ public GraphicalTweaks Graphics { get; set; } = new GraphicalTweaks();
- public bool OverrideViewMode { get; set; } = false;
+ public Dictionary<String, Position> Positions { get; set; } = new Dictionary<String, Position>();
}
}
|