Map renderer rework (#37306)
* Update TilePainter.cs * Add support for custom offsets, grid files, and markers * Dynamic file category handling
This commit is contained in:
@@ -12,6 +12,7 @@ public sealed class CommandLineArguments
|
||||
public bool ExportViewerJson { get; set; } = false;
|
||||
public string OutputPath { get; set; } = DirectoryExtensions.MapImages().FullName;
|
||||
public bool ArgumentsAreFileNames { get; set; } = false;
|
||||
public bool ShowMarkers { get; set; } = false;
|
||||
|
||||
public static bool TryParse(IReadOnlyList<string> args, [NotNullWhen(true)] out CommandLineArguments? parsed)
|
||||
{
|
||||
@@ -59,6 +60,11 @@ public sealed class CommandLineArguments
|
||||
parsed.ArgumentsAreFileNames = true;
|
||||
break;
|
||||
|
||||
case "-m":
|
||||
case "--markers":
|
||||
parsed.ShowMarkers = true;
|
||||
break;
|
||||
|
||||
case "-h":
|
||||
case "--help":
|
||||
PrintHelp();
|
||||
@@ -95,7 +101,9 @@ Options:
|
||||
Defaults to Resources/MapImages
|
||||
-f / --files
|
||||
This option tells the map renderer that you supplied a list of map file names instead of their ids.
|
||||
Example: Content.MapRenderer -f box.yml bagel.yml
|
||||
Example: Content.MapRenderer -f /Maps/box.yml /Maps/bagel.yml
|
||||
-m / --markers
|
||||
Show hidden markers on map render. Defaults to false.
|
||||
-h / --help
|
||||
Displays this help text");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user