Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Use arrow keys to select.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinUwUxCat committed Sep 11, 2022
1 parent a1a0c7f commit 9c562d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down Expand Up @@ -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<string>("What do you want your map to be named?", validators: new[] {Validators.Required()});
logger.LogInformation("Exporting " + mapName + " to " + game + "...");
//TMNF/UF
Expand Down

0 comments on commit 9c562d9

Please sign in to comment.