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

Method loadBridge

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

Source from the content-addressed store, hash-verified

173 }
174
175 private loadBridge(x: number, y: number): void{
176 // Buttons
177 this.renderArea.addMultipleAsciiButtons("mapBridgeButton",
178 x, x+3, y,
179 x, x+3, y+1,
180 x, x+3, y+2,
181 x, x+3, y+3,
182 x, x+3, y+4,
183 x, x+3, y+5);
184 // Comments
185 this.renderArea.addFullComment(x + 2, y + 2, Database.getText("mapBridgeComment"), Database.getTranslatedText("mapBridgeComment"), "mapBridgeComment");
186 // Interactions
187 this.renderArea.addLinkOver(".mapBridgeButton, .mapBridgeComment", ".mapBridgeComment");
188 this.renderArea.addLinkCall(".mapBridgeButton, .mapBridgeComment", new CallbackCollection(this.goToBridge.bind(this)));
189 }
190
191 private loadCastle(x: number, y: number): void{
192 // 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