From 9c562d920869989c0f373b3b34729affd21564fd Mon Sep 17 00:00:00 2001 From: LinuxCat Date: Sun, 11 Sep 2022 18:41:36 +0200 Subject: [PATCH] Use arrow keys to select. --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 21d48e6..65d347b 100644 --- a/Program.cs +++ b/Program.cs @@ -107,7 +107,7 @@ void unMapTMNESWC(CGameCtnChallenge map, string mapName, string version, string if (Directory.Exists(args[0])){ //BATCH logger.LogInformation("Batch computing enabled. All files in the provided folder will be processed."); - var game = Prompt.Select("What game will the converted maps be for?", new[] {"TrackMania Nations/United Forever", "TrackMania Nations ESWC"}); + var game = Prompt.Select("What game will the converted maps be for? Use arrow keys to select.", new[] {"TrackMania Nations/United Forever", "TrackMania Nations ESWC"}, defaultValue:"TrackMania Nations/United Forever"); DirectoryInfo sDir = new DirectoryInfo(args[0]); Directory.CreateDirectory(sDir.Name + "-exported"); var eDir = sDir.FullName.TrimEnd('/', '\\') + "-exported/"; @@ -148,7 +148,7 @@ void unMapTMNESWC(CGameCtnChallenge map, string mapName, string version, string return 0; } - var game = version == "TM2" ? Prompt.Select("What game will this map be for?", new[] {"TrackMania Nations/United Forever", "TrackMania Nations ESWC"}) : "TrackMania Nations ESWC"; + var game = version == "TM2" ? Prompt.Select("What game will this map be for? Use arrow keys to select.", new[] {"TrackMania Nations/United Forever", "TrackMania Nations ESWC"}) : "TrackMania Nations ESWC"; var mapName = Prompt.Input("What do you want your map to be named?", validators: new[] {Validators.Required()}); logger.LogInformation("Exporting " + mapName + " to " + game + "..."); //TMNF/UF