Add clearer instructions for installation prompt

This commit is contained in:
Canon
2026-03-29 08:43:23 +08:00
parent 4c56c5183c
commit ffb26dbfb9
+6 -2
View File
@@ -201,8 +201,10 @@ public class InteractiveMenu
var selected = AnsiConsole.Prompt(
new MultiSelectionPrompt<RemoteRepo>()
.Title("[bold]Select mods to install:[/]")
.InstructionsText("[grey](Press <space> to mark a mod for install, <enter> to confirm)[/]")
.PageSize(15)
.Required(false)
.NotRequired()
.WrapAround() // Pressing down on last item goes to first
.UseConverter(r => string.IsNullOrEmpty(r.Description)
? r.Name
: $"{r.Name} [grey]— {Truncate(r.Description, 50)}[/]")
@@ -247,8 +249,10 @@ public class InteractiveMenu
var selected = AnsiConsole.Prompt(
new MultiSelectionPrompt<InstalledMod>()
.Title("[bold red]Select mods to uninstall:[/]")
.InstructionsText("[grey](Press <space> to mark a mod for uninstallation, <enter> to confirm)[/]")
.PageSize(15)
.Required(false)
.NotRequired()
.WrapAround()
.UseConverter(m => m.Name)
.AddChoices(installedMods));