diff options
| author | Jacob Palecki <[email protected]> | 2021-07-01 22:32:55 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-07-01 22:32:55 -0700 |
| commit | 308eed9ce9ed48984323e6512546a2ffeb195b14 (patch) | |
| tree | fa35c8ef8240b4598b63e27369dacbcb2b45ffd9 /grapher/Models/Options/TextOption.cs | |
| parent | Begin updating guide (diff) | |
| download | rawaccel-308eed9ce9ed48984323e6512546a2ffeb195b14.tar.xz rawaccel-308eed9ce9ed48984323e6512546a2ffeb195b14.zip | |
LUT Panel formatting
Diffstat (limited to 'grapher/Models/Options/TextOption.cs')
| -rw-r--r-- | grapher/Models/Options/TextOption.cs | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/grapher/Models/Options/TextOption.cs b/grapher/Models/Options/TextOption.cs index 83a72df..1f8034d 100644 --- a/grapher/Models/Options/TextOption.cs +++ b/grapher/Models/Options/TextOption.cs @@ -9,6 +9,13 @@ namespace grapher.Models.Options { public class TextOption : OptionBase { + #region Constants + + public const string LUTLayoutExpandedText = "This mode is for experts only. Format: x1,y1;x2,y2;...xn,yn;"; + public const string LUTLayoutShortenedText = "Experts only."; + + #endregion Constants + #region Constructors public TextOption(Label label) @@ -23,6 +30,10 @@ namespace grapher.Models.Options private Label Label { get; } + private string ExpandedText { get; set; } + + private string ShortenedText { get; set; } + public override bool Visible { get @@ -89,10 +100,25 @@ namespace grapher.Models.Options public override void Show(string Name) { Label.Show(); - Label.Text = Name; ShouldShow = true; } + public void Expand() + { + Label.Text = ExpandedText; + } + + public void Shorten() + { + Label.Text = ShortenedText; + } + + public void SetText(string expandedText, string shortenedText) + { + ExpandedText = expandedText; + ShortenedText = shortenedText; + } + public override void AlignActiveValues() { // Nothing to do here |