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

Method drawRoom3

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

Source from the content-addressed store, hash-verified

91 }
92
93 private drawRoom3(x: number, y: number): void{
94 // Buttons
95 this.renderArea.addMultipleAsciiButtons("castleRoom3Button",
96 x, x+1, y,
97 x, x+1, y+1);
98
99 // Comment
100 this.renderArea.addFullComment(x - 6, y, Database.getText("castleARoomComment"), Database.getTranslatedText("castleARoomComment"), "castleRoom3Comment");
101
102 // Interactions
103 this.renderArea.addLinkOver(".castleRoom3Button, .castleRoom3Comment", ".castleRoom3Comment");
104 this.renderArea.addLinkCall(".castleRoom3Button, .castleRoom3Comment", new CallbackCollection(this.goToRoom3.bind(this)));
105 }
106
107 private drawStairs(x: number, y: number): void{
108 // 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