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

Method drawRoom1

code/main/Castle.ts:65–77  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

63 }
64
65 private drawRoom1(x: number, y: number): void{
66 // Buttons
67 this.renderArea.addMultipleAsciiButtons("castleRoom1Button",
68 x, x+1, y,
69 x, x+1, y+1);
70
71 // Comment
72 this.renderArea.addFullComment(x - 6, y, Database.getText("castleARoomComment"), Database.getTranslatedText("castleARoomComment"), "castleRoom1Comment");
73
74 // Interactions
75 this.renderArea.addLinkOver(".castleRoom1Button, .castleRoom1Comment", ".castleRoom1Comment");
76 this.renderArea.addLinkCall(".castleRoom1Button, .castleRoom1Comment", new CallbackCollection(this.goToRoom1.bind(this)));
77 }
78
79 private drawRoom2(x: number, y: number): void{
80 // Buttons

Callers 1

updateMethod · 0.95

Calls 6

addFullCommentMethod · 0.80
addLinkOverMethod · 0.80
addLinkCallMethod · 0.80
bindMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected