summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUIFactory.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-07 01:05:59 -0700
committerJacob Palecki <[email protected]>2021-04-07 01:05:59 -0700
commit5e858b059436375ed1c17f7dc1b3e47a7e8e1d5d (patch)
treeea56892ee71c0d245d99c348676e84b10928013c /grapher/Models/AccelGUIFactory.cs
parentnatural legacy algorithm was correct, leave as it was (diff)
downloadrawaccel-5e858b059436375ed1c17f7dc1b3e47a7e8e1d5d.tar.xz
rawaccel-5e858b059436375ed1c17f7dc1b3e47a7e8e1d5d.zip
Add active value labels for gain switch
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
-rw-r--r--grapher/Models/AccelGUIFactory.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index 6bfc510..73be939 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -110,6 +110,8 @@ namespace grapher.Models
Label midpointActiveLabelY,
Label accelTypeActiveLabelX,
Label accelTypeActiveLabelY,
+ Label gainSwitchActiveLabelX,
+ Label gainSwitchActiveLabelY,
Label optionSetXTitle,
Label optionSetYTitle,
Label mouseLabel,
@@ -315,8 +317,12 @@ namespace grapher.Models
var lutTextX = new TextOption(lutTextLabelX);
var lutTextY = new TextOption(lutTextLabelY);
- var gainSwitchOptionX = new CheckBoxOption(gainSwitchX);
- var gainSwitchOptionY = new CheckBoxOption(gainSwitchY);
+ var gainSwitchOptionX = new CheckBoxOption(
+ gainSwitchX,
+ new ActiveValueLabel(gainSwitchActiveLabelX, activeValueTitleX));
+ var gainSwitchOptionY = new CheckBoxOption(
+ gainSwitchY,
+ new ActiveValueLabel(gainSwitchActiveLabelY, activeValueTitleY));
var accelerationOptionsX = new AccelTypeOptions(
accelTypeDropX,