diff options
| author | Jacob Palecki <[email protected]> | 2020-08-20 12:51:33 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-08-20 12:51:33 -0700 |
| commit | fe17d04e571d180e663c7014e803ce790693f4b1 (patch) | |
| tree | c2e026ab79b73d3e48cc71aebde90b095771587c /grapher/Models/AccelGUI.cs | |
| parent | Add empty active labels for all options (diff) | |
| download | rawaccel-fe17d04e571d180e663c7014e803ce790693f4b1.tar.xz rawaccel-fe17d04e571d180e663c7014e803ce790693f4b1.zip | |
Display active values
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index 2c27bf7..afc3def 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -102,6 +102,19 @@ namespace grapher { AccelCalculator.Calculate(AccelCharts.AccelData, ManagedAcceleration); AccelCharts.Bind(); + UpdateActiveValueLabels(); + } + + public void UpdateActiveValueLabels() + { + Sensitivity.SetActiveValues(ManagedAcceleration.SensitivityX, ManagedAcceleration.SensitivityY); + Rotation.SetActiveValue(ManagedAcceleration.Rotation); + Offset.SetActiveValue(ManagedAcceleration.Offset); + Acceleration.SetActiveValue(ManagedAcceleration.Acceleration); + Cap.SetActiveValues(ManagedAcceleration.GainCap, ManagedAcceleration.CapX, ManagedAcceleration.CapY, ManagedAcceleration.GainCapEnabled); + Weight.SetActiveValues(ManagedAcceleration.WeightX, ManagedAcceleration.WeightY); + LimitOrExponent.SetActiveValue(ManagedAcceleration.LimitExp); + Midpoint.SetActiveValue(ManagedAcceleration.Midpoint); } private void OnScaleMenuItemClick(object sender, EventArgs e) |