WriteLineColour() public static method

public static WriteLineColour ( ConsoleColor colour, string MessageFormat ) : void
colour ConsoleColor
MessageFormat string
return void
Exemplo n.º 1
0
        protected void PrintIntro()
        {
            ConsoleColor originalBackColour;

            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.Write(" SEconomy Update ");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(this.Version.Build);
            Console.ForegroundColor = ConsoleColor.DarkCyan;
            var ApiVersionFor = typeof(SEconomyPlugin).GetCustomAttributes(false)[0] as ApiVersionAttribute;

            Console.Write(" for API {0}.{1}", ApiVersionFor.ApiVersion.Major, ApiVersionFor.ApiVersion.Minor);

#if __PREVIEW
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write(" Preview");

            if (this.Version.Revision > 0)
            {
                Console.Write(" " + this.Version.Revision);
            }
#endif

            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.Write(" Copyright (C) Wolfje, 2014-2016 - ");

            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Write("http://github.com/tylerjwatson/SEconomy");

            Console.WriteLine("\r\n");

            originalBackColour      = Console.BackgroundColor;
            Console.ForegroundColor = ConsoleColor.Black;
            Console.BackgroundColor = ConsoleColor.Yellow;
            Console.WriteLine(" SEconomy is free software.  If you paid for it you were scammed.");
            Console.BackgroundColor = originalBackColour;
            Console.WriteLine("\r\n");


#if __PREVIEW
            ConsoleEx.WriteLineColour(ConsoleColor.DarkRed, " This is a preview version of SEconomy.");
            ConsoleEx.WriteLineColour(ConsoleColor.DarkRed, " Things may not work as expected.  Please submit issues at the URL above.");
            Console.WriteLine();
#endif

            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine(" Please wait...");
            Console.WriteLine();
            Console.ResetColor();
        }
Exemplo n.º 2
0
        protected void PrintIntro()
        {
            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.Write(" SEconomy Update ");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write(this.Version.Build);

#if __PREVIEW
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.Write(" Preview");

            if (this.Version.Revision > 0)
            {
                Console.Write(" " + this.Version.Revision);
            }
#endif

            Console.WriteLine();
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.Write(" Copyright (C) Wolfje, 2014 - ");

            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Write("http://plugins.tw.id.au");

            Console.WriteLine("\r\n");

#if __PREVIEW
            ConsoleEx.WriteLineColour(ConsoleColor.DarkRed, " This is a preview version of SEconomy.");
            ConsoleEx.WriteLineColour(ConsoleColor.DarkRed, " Things may not work as expected.  Please submit issues at the URL above.");
            Console.WriteLine();
#endif

            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine(" Please wait...");
            Console.WriteLine();
            Console.ResetColor();
        }