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

Method addBackToMainMapButton

code/main/Place.ts:20–26  ·  view source on GitHub ↗
(renderArea: RenderArea, otherClass: string, textName: string = "buttonBackToTheMap")

Source from the content-addressed store, hash-verified

18 }
19
20 public addBackToMainMapButton(renderArea: RenderArea, otherClass: string, textName: string = "buttonBackToTheMap"): void{
21 this.addBackToButton(renderArea,
22 new CallbackCollection(this.getGame().goToMainMap.bind(this.getGame())),
23 Database.getText(textName),
24 Database.getTranslatedText(textName),
25 otherClass);
26 }
27
28 // Public getters
29 public getDefaultScroll(): number{

Callers 13

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

Calls 4

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

Tested by

no test coverage detected