summaryrefslogtreecommitdiff
path: root/grapher/Models/Options/CapOptions.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-08-20 14:22:14 -0700
committerJacob Palecki <[email protected]>2020-08-20 14:22:14 -0700
commit7dbeae9d4cf108e78072b356d832123f12e42a90 (patch)
tree9711fddfb5241a3dc859cd421aa4937d38a8852f /grapher/Models/Options/CapOptions.cs
parentDisplay active values (diff)
downloadrawaccel-7dbeae9d4cf108e78072b356d832123f12e42a90.tar.xz
rawaccel-7dbeae9d4cf108e78072b356d832123f12e42a90.zip
Add accel type to active values and tweak color
Diffstat (limited to 'grapher/Models/Options/CapOptions.cs')
-rw-r--r--grapher/Models/Options/CapOptions.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/grapher/Models/Options/CapOptions.cs b/grapher/Models/Options/CapOptions.cs
index fedda08..493561a 100644
--- a/grapher/Models/Options/CapOptions.cs
+++ b/grapher/Models/Options/CapOptions.cs
@@ -1,4 +1,5 @@
-using System;
+using grapher.Models.Options;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -9,6 +10,9 @@ namespace grapher
{
public class CapOptions
{
+
+ public const string GainCapFormatString = "0.##";
+
public CapOptions(
ToolStripMenuItem sensitivityCapCheck,
ToolStripMenuItem velocityGainCapCheck,
@@ -86,10 +90,14 @@ namespace grapher
{
if (capGainEnabled)
{
+ CapOption.ActiveValueLabels.X.FormatString = GainCapFormatString;
+ CapOption.ActiveValueLabels.X.Prefix = "Gain";
CapOption.SetActiveValues(gainCap, gainCap);
}
else
{
+ CapOption.ActiveValueLabels.X.FormatString = ActiveValueLabel.DefaultFormatString;
+ CapOption.ActiveValueLabels.X.Prefix = string.Empty;
CapOption.SetActiveValues(sensCapX, sensCapY);
}
}