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

Method loadFarm

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

Source from the content-addressed store, hash-verified

255 }
256
257 private loadFarm(x: number, y: number): void{
258 // Buttons
259 this.renderArea.addMultipleAsciiButtons("mapFarmButton",
260 x+5, x+15, y,
261 x+5, x+15, y+1,
262 x+6, x+16, y+2,
263 x+6, x+16, y+3,
264 x, x+16, y+3,
265 x, x+16, y+4,
266 x, x+16, y+5,
267 x, x+16, y+6,
268 x, x+16, y+7,
269 x, x+16, y+8,
270 x, x+16, y+9,
271 x+6, x+16, y+10
272 );
273 // Comments
274 this.renderArea.addFullComment(x + 16, y + 5, Database.getText("mapFarmComment"), Database.getTranslatedText("mapFarmComment"), "mapFarmComment");
275 // Interactions
276 this.renderArea.addLinkOver(".mapFarmButton, .mapFarmComment", ".mapFarmComment");
277 this.renderArea.addLinkCall(".mapFarmButton, .mapFarmComment", new CallbackCollection(this.goToFarm.bind(this)));
278 }
279
280 private loadForest(x: number, y: number): void{
281 // 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