* 显示步骤进度
(current: number, total: number, message: string)
| 47 | * 显示步骤进度 |
| 48 | */ |
| 49 | public static step(current: number, total: number, message: string): void { |
| 50 | const percentage = Math.round((current / total) * 100); |
| 51 | const progress = this.createProgressBar(percentage, 30); |
| 52 | |
| 53 | UIDisplay.text( |
| 54 | `${UIStyles.status.info(`[${current}/${total}]`)} ${progress} ${percentage}% - ${message}` |
| 55 | ); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * 显示带时间的进度 |
nothing calls this directly
no test coverage detected