- New option to limit minimum preview length

- New option only preview with parameters
- Improve preview drawing modes
- Prevent null ref on plugin load
This commit is contained in:
Infi
2024-05-20 06:25:54 +02:00
parent a18861ea87
commit 592892e45a
8 changed files with 140 additions and 53 deletions
+38 -2
View File
@@ -2400,7 +2400,7 @@ namespace ChatTwo.Resources {
}
/// <summary>
/// Looks up a localized string similar to A preview wih all emote, auto-translate encoded as they appear in chat.
/// Looks up a localized string similar to Displays a preview with special parameter evaluated, like emotes and &lt;item&gt;.
/// </summary>
internal static string Options_Preview_Description {
get {
@@ -2427,7 +2427,7 @@ namespace ChatTwo.Resources {
}
/// <summary>
/// Looks up a localized string similar to Input preview.
/// Looks up a localized string similar to Text preview.
/// </summary>
internal static string Options_Preview_Name {
get {
@@ -2462,6 +2462,42 @@ namespace ChatTwo.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Show only if the text length is greater-than or equal.
/// </summary>
internal static string Options_PreviewMinimum_Description {
get {
return ResourceManager.GetString("Options_PreviewMinimum_Description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimum input length.
/// </summary>
internal static string Options_PreviewMinimum_Name {
get {
return ResourceManager.GetString("Options_PreviewMinimum_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show only if the text contains special parameter.
/// </summary>
internal static string Options_PreviewOnlyIf_Description {
get {
return ResourceManager.GetString("Options_PreviewOnlyIf_Description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Only with parameter.
/// </summary>
internal static string Options_PreviewOnlyIf_Name {
get {
return ResourceManager.GetString("Options_PreviewOnlyIf_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Replaces words with their emote version, currently supports BetterTTV.
/// </summary>
+14 -2
View File
@@ -1052,10 +1052,10 @@
<value>Emotes available:</value>
</data>
<data name="Options_Preview_Description" xml:space="preserve">
<value>A preview wih all emote, auto-translate encoded as they appear in chat</value>
<value>Displays a preview with special parameter evaluated, like emotes and &lt;item&gt;</value>
</data>
<data name="Options_Preview_Name" xml:space="preserve">
<value>Input preview</value>
<value>Text preview</value>
</data>
<data name="Options_Preview_None" xml:space="preserve">
<value>None</value>
@@ -1075,4 +1075,16 @@
<data name="Options_Preview_Tooltip" xml:space="preserve">
<value>Tooltip</value>
</data>
<data name="Options_PreviewOnlyIf_Name" xml:space="preserve">
<value>Only with parameter</value>
</data>
<data name="Options_PreviewOnlyIf_Description" xml:space="preserve">
<value>Show only if the text contains special parameter</value>
</data>
<data name="Options_PreviewMinimum_Name" xml:space="preserve">
<value>Minimum input length</value>
</data>
<data name="Options_PreviewMinimum_Description" xml:space="preserve">
<value>Show only if the text length is greater-than or equal</value>
</data>
</root>