Skip to content

Commit 655a0d0

Browse files
committed
more things I missed
1 parent 9d2aaa2 commit 655a0d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Source/script/simba.script_runner.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ procedure TSimbaScriptRunner.DoDebugLn(Flags: EDebugLnFlags; Text: String);
4747
DebugLn(Flags, Text)
4848
else
4949
begin
50-
if Application.HasOption('silent') and (Flags * [EDebugLn.YELLOW, EDebugLn.GREEN] <> []) then
50+
if Application.HasOption('silent') and (Flags * [EDebugLn.BACKGROUND_COLOR] <> []) then
5151
Exit;
5252

5353
DebugLn(Text);
@@ -105,7 +105,7 @@ procedure TSimbaScriptRunner.Execute;
105105

106106
try
107107
if FScript.Compile() then
108-
DoDebugLn([EDebugLn.GREEN], 'Succesfully compiled in %.2f milliseconds.'.Format([FScript.CompileTime]));
108+
DoDebugLn([EDebugLn.BACKGROUND_COLOR], GetLineColor(EDebugLnColor.GREEN), 'Succesfully compiled in %.2f milliseconds.'.Format([FScript.CompileTime]));
109109
except
110110
on E: Exception do
111111
begin
@@ -119,9 +119,9 @@ procedure TSimbaScriptRunner.Execute;
119119
FScript.Run();
120120

121121
if (FScript.RunningTime < 10000) then
122-
DoDebugLn([EDebugLn.GREEN], 'Succesfully executed in %.2f milliseconds.'.Format([FScript.RunningTime]))
122+
DoDebugLn([EDebugLn.BACKGROUND_COLOR], GetLineColor(EDebugLnColor.GREEN), 'Succesfully executed in %.2f milliseconds.'.Format([FScript.RunningTime]))
123123
else
124-
DoDebugLn([EDebugLn.GREEN], 'Succesfully executed in %s.'.Format([FormatMilliseconds(Round(FScript.RunningTime), '\[hh:mm:ss\]')]));
124+
DoDebugLn([EDebugLn.BACKGROUND_COLOR], GetLineColor(EDebugLnColor.GREEN), 'Succesfully executed in %s.'.Format([FormatMilliseconds(Round(FScript.RunningTime), '\[hh:mm:ss\]')]));
125125
except
126126
on E: Exception do
127127
DoError(E);

0 commit comments

Comments
 (0)