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

Method drawRoom2

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

Source from the content-addressed store, hash-verified

77 }
78
79 private drawRoom2(x: number, y: number): void{
80 // Buttons
81 this.renderArea.addMultipleAsciiButtons("castleRoom2Button",
82 x, x+1, y,
83 x, x+1, y+1);
84
85 // Comment
86 this.renderArea.addFullComment(x - 6, y, Database.getText("castleADarkRoomComment"), Database.getTranslatedText("castleADarkRoomComment"), "castleRoom2Comment");
87
88 // Interactions
89 this.renderArea.addLinkOver(".castleRoom2Button, .castleRoom2Comment", ".castleRoom2Comment");
90 this.renderArea.addLinkCall(".castleRoom2Button, .castleRoom2Comment", new CallbackCollection(this.goToRoom2.bind(this)));
91 }
92
93 private drawRoom3(x: number, y: number): void{
94 // 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