Пример #1
0
        private static void PrintHelp(NDesk.Options.OptionSet options)
        {
            Logger.WriteLine("{0} Utility, Version: {1}", Tiled2Unity.Info.GetLibraryName(), Tiled2Unity.Info.GetVersion());
            Logger.WriteLine("Usage: {0} [OPTIONS]+ TMXPATH [UNITYDIR]", Tiled2Unity.Info.GetLibraryName());
            Logger.WriteLine("Example: {0} -s=0.01 MyTiledMap.tmx ../../MyUnityProjectFolder/Assets/Tiled2Unity", Tiled2Unity.Info.GetLibraryName());
            Logger.WriteLine("");
            Logger.WriteLine("Options:");

            TextWriter writer = new StringWriter();
            options.WriteOptionDescriptions(writer);
            Logger.WriteLine(writer.ToString());

            Logger.WriteLine("Prefab object properties (set in TMX file for map or Tile/Object layer properties)");
            Logger.WriteLine("  unity:sortingLayerName");
            Logger.WriteLine("  unity:sortingOrder");
            Logger.WriteLine("  unity:layer");
            Logger.WriteLine("  unity:tag");
            Logger.WriteLine("  unity:scale");
            Logger.WriteLine("  unity:isTrigger");
            Logger.WriteLine("  unity:convex");
            Logger.WriteLine("  unity:ignore (value = [false|true|collision|visual])");
            Logger.WriteLine("  unity:resource (value = [false|true])");
            Logger.WriteLine("  unity:resourcePath");
            Logger.WriteLine("  (Other properties are exported for custom scripting in your Unity project)");
            Logger.WriteLine("Support Tiled Map Editor on Patreon: https://www.patreon.com/bjorn");
            Logger.WriteLine("Make a donation for Tiled2Unity: http://www.seanba.com/donate");
        }
Пример #2
0
 static void ShowHelp(NDesk.Options.OptionSet oset)
 {
     Console.WriteLine ("Usage: CLAutoThumbnailer [OPTIONS] videofilename.ext |");
     Console.WriteLine ("                                   -d directory      |");
     Console.WriteLine ("                                   commandfile.txt");
     Console.WriteLine ("Generates thumbnail pages for videos.");
     Console.WriteLine ("See http://rm2.github.com/CLAutoThumbnailer/ for detailed documentation.");
     Console.WriteLine ();
     Console.WriteLine ("Options:");
     oset.WriteOptionDescriptions (Console.Out);
 }
Пример #3
0
 /// <summary>
 ///     Shows information about the program to the user.
 /// </summary>
 /// <param name="options">The options.</param>
 private static void ShowHelp(NDesk.Options.OptionSet options)
 {
     Console.WriteLine();
     Console.WriteLine("Usage: weatherscraper [OPTIONS]");
     Console.WriteLine();
     Console.WriteLine("Options:");
     options.WriteOptionDescriptions(Console.Out);
 }
Пример #4
0
 public static void ShowHelp(NDesk.Options.OptionSet p)
 {
     Console.WriteLine ("Usage: "+Constants.myname+" [OPTIONS]");
     Console.WriteLine ("Options:");
     p.WriteOptionDescriptions (Console.Out);
 }