mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Messaging improvements + Added auto show dialogs in classic console mode
This commit is contained in:
parent
c0d983272b
commit
7f2a71f9fe
5 changed files with 20 additions and 2 deletions
|
|
@ -3440,13 +3440,15 @@ namespace MinecraftClient
|
|||
public void OnDialogShown(DialogDefinition dialog, DialogPhase phase)
|
||||
{
|
||||
var instance = Dialogs.Show(dialog, phase);
|
||||
Tui.DialogTuiHost.TryOpen(this, instance, force: phase == DialogPhase.Configuration);
|
||||
if (!Tui.DialogTuiHost.TryOpen(this, instance, force: phase == DialogPhase.Configuration))
|
||||
ConsoleIO.WriteLineFormatted(DialogFormatter.Render(instance), acceptnewlines: true);
|
||||
}
|
||||
|
||||
public void OnDialogRegistryReferenceShown(int protocolId, DialogPhase phase)
|
||||
{
|
||||
var instance = Dialogs.ShowRegistryReference(protocolId, phase);
|
||||
Tui.DialogTuiHost.TryOpen(this, instance, force: phase == DialogPhase.Configuration);
|
||||
if (!Tui.DialogTuiHost.TryOpen(this, instance, force: phase == DialogPhase.Configuration))
|
||||
ConsoleIO.WriteLineFormatted(DialogFormatter.Render(instance), acceptnewlines: true);
|
||||
}
|
||||
|
||||
public void OnDialogCleared()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue