(str: string, x1: number, x2: number, y: number)
| 286 | } |
| 287 | |
| 288 | public drawHorizontalLine(str: string, x1: number, x2: number, y: number): boolean{ |
| 289 | var strBuffer: string = ""; |
| 290 | |
| 291 | // We put the string to draw in a buffer (for optimizations reasons) |
| 292 | strBuffer = strBuffer.fillWith(str, x2-x1); |
| 293 | |
| 294 | // We draw the string |
| 295 | return this.drawString(strBuffer, x1, y); |
| 296 | } |
| 297 | |
| 298 | public drawSpeech(str: string, y: number, x1: number, x2: number, speechClass: string = null, translatedText: string = null): number{ |
| 299 | var currentLine: string = ""; // Current line |
no test coverage detected