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

Method addBackToTheVillageButton

code/main/House.ts:10–16  ·  view source on GitHub ↗
(renderArea: RenderArea, otherClass: string)

Source from the content-addressed store, hash-verified

8
9 // Special method used to add a button to go back to the village
10 public addBackToTheVillageButton(renderArea: RenderArea, otherClass: string): void{
11 this.addBackToButton(renderArea,
12 new CallbackCollection(this.getGame().goToVillage.bind(this.getGame())),
13 Database.getText("buttonBackToTheVillage"),
14 Database.getTranslatedText("buttonBackToTheVillage"),
15 otherClass);
16 }
17}

Callers 5

updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80

Calls 4

addBackToButtonMethod · 0.80
bindMethod · 0.80
getGameMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected