feat: Implement the Dialog System (1.21.6+)#3143
Merged
Merged
Conversation
milutinke
marked this pull request as ready for review
June 14, 2026 00:13
milutinke
added a commit
that referenced
this pull request
Jun 17, 2026
After the dialog system PR (#3143), ResolveHexColors in ClassicConsoleBackend mapped every §#RRGGBB hex color to the nearest of 16 standard Minecraft colors via NearestMcColor. This meant all server-sent hex colors were downgraded to 4-bit ANSI regardless of the user's ConsoleColorMode setting. Replaced the nearest-color lookup with ColorHelper.GetColorEscapeCode, which generates the right output for each mode: 24-bit ANSI in vt100_24bit mode, 8-bit in vt100_8bit, 4-bit in vt100_4bit, ConsoleColor in legacy_4bit. Fixes #3146.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the #3141.
Implements support for the dialogs screen introduced in 1.20.6. MCC can now receive, display, and interact with server-sent dialogs through both CLI and TUI.
5 dialog types supported: Notice, Confirmation, Multi Action, Dialog List, Server Links
Dialog commands:
/dialog show/dialog click <n>/dialog click-label <text>/dialog set <input> <value>/dialog input <input> <value>/dialog cancel/dialog dismissCLI rendering example
TUI overlay
TODO: