()
| 1138 | } |
| 1139 | |
| 1140 | render() |
| 1141 | { |
| 1142 | super.render(); |
| 1143 | |
| 1144 | // draw the text scaled to fit |
| 1145 | const textSize = this.getTextSize(); |
| 1146 | let text = this.text; |
| 1147 | if (this.isKeyInputObject()) // add a cursor to end of text |
| 1148 | text += timeReal%1 < .5 ? '█' : '░'; |
| 1149 | uiSystem.drawText(text, this.pos, textSize, |
| 1150 | this.textColor, this.textLineWidth, this.textLineColor, this.align, this.font, this.fontStyle, true, this.textShadow); |
| 1151 | } |
| 1152 | } |
| 1153 | |
| 1154 | /////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected