summaryrefslogtreecommitdiff
path: root/grapher/Models
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-09-16 13:07:43 -0700
committera1xd <[email protected]>2021-09-23 22:34:51 -0400
commit4197e030c5cfeda5592816c8028152d9b7b599e0 (patch)
treea1e5489fbaa0e6e4523dfbb31a3c584c6745a710 /grapher/Models
parentGet power cap working (diff)
downloadrawaccel-4197e030c5cfeda5592816c8028152d9b7b599e0.tar.xz
rawaccel-4197e030c5cfeda5592816c8028152d9b7b599e0.zip
Remove weight
Diffstat (limited to 'grapher/Models')
-rw-r--r--grapher/Models/AccelGUIFactory.cs26
-rw-r--r--grapher/Models/Options/AccelTypeOptions.cs9
2 files changed, 0 insertions, 35 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs
index 91a649a..d95489b 100644
--- a/grapher/Models/AccelGUIFactory.cs
+++ b/grapher/Models/AccelGUIFactory.cs
@@ -46,8 +46,6 @@ namespace grapher.Models
TextBox sensitivityBoxX,
TextBox sensitivityBoxY,
TextBox rotationBox,
- TextBox weightBoxX,
- TextBox weightBoxY,
TextBox inCapBoxXClassic,
TextBox inCapBoxYClassic,
TextBox outCapBoxXClassic,
@@ -96,8 +94,6 @@ namespace grapher.Models
Label sensitivityLabel,
Label yxRatioLabel,
Label rotationLabel,
- Label weightLabelX,
- Label weightLabelY,
Label inCapLabelXClassic,
Label inCapLabelYClassic,
Label outCapLabelXClassic,
@@ -137,8 +133,6 @@ namespace grapher.Models
Label sensitivityActiveLabel,
Label yxRatioActiveLabel,
Label rotationActiveLabel,
- Label weightActiveXLabel,
- Label weightActiveYLabel,
Label inCapActiveXLabelClassic,
Label inCapActiveYLabelClassic,
Label outCapActiveXLabelClassic,
@@ -247,24 +241,6 @@ namespace grapher.Models
var directionalityLeft = directionalityPanel.Left;
- var weightX = new Option(
- weightBoxX,
- form,
- 1,
- weightLabelX,
- 0,
- new ActiveValueLabel(weightActiveXLabel, activeValueTitleX),
- "Weight");
-
- var weightY = new Option(
- weightBoxY,
- form,
- 1,
- weightLabelY,
- optionSetYLeft,
- new ActiveValueLabel(weightActiveYLabel, activeValueTitleY),
- "Weight");
-
var offsetX = new Option(
offsetBoxX,
form,
@@ -559,7 +535,6 @@ namespace grapher.Models
decayRateX,
growthRateX,
smoothX,
- weightX,
offsetX,
limitX,
powerClassicX,
@@ -582,7 +557,6 @@ namespace grapher.Models
decayRateY,
growthRateY,
smoothY,
- weightY,
offsetY,
limitY,
powerClassicY,
diff --git a/grapher/Models/Options/AccelTypeOptions.cs b/grapher/Models/Options/AccelTypeOptions.cs
index b7a7b7b..029a93e 100644
--- a/grapher/Models/Options/AccelTypeOptions.cs
+++ b/grapher/Models/Options/AccelTypeOptions.cs
@@ -32,7 +32,6 @@ namespace grapher
Option decayRate,
Option growthRate,
Option smooth,
- Option weight,
Option offset,
Option limit,
Option powerClassic,
@@ -67,7 +66,6 @@ namespace grapher
Smooth = smooth;
ClassicCap = classicCap;
PowerCap = powerCap;
- Weight = weight;
Offset = offset;
Limit = limit;
PowerClassic = powerClassic;
@@ -114,8 +112,6 @@ namespace grapher
public CapOptions PowerCap { get; }
- public Option Weight { get; }
-
public Option Offset { get; }
public Option Limit { get; }
@@ -227,7 +223,6 @@ namespace grapher
Smooth.Hide();
ClassicCap.Hide();
PowerCap.Hide();
- Weight.Hide();
Offset.Hide();
Limit.Hide();
PowerClassic.Hide();
@@ -255,7 +250,6 @@ namespace grapher
AccelerationType = AccelTypeFromSettings(ref args);
AccelTypeActiveValue.SetValue(AccelerationType.ActiveName);
GainSwitch.SetActiveValue(args.gain);
- Weight.SetActiveValue(args.weight);
ClassicCap.SetActiveValues(
args.acceleration,
args.cap.x,
@@ -343,7 +337,6 @@ namespace grapher
if (Exponent.Visible) args.exponentPower = Exponent.Field.Data;
if (Offset.Visible) args.offset = Offset.Field.Data;
if (Midpoint.Visible) args.midpoint = Midpoint.Field.Data;
- if (Weight.Visible) args.weight = Weight.Field.Data;
if (LutPanel.Visible)
{
(var points, var length) = LutPanel.GetPoints();
@@ -370,7 +363,6 @@ namespace grapher
ClassicCap.AlignActiveValues();
PowerCap.AlignActiveValues();
Offset.AlignActiveValues();
- Weight.AlignActiveValues();
Limit.AlignActiveValues();
PowerClassic.AlignActiveValues();
Exponent.AlignActiveValues();
@@ -407,7 +399,6 @@ namespace grapher
DecayRate,
GrowthRate,
Smooth,
- Weight,
Offset,
Limit,
PowerClassic,