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

Method drawOnButton

code/main/TheComputer.ts:89–98  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

87 }
88
89 private drawOnButton(x: number, y: number): void{
90 // Draw the button
91 this.renderArea.addMultipleAsciiButtons("theComputerOnButton",
92 x + 1, x + 4, y,
93 x, x + 5, y + 1,
94 x + 1, x + 4, y + 2);
95
96 // Add the link
97 this.renderArea.addLinkCall(".theComputerOnButton", new CallbackCollection(this.switchOnOff.bind(this)));
98 }
99
100 private drawLines(x: number, y: number, minY: number): void{
101 for(var i = this.lines.length-1; i >= 0; i--){

Callers 1

drawMethod · 0.95

Calls 3

addLinkCallMethod · 0.80
bindMethod · 0.80

Tested by

no test coverage detected