summaryrefslogtreecommitdiff
path: root/grapher/Layouts
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-01 22:42:07 -0700
committerJacob Palecki <[email protected]>2020-09-01 22:42:07 -0700
commit26130b21dabaab7fc331844df11465623a811197 (patch)
tree79063acdf3df901da59191471c31218eef1e219e /grapher/Layouts
parentintermittent commit - large commit halfway done (diff)
downloadrawaccel-26130b21dabaab7fc331844df11465623a811197.tar.xz
rawaccel-26130b21dabaab7fc331844df11465623a811197.zip
Second half - the parts in place
Diffstat (limited to 'grapher/Layouts')
-rw-r--r--grapher/Layouts/ClassicLayout.cs4
-rw-r--r--grapher/Layouts/DefaultLayout.cs4
-rw-r--r--grapher/Layouts/LayoutBase.cs6
-rw-r--r--grapher/Layouts/LinearLayout.cs4
-rw-r--r--grapher/Layouts/LogLayout.cs4
-rw-r--r--grapher/Layouts/NaturalGainLayout.cs4
-rw-r--r--grapher/Layouts/NaturalLayout.cs2
-rw-r--r--grapher/Layouts/OffLayout.cs5
-rw-r--r--grapher/Layouts/PowerLayout.cs4
-rw-r--r--grapher/Layouts/SigmoidGainLayout.cs4
-rw-r--r--grapher/Layouts/SigmoidLayout.cs4
11 files changed, 23 insertions, 22 deletions
diff --git a/grapher/Layouts/ClassicLayout.cs b/grapher/Layouts/ClassicLayout.cs
index 05f6c82..f7766f0 100644
--- a/grapher/Layouts/ClassicLayout.cs
+++ b/grapher/Layouts/ClassicLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "Classic";
Index = (int)AccelMode.classic;
- ShowOptions = new bool[] { true, true, true, false };
- OptionNames = new string[] { Offset, Acceleration, Exponent, string.Empty };
+ ShowOptions = new bool[] { true, true, true, false, true, true };
+ OptionNames = new string[] { Offset, Acceleration, Exponent, string.Empty, Cap, Weight };
}
}
}
diff --git a/grapher/Layouts/DefaultLayout.cs b/grapher/Layouts/DefaultLayout.cs
index 42841d5..cb1994f 100644
--- a/grapher/Layouts/DefaultLayout.cs
+++ b/grapher/Layouts/DefaultLayout.cs
@@ -16,8 +16,8 @@ namespace grapher.Layouts
{
Name = "Default";
Index = (int)AccelMode.noaccel;
- ShowOptions = new bool[] { true, true, true, true };
- OptionNames = new string[] { Offset, Acceleration, $"{Limit}\\{Exponent}", Midpoint };
+ ShowOptions = new bool[] { true, true, true, true, true };
+ OptionNames = new string[] { Offset, Acceleration, $"{Limit}\\{Exponent}", Midpoint, Cap, Weight };
ButtonEnabled = false;
}
}
diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs
index 0ad855a..daac6f1 100644
--- a/grapher/Layouts/LayoutBase.cs
+++ b/grapher/Layouts/LayoutBase.cs
@@ -15,12 +15,14 @@ namespace grapher.Layouts
public const string Limit = "Limit";
public const string Midpoint = "Midpoint";
public const string Offset = "Offset";
+ public const string Cap = "Cap";
+ public const string Weight = "Weight";
public LayoutBase()
{
- ShowOptions = new bool[] { false, false, false, false };
+ ShowOptions = new bool[] { false, false, false, false, true, true };
ShowOptionsXY = new bool[] { true, true };
- OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty };
+ OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty };
ButtonEnabled = true;
}
diff --git a/grapher/Layouts/LinearLayout.cs b/grapher/Layouts/LinearLayout.cs
index 0a79a64..8b1d444 100644
--- a/grapher/Layouts/LinearLayout.cs
+++ b/grapher/Layouts/LinearLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "Linear";
Index = (int)AccelMode.linear;
- ShowOptions = new bool[] { true, true, false, false };
- OptionNames = new string[] { Offset, Acceleration, string.Empty, string.Empty };
+ ShowOptions = new bool[] { true, true, false, false, true, true };
+ OptionNames = new string[] { Offset, Acceleration, string.Empty, string.Empty, Cap, Weight };
}
}
}
diff --git a/grapher/Layouts/LogLayout.cs b/grapher/Layouts/LogLayout.cs
index 1206fb3..4b73683 100644
--- a/grapher/Layouts/LogLayout.cs
+++ b/grapher/Layouts/LogLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "Logarithmic";
Index = (int)AccelMode.logarithmic;
- ShowOptions = new bool[] { true, true, false, false };
- OptionNames = new string[] { Offset, Acceleration, string.Empty, string.Empty };
+ ShowOptions = new bool[] { true, true, false, false, true, true };
+ OptionNames = new string[] { Offset, Acceleration, string.Empty, string.Empty, Cap, Weight };
}
}
}
diff --git a/grapher/Layouts/NaturalGainLayout.cs b/grapher/Layouts/NaturalGainLayout.cs
index 9bb1ec8..0f9caf0 100644
--- a/grapher/Layouts/NaturalGainLayout.cs
+++ b/grapher/Layouts/NaturalGainLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "NaturalGain";
Index = (int)AccelMode.naturalgain;
- ShowOptions = new bool[] { true, true, true, false };
- OptionNames = new string[] { Offset, Acceleration, Limit, string.Empty };
+ ShowOptions = new bool[] { true, true, true, false, false, true };
+ OptionNames = new string[] { Offset, Acceleration, Limit, string.Empty, string.Empty, Weight};
}
}
}
diff --git a/grapher/Layouts/NaturalLayout.cs b/grapher/Layouts/NaturalLayout.cs
index 44c6c18..a6da67d 100644
--- a/grapher/Layouts/NaturalLayout.cs
+++ b/grapher/Layouts/NaturalLayout.cs
@@ -14,7 +14,7 @@ namespace grapher.Layouts
{
Name = "Natural";
Index = (int)AccelMode.natural;
- ShowOptions = new bool[] { true, true, true, false };
+ ShowOptions = new bool[] { true, true, true, false, false, true };
OptionNames = new string[] { Offset, Acceleration, Limit, string.Empty };
}
}
diff --git a/grapher/Layouts/OffLayout.cs b/grapher/Layouts/OffLayout.cs
index ce7c149..1c37026 100644
--- a/grapher/Layouts/OffLayout.cs
+++ b/grapher/Layouts/OffLayout.cs
@@ -14,9 +14,8 @@ namespace grapher.Layouts
{
Name = "Off";
Index = (int)AccelMode.noaccel;
- ShowOptions = new bool[] { false, false, false, false };
- OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty };
- ShowOptionsXY = new bool[] { false, false };
+ ShowOptions = new bool[] { false, false, false, false, false, false };
+ OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty };
ButtonEnabled = true;
}
}
diff --git a/grapher/Layouts/PowerLayout.cs b/grapher/Layouts/PowerLayout.cs
index c14083a..699536f 100644
--- a/grapher/Layouts/PowerLayout.cs
+++ b/grapher/Layouts/PowerLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "Power";
Index = (int)AccelMode.power;
- ShowOptions = new bool[] { true, true, true, false };
- OptionNames = new string[] { Offset, Scale, Exponent, string.Empty };
+ ShowOptions = new bool[] { true, true, true, false, true, true };
+ OptionNames = new string[] { Offset, Scale, Exponent, string.Empty, Cap, Weight };
}
}
}
diff --git a/grapher/Layouts/SigmoidGainLayout.cs b/grapher/Layouts/SigmoidGainLayout.cs
index 93214ec..3897477 100644
--- a/grapher/Layouts/SigmoidGainLayout.cs
+++ b/grapher/Layouts/SigmoidGainLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "SigmoidGain";
Index = (int)AccelMode.sigmoidgain;
- ShowOptions = new bool[] { true, true, true, true };
- OptionNames = new string[] { Offset, Acceleration, Limit, Midpoint };
+ ShowOptions = new bool[] { true, true, true, true, false, true };
+ OptionNames = new string[] { Offset, Acceleration, Limit, Midpoint, string.Empty, Weight };
}
}
}
diff --git a/grapher/Layouts/SigmoidLayout.cs b/grapher/Layouts/SigmoidLayout.cs
index 1c7f0b9..e5e35cd 100644
--- a/grapher/Layouts/SigmoidLayout.cs
+++ b/grapher/Layouts/SigmoidLayout.cs
@@ -14,8 +14,8 @@ namespace grapher.Layouts
{
Name = "Sigmoid";
Index = (int)AccelMode.sigmoid;
- ShowOptions = new bool[] { true, true, true, true };
- OptionNames = new string[] { Offset, Acceleration, Limit, Midpoint };
+ ShowOptions = new bool[] { true, true, true, true, false, true };
+ OptionNames = new string[] { Offset, Acceleration, Limit, Midpoint, string.Empty, Weight };
}
}
}