Browse Source

Quick.Console: new cout function overload

Unknown 7 years ago
parent
commit
5acaef87d3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Quick.Console.pas

+ 5 - 0
Quick.Console.pas

@@ -114,6 +114,7 @@ type
   procedure cout(const cMsg : Double; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cEventType : TLogEventType); overload;
   procedure cout(const cMsg : string; cColor : TConsoleColor); overload;
+  procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cEventType : TLogEventType); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; cColor : TConsoleColor); overload;
   procedure coutXY(x,y : Integer; const cMsg : string; params : array of const; cEventType : TLogEventType); overload;
@@ -229,6 +230,10 @@ begin
   end;
 end;
 
+procedure cout(const cMsg : string; params : array of const; cEventType : TLogEventType);
+begin
+  cout(Format(cMsg,params),cEventType);
+end;
 
 function GetCursorX: Integer; {$IFDEF INLINES}inline;{$ENDIF}
 var