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

Method loadFirstHouse

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

Source from the content-addressed store, hash-verified

97
98 // Private "load" methods
99 private loadFirstHouse(x: number, y: number): void{
100 // Buttons
101 this.renderArea.addMultipleAsciiNinjaButtons("mapVillageFirstHouseButton",
102 x+6, x+8, y,
103 x+1, x+10, y+1,
104 x, x+11, y+2,
105 x-1, x+12, y+3,
106 x, x+11, y+4,
107 x, x+11, y+5);
108 // Comments
109 this.renderArea.addFullComment(x + 6, y + 6, Database.getText("mapVillageLockedHouseComment"), Database.getTranslatedText("mapVillageLockedHouseComment"), "mapVillageFirstHouseComment");
110 // Interactions
111 this.renderArea.addLinkOver(".mapVillageFirstHouseButton, .mapVillageFirstHouseComment", ".mapVillageFirstHouseComment");
112 }
113
114 private loadSecondHouse(x: number, y: number): void{
115 // Buttons

Callers 1

updateMethod · 0.95

Calls 4

addFullCommentMethod · 0.80
addLinkOverMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected