diff options
| author | Jacob Palecki <[email protected]> | 2021-04-25 21:57:25 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-04-25 21:57:25 -0700 |
| commit | 0af5b1d23be9ecfb0134c957197cfd8f838b7998 (patch) | |
| tree | 0e98a6cf933742d14d93c0feded2845aeda3beba /grapher/Layouts | |
| parent | update signed (diff) | |
| download | rawaccel-0af5b1d23be9ecfb0134c957197cfd8f838b7998.tar.xz rawaccel-0af5b1d23be9ecfb0134c957197cfd8f838b7998.zip | |
Fixed layout issues for LUT
Diffstat (limited to 'grapher/Layouts')
| -rw-r--r-- | grapher/Layouts/LUTLayout.cs | 7 | ||||
| -rw-r--r-- | grapher/Layouts/LayoutBase.cs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs index 5505114..1ca5915 100644 --- a/grapher/Layouts/LUTLayout.cs +++ b/grapher/Layouts/LUTLayout.cs @@ -10,6 +10,11 @@ namespace grapher.Layouts { public const string LUTLayoutText = "This mode is for advanced users only. It requires a lut.json file to define the velocity curve. See the guide for specifics."; + /// <summary> + /// String small enough to fit in active value label + /// </summary> + public const string LUTActiveName = "LUT"; + public LUTLayout() : base() { @@ -27,5 +32,7 @@ namespace grapher.Layouts MidpointLayout = new OptionLayout(false, string.Empty); LUTTextLayout = new OptionLayout(true, LUTLayoutText); } + + public override string ActiveName => LUTActiveName; } } diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs index 900d611..82d10d8 100644 --- a/grapher/Layouts/LayoutBase.cs +++ b/grapher/Layouts/LayoutBase.cs @@ -38,6 +38,8 @@ namespace grapher.Layouts public string Name { get; protected set; } + public virtual string ActiveName { get => Name; } + public bool LogarithmicCharts { get; protected set; } protected OptionLayout AccelLayout { get; set; } |