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

Method loadFifthHouse

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

Source from the content-addressed store, hash-verified

195 }
196
197 private loadFifthHouse(x: number, y: number): void{
198 // Buttons
199 this.renderArea.addMultipleAsciiButtons("mapVillageFifthHouseButton",
200 x+1, x+9, y,
201 x, x+10, y+1,
202 x-1, x+11, y+2,
203 x, x+10, y+3,
204 x, x+10, y+4);
205 // Comments
206 this.renderArea.addFullComment(x + 5, y + 5, Database.getText("mapVillageAHouseComment"), Database.getTranslatedText("mapVillageAHouseComment"), "mapVillageFifthHouseComment");
207 // Interactions
208 this.renderArea.addLinkOver(".mapVillageFifthHouseButton, .mapVillageFifthHouseComment", ".mapVillageFifthHouseComment");
209 this.renderArea.addLinkCall(".mapVillageFifthHouseButton, .mapVillageFifthHouseComment", new CallbackCollection(this.goToFifthHouse.bind(this)));
210 }
211}

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