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

Method loadATree

code/main/MainMap.ts:160–173  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

158
159 // Private "load" methods
160 private loadATree(x: number, y: number): void{
161 // Buttons
162 this.renderArea.addMultipleAsciiButtons("mapATreeButton",
163 x+2, x+5, y,
164 x+1, x+6, y+1,
165 x, x+7, y+2,
166 x+2, x+5, y+3,
167 x+2, x+5, y+4);
168 // Comments
169 this.renderArea.addFullComment(x - 2, y + 3, Database.getText("mapATreeComment"), Database.getTranslatedText("mapATreeComment"), "mapATreeComment");
170 // Interactions
171 this.renderArea.addLinkOver(".mapATreeButton, .mapATreeComment", ".mapATreeComment");
172 this.renderArea.addLinkCall(".mapATreeButton, .mapATreeComment", new CallbackCollection(this.goToATree.bind(this)));
173 }
174
175 private loadBridge(x: number, y: number): void{
176 // Buttons

Callers 1

loadMethod · 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