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

Method loadSecondHouse

code/main/Village.ts:114–131  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

112 }
113
114 private loadSecondHouse(x: number, y: number): void{
115 // Buttons
116 this.renderArea.addMultipleAsciiButtons("mapVillageSecondHouseButton",
117 x+1, x+9, y,
118 x, x+10, y+1,
119 x-1, x+11, y+2,
120 x, x+10, y+3,
121 x, x+10, y+4,
122 x, x+10, y+5,
123 x, x+10, y+6,
124 x, x+10, y+7,
125 x, x+10, y+8);
126 // Comments
127 this.renderArea.addFullComment(x + 5, y + 9, Database.getText("mapVillageTheShopComment"), Database.getTranslatedText("mapVillageTheShopComment"), "mapVillageSecondHouseComment");
128 // Interactions
129 this.renderArea.addLinkOver(".mapVillageSecondHouseButton, .mapVillageSecondHouseComment", ".mapVillageSecondHouseComment");
130 this.renderArea.addLinkCall(".mapVillageSecondHouseButton, .mapVillageSecondHouseComment", new CallbackCollection(this.goToSecondHouse.bind(this)));
131 }
132
133 private loadThirdHouse(x: number, y: number){
134 // If we have the key to the third house

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