diff options
Diffstat (limited to 'grapher')
| -rw-r--r-- | grapher/Layouts/LogarithmLayout.cs | 21 | ||||
| -rw-r--r-- | grapher/Models/Options/AccelTypeOptions.cs | 1 | ||||
| -rw-r--r-- | grapher/Models/Serialized/DriverSettings.cs | 2 | ||||
| -rw-r--r-- | grapher/grapher.csproj | 4 |
4 files changed, 27 insertions, 1 deletions
diff --git a/grapher/Layouts/LogarithmLayout.cs b/grapher/Layouts/LogarithmLayout.cs new file mode 100644 index 0000000..5b25d60 --- /dev/null +++ b/grapher/Layouts/LogarithmLayout.cs @@ -0,0 +1,21 @@ +using grapher.Models.Serialized; + +namespace grapher.Layouts +{ + public class LogarithmLayout : LayoutBase + { + public LogarithmLayout () + : base() + { + Name = "Logarithm"; + Index = (int)AccelMode.logarithm; + + AccelLayout = new OptionLayout(true, Scale); + CapLayout = new OptionLayout(true, Cap); + WeightLayout = new OptionLayout(true, Weight); + OffsetLayout = new OptionLayout(true, Offset); + LimExpLayout = new OptionLayout(false, string.Empty); + MidpointLayout = new OptionLayout(false, string.Empty); + } + } +} diff --git a/grapher/Models/Options/AccelTypeOptions.cs b/grapher/Models/Options/AccelTypeOptions.cs index 14c2019..917ac5c 100644 --- a/grapher/Models/Options/AccelTypeOptions.cs +++ b/grapher/Models/Options/AccelTypeOptions.cs @@ -18,6 +18,7 @@ namespace grapher new ClassicLayout(), new NaturalLayout(), new PowerLayout(), + new LogarithmLayout(), new NaturalGainLayout(), new SigmoidGainLayout(), new OffLayout() diff --git a/grapher/Models/Serialized/DriverSettings.cs b/grapher/Models/Serialized/DriverSettings.cs index d7c9444..d42187c 100644 --- a/grapher/Models/Serialized/DriverSettings.cs +++ b/grapher/Models/Serialized/DriverSettings.cs @@ -8,7 +8,7 @@ namespace grapher.Models.Serialized public enum AccelMode { - linear, classic, natural, naturalgain, sigmoidgain, power, noaccel + linear, classic, natural, naturalgain, sigmoidgain, power, logarithm, noaccel } #endregion Enumerations diff --git a/grapher/grapher.csproj b/grapher/grapher.csproj index 74e2959..8f5eeda 100644 --- a/grapher/grapher.csproj +++ b/grapher/grapher.csproj @@ -54,6 +54,7 @@ </ItemGroup> <ItemGroup> <Compile Include="Constants\Constants.cs" /> + <Compile Include="Layouts\LogarithmLayout.cs" /> <Compile Include="Layouts\NaturalGainLayout.cs" /> <Compile Include="Layouts\SigmoidGainLayout.cs" /> <Compile Include="Models\AccelGUIFactory.cs" /> @@ -131,5 +132,8 @@ <Name>wrapper</Name> </ProjectReference> </ItemGroup> + <ItemGroup> + <Folder Include="ReadMe\" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project>
\ No newline at end of file |