(percent)
| 124 | this.fillColor = dictionary.fillColor; |
| 125 | } |
| 126 | update(percent) { |
| 127 | let text = percent + "%"; |
| 128 | let width = render.getTextWidth(text, this.font); |
| 129 | render.begin(this.x, this.y, this.width, this.height); |
| 130 | render.fillRectangle(this.backgroundColor, this.x, this.y, this.width, this.height); |
| 131 | render.drawText(text, this.font, this.fillColor, (render.width - width) >> 1, this.y); |
| 132 | render.end(); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | let progressWidth = render.getTextWidth("100%", progressFont); // maximum width |
nothing calls this directly
no test coverage detected