summaryrefslogtreecommitdiff
path: root/grapher/Layouts
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-04-06 01:21:42 -0400
committera1xd <[email protected]>2021-04-06 01:21:42 -0400
commit7c1f14845bc948e9ea25908e96099203d9433a69 (patch)
treeeadfae6ec0a775a35c29807bde3c20be8160e034 /grapher/Layouts
parentLUT text layout (diff)
downloadrawaccel-7c1f14845bc948e9ea25908e96099203d9433a69.tar.xz
rawaccel-7c1f14845bc948e9ea25908e96099203d9433a69.zip
update wrapper + writer to handle lut
grapher is building but applying options still broken for the most part
Diffstat (limited to 'grapher/Layouts')
-rw-r--r--grapher/Layouts/JumpLayout.cs24
-rw-r--r--grapher/Layouts/LUTLayout.cs2
-rw-r--r--grapher/Layouts/LinearLayout.cs2
3 files changed, 26 insertions, 2 deletions
diff --git a/grapher/Layouts/JumpLayout.cs b/grapher/Layouts/JumpLayout.cs
new file mode 100644
index 0000000..cb77963
--- /dev/null
+++ b/grapher/Layouts/JumpLayout.cs
@@ -0,0 +1,24 @@
+using grapher.Models.Serialized;
+
+namespace grapher.Layouts
+{
+ public class JumpLayout : LayoutBase
+ {
+ public JumpLayout()
+ : base()
+ {
+ Name = "Jump";
+ Index = (int)AccelMode.jump;
+ LogarithmicCharts = false;
+
+ AccelLayout = new OptionLayout(false, Acceleration);
+ ScaleLayout = new OptionLayout(false, string.Empty);
+ CapLayout = new OptionLayout(true, string.Empty);
+ WeightLayout = new OptionLayout(false, Weight);
+ OffsetLayout = new OptionLayout(true, Offset);
+ LimitLayout = new OptionLayout(false, Limit);
+ ExponentLayout = new OptionLayout(false, string.Empty);
+ MidpointLayout = new OptionLayout(false, string.Empty);
+ }
+ }
+}
diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs
index 7449168..4b4b687 100644
--- a/grapher/Layouts/LUTLayout.cs
+++ b/grapher/Layouts/LUTLayout.cs
@@ -14,7 +14,7 @@ namespace grapher.Layouts
: base()
{
Name = "LookUpTable";
- Index = (int)AccelMode.lut;
+ Index = (int)AccelMode.noaccel + 1;
AccelLayout = new OptionLayout(false, Acceleration);
ScaleLayout = new OptionLayout(false, string.Empty);
diff --git a/grapher/Layouts/LinearLayout.cs b/grapher/Layouts/LinearLayout.cs
index 4681ca9..d98baa5 100644
--- a/grapher/Layouts/LinearLayout.cs
+++ b/grapher/Layouts/LinearLayout.cs
@@ -16,7 +16,7 @@ namespace grapher.Layouts
AccelLayout = new OptionLayout(true, Acceleration);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(true, Cap);
- WeightLayout = new OptionLayout(true, Weight);
+ WeightLayout = new OptionLayout(false, Weight);
OffsetLayout = new OptionLayout(true, Offset);
LimitLayout = new OptionLayout(false, string.Empty);
ExponentLayout = new OptionLayout(false, string.Empty);