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

Method draw

code/main/QuestLogMessage.ts:23–32  ·  view source on GitHub ↗
(renderArea: RenderArea, pos: Pos, width: number)

Source from the content-addressed store, hash-verified

21
22 // Public methods
23 public draw(renderArea: RenderArea, pos: Pos, width: number): void{
24 if(this.left != null){
25 renderArea.drawString(this.left, pos.x, pos.y);
26 if(this.bold) renderArea.addBold(pos.x, pos.x + this.left.length, pos.y);
27 }
28 if(this.right != null){
29 renderArea.drawString(this.right, pos.x + width - this.right.length, pos.y);
30 if(this.bold) renderArea.addBold(pos.x + width - this.right.length, width, pos.y);
31 }
32 }
33}

Callers

nothing calls this directly

Calls 2

drawStringMethod · 0.80
addBoldMethod · 0.80

Tested by

no test coverage detected