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

Method addExitQuestButton

code/main/Quest.ts:112–121  ·  view source on GitHub ↗
(callbackCollection: CallbackCollection, buttonText: string)

Source from the content-addressed store, hash-verified

110 }
111
112 public addExitQuestButton(callbackCollection: CallbackCollection, buttonText: string): void{
113 this.addBackToButton(this.renderArea,
114 callbackCollection,
115 Database.getText(buttonText),
116 Database.getTranslatedText(buttonText),
117 buttonText,
118 0,
119 ((this.renderArea.getWidth()-100) - this.getGap())/2 + (50 - Database.getText(buttonText).length/2)
120 );
121 }
122
123 public castPlayerAcidRain(areaPosition: Pos = null, areaSize: Pos = null, maxLeftDistanceFromPlayer: number = 50, maxRightDistanceFromPlayer: number = 50): void{
124 // We set the position & size of the area of the acid rain

Callers 15

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

getGapMethod · 0.95
addBackToButtonMethod · 0.80
getTextMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected