diff options
| author | Jacob Palecki <[email protected]> | 2020-09-01 00:31:18 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-01 00:31:18 -0700 |
| commit | 297d610ca1f2978c6e354c679cbed4e1908be743 (patch) | |
| tree | 531bf849782a2a59ec29d113bbdbaeaef5429a78 /grapher/Models/AccelGUI.cs | |
| parent | Remove console project (diff) | |
| download | rawaccel-297d610ca1f2978c6e354c679cbed4e1908be743.tar.xz rawaccel-297d610ca1f2978c6e354c679cbed4e1908be743.zip | |
Set whole or by component with toolstrip item
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index a15dba8..7789337 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -1,5 +1,6 @@ using grapher.Models.Calculations; using grapher.Models.Mouse; +using grapher.Models.Options; using grapher.Models.Serialized; using System; using System.CodeDom; @@ -23,6 +24,7 @@ namespace grapher AccelCalculator accelCalculator, AccelCharts accelCharts, SettingsManager settings, + ApplyOptions applyOptions, AccelOptions accelOptions, OptionXY sensitivity, Option rotation, @@ -41,6 +43,7 @@ namespace grapher AccelCalculator = accelCalculator; AccelCharts = accelCharts; AccelerationOptions = accelOptions; + ApplyOptions = applyOptions; Sensitivity = sensitivity; Rotation = rotation; Weight = weight; @@ -72,6 +75,8 @@ namespace grapher public SettingsManager Settings { get; } + public ApplyOptions ApplyOptions { get; } + public AccelOptions AccelerationOptions { get; } public OptionXY Sensitivity { get; } @@ -110,7 +115,7 @@ namespace grapher x = Sensitivity.Fields.X, y = Sensitivity.Fields.Y }, - combineMagnitudes = true, + combineMagnitudes = ApplyOptions.IsWhole, modes = new Vec2<AccelMode> { x = (AccelMode)AccelerationOptions.AccelerationIndex @@ -159,6 +164,7 @@ namespace grapher Acceleration.SetActiveValue(settings.args.x.accel); // rate, powerscale LimitOrExponent.SetActiveValue(settings.args.x.limit); //exp, powerexp Midpoint.SetActiveValue(settings.args.x.midpoint); + ApplyOptions.SetActive(settings.combineMagnitudes); //Cap.SetActiveValues(Settings.ActiveAccel.GainCap, Settings.ActiveAccel.CapX, Settings.ActiveAccel.CapY, Settings.ActiveAccel.GainCapEnabled); } |