This commit is contained in:
2022-07-09 09:48:58 +03:00
parent a66ebc43d9
commit 3839e4d838
17 changed files with 215 additions and 177 deletions

View File

@@ -10,12 +10,12 @@ namespace PluginManager.Others
/// </summary>
public class ProgressBar
{
public int Max { get; init; }
public float Max { get; init; }
public ConsoleColor Color { get; init; }
public bool NoColor { get; init; }
public void Update(int progress, double speed = -1, string? unit = null)
public void Update(float progress, double speed = -1, string? unit = null)
{
Console.CursorLeft = 0;
Console.Write("[");
@@ -146,6 +146,9 @@ namespace PluginManager.Others
Console.Write(m + " ");
}
Console.CursorLeft--;
if (appendNewLine)
Console.Write('\n');