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

Method loadVillage

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

Source from the content-addressed store, hash-verified

433 }
434
435 private loadVillage(x: number, y: number): void{
436 // Buttons
437 this.renderArea.addMultipleAsciiButtons("mapVillageButton",
438 x+11, x+19, y,
439 x+7, x+19, y+1,
440 x+4, x+21, y+2,
441 x, x+21, y+3,
442 x, x+18, y+4,
443 x+4, x+18, y+5,
444 x+8, x+11, y+6);
445 // Comments
446 this.renderArea.addFullComment(x + 11, y + 3, Database.getText("mapVillageComment"), Database.getTranslatedText("mapVillageComment"), "mapVillageComment");
447 // Interactions
448 this.renderArea.addLinkOver(".mapVillageButton, .mapVillageComment", ".mapVillageComment");
449 this.renderArea.addLinkCall(".mapVillageButton, .mapVillageComment", new CallbackCollection(this.getGame().goToVillage.bind(this.getGame())));
450 }
451
452 private loadWishingWell(x: number, y: number): void{
453 // Buttons

Callers 1

loadMethod · 0.95

Calls 7

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

Tested by

no test coverage detected