()
| 106 | } |
| 107 | |
| 108 | private createQuestionsArray(): void{ |
| 109 | // We empty the array |
| 110 | this.questionsArray = []; |
| 111 | |
| 112 | // Add the first basic questions |
| 113 | this.addQuestion("lighthouseQuestionWho", Database.getText("lighthouseQuestionWho"), Database.getTranslatedText("lighthouseQuestionWho")); |
| 114 | this.addQuestion("lighthouseQuestionWhat", Database.getText("lighthouseQuestionWhat"), Database.getTranslatedText("lighthouseQuestionWhat")); |
| 115 | this.addQuestion("lighthouseQuestionWhyEatCandies", Database.getText("lighthouseQuestionWhyEatCandies"), Database.getTranslatedText("lighthouseQuestionWhyEatCandies")); |
| 116 | this.addQuestion("lighthouseQuestionCandyBox", Database.getText("lighthouseQuestionCandyBox"), Database.getTranslatedText("lighthouseQuestionCandyBox")); |
| 117 | |
| 118 | // Add the question about the dragon is we unlocked it |
| 119 | if(Saving.loadBool("dragonUnlockedCyclops")){ |
| 120 | this.addQuestion("lighthouseQuestionDragon", Database.getText("lighthouseQuestionDragon"), Database.getTranslatedText("lighthouseQuestionDragon")); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | private questionSelected(): void{ |
| 125 | // Get the selected language id |
no test coverage detected