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

Method addBackToTheCastleButton

code/main/CastleRoom.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 castle
10 public addBackToTheCastleButton(renderArea: RenderArea, otherClass: string): void{
11 this.addBackToButton(renderArea,
12 new CallbackCollection(this.getGame().goToCastle.bind(this.getGame())),
13 Database.getText("buttonBackToTheCastle"),
14 Database.getTranslatedText("buttonBackToTheCastle"),
15 otherClass);
16 }
17}

Callers 4

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