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

Method addLighthouseButton

code/main/Pier.ts:21–24  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

19
20 // Private methods
21 private addLighthouseButton(x: number, y: number): void{
22 this.renderArea.addAsciiRealButton(Database.getText("pierLighthouseButton"), x, y, "pierLighthouseButton", Database.getTranslatedText("pierLighthouseButton"), true);
23 this.renderArea.addLinkCall(".pierLighthouseButton", new CallbackCollection(this.clickedOnLighthouseButton.bind(this), this.getGame().goToLighthouse.bind(this.getGame())));
24 }
25
26 private addTheSeaButton(x: number, y: number): void{
27 this.renderArea.addAsciiRealButton(Database.getText("pierTheSeaButton"), x, y, "pierTheSeaButton", Database.getTranslatedText("pierTheSeaButton"), true);

Callers 1

updateMethod · 0.95

Calls 5

addAsciiRealButtonMethod · 0.80
addLinkCallMethod · 0.80
bindMethod · 0.80
getTextMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected