(renderArea: RenderArea)
| 25 | } |
| 26 | |
| 27 | public draw(renderArea: RenderArea): void{ |
| 28 | // Draw the separating line |
| 29 | renderArea.drawVerticalLine("|", 26, 3, 11); |
| 30 | |
| 31 | // Draw the ascii art on the left |
| 32 | renderArea.drawArray(Database.getAscii(this.asciiName), 0 + Math.floor((26-Database.getAsciiWidth(this.asciiName))/2), 2 + Math.floor((10-Database.getAsciiHeight(this.asciiName))/2)); |
| 33 | |
| 34 | // Draw the entries |
| 35 | for(var i = 0; i < this.entries.length; i++){ |
| 36 | this.entries[i].draw(renderArea, 27, 3+Math.floor((10-(this.entries.length*2))/2)+i*2, (this.currentlySelectedEntryIndex == i), 26); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | public pressedDownButton(): void{ |
| 41 | this.currentlySelectedEntryIndex += 1; |
nothing calls this directly
no test coverage detected