legacy color support

This commit is contained in:
BruceChen 2022-12-14 14:45:51 +08:00
parent 7900108763
commit 7ee08092d4
14 changed files with 116 additions and 97 deletions

View file

@ -1085,7 +1085,8 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to The settings for command completion suggestions..
/// Looks up a localized string similar to The settings for command completion suggestions.
///Custom colors are only available when using &quot;vt100_24bit&quot; color mode..
/// </summary>
internal static string Console_CommandSuggestion {
get {
@ -1112,20 +1113,20 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to If a garbled code like &quot;←[0m&quot; appears on the terminal, you can turn off this..
/// Looks up a localized string similar to Use &quot;disable&quot;, &quot;legacy_4bit&quot;, &quot;vt100_4bit&quot;, &quot;vt100_8bit&quot; or &quot;vt100_24bit&quot;. If a garbled code like &quot;←[0m&quot; appears on the terminal, you can try switching to &quot;legacy_4bit&quot; mode, or just disable it..
/// </summary>
internal static string Console_Enable_Color {
internal static string Console_General_ConsoleColorMode {
get {
return ResourceManager.GetString("Console.Enable_Color", resourceCulture);
return ResourceManager.GetString("Console.General.ConsoleColorMode", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You can use &quot;Ctrl+P&quot; to print out the current input and cursor position..
/// </summary>
internal static string Console_General_Display_Uesr_Input {
internal static string Console_General_Display_Input {
get {
return ResourceManager.GetString("Console.General.Display_Uesr_Input", resourceCulture);
return ResourceManager.GetString("Console.General.Display_Input", resourceCulture);
}
}
@ -1559,15 +1560,6 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to Use &quot;none&quot;, &quot;bit_4&quot;, &quot;bit_8&quot; or &quot;bit_24&quot;. This can be checked by opening the debug log..
/// </summary>
internal static string Main_Advanced_TerminalColorDepth {
get {
return ResourceManager.GetString("Main.Advanced.TerminalColorDepth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Uses more ram, cpu, bandwidth but allows you to move around..
/// </summary>

View file

@ -539,7 +539,8 @@ When this happens, you'll need to configure chat format below, see https://mccte
<value>Console-related settings.</value>
</data>
<data name="Console.CommandSuggestion" xml:space="preserve">
<value>The settings for command completion suggestions.</value>
<value>The settings for command completion suggestions.
Custom colors are only available when using "vt100_24bit" color mode.</value>
</data>
<data name="Console.CommandSuggestion.Enable" xml:space="preserve">
<value>Whether to display command suggestions in the console.</value>
@ -547,10 +548,10 @@ When this happens, you'll need to configure chat format below, see https://mccte
<data name="Console.CommandSuggestion.Use_Basic_Arrow" xml:space="preserve">
<value>Enable this option if the arrows in the command suggestions are not displayed properly in your terminal.</value>
</data>
<data name="Console.Enable_Color" xml:space="preserve">
<value>If a garbled code like "←[0m" appears on the terminal, you can turn off this.</value>
<data name="Console.General.ConsoleColorMode" xml:space="preserve">
<value>Use "disable", "legacy_4bit", "vt100_4bit", "vt100_8bit" or "vt100_24bit". If a garbled code like "←[0m" appears on the terminal, you can try switching to "legacy_4bit" mode, or just disable it.</value>
</data>
<data name="Console.General.Display_Uesr_Input" xml:space="preserve">
<data name="Console.General.Display_Input" xml:space="preserve">
<value>You can use "Ctrl+P" to print out the current input and cursor position.</value>
</data>
<data name="Head" xml:space="preserve">
@ -701,9 +702,6 @@ Usage examples: "/tell &lt;mybot&gt; connect Server1", "/connect Server2"</value
<data name="Main.Advanced.temporary_fix_badpacket" xml:space="preserve">
<value>Temporary fix for Badpacket issue on some servers.</value>
</data>
<data name="Main.Advanced.TerminalColorDepth" xml:space="preserve">
<value>Use "none", "bit_4", "bit_8" or "bit_24". This can be checked by opening the debug log.</value>
</data>
<data name="Main.Advanced.terrain_and_movements" xml:space="preserve">
<value>Uses more ram, cpu, bandwidth but allows you to move around.</value>
</data>