MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / drawHorizontalLine

Method drawHorizontalLine

code/main/RenderArea.ts:288–296  ·  view source on GitHub ↗
(str: string, x1: number, x2: number, y: number)

Source from the content-addressed store, hash-verified

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

Callers 8

drawQuestLogoMethod · 0.80
updateMethod · 0.80
drawGameMethod · 0.80
updateAllMethod · 0.80
drawMethod · 0.80
drawLocalSaveMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls 2

drawStringMethod · 0.95
fillWithMethod · 0.80

Tested by

no test coverage detected