Fix: test player, test maestro account
This commit is contained in:
@@ -156,9 +156,11 @@ TypingExamButton.prototype.setInputEnabled = function(isEnabled) {
|
||||
|
||||
if(isEnabled === true) {
|
||||
this.mouseOut();
|
||||
this.writingNameText.style.fill = MainColor.LINEN_STRING;
|
||||
this.animal.sprite.alpha = 1;
|
||||
} else {
|
||||
this.buttonDisabled();
|
||||
this.writingNameText.style.fill = MainColor.GRAY_STRING;
|
||||
this.animal.sprite.alpha = 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -383,6 +383,14 @@ MainMenu.prototype.updateTypingExamAppButtons = function(appData) {
|
||||
if(i < count) {
|
||||
button.setActive(true);
|
||||
button.updateAppData(appDataList[i]);
|
||||
console.log(appDataList[i]);
|
||||
if(isExperiencePlayerAccount() === true) {
|
||||
var splitedFilename = appDataList[i].filename.split("_");
|
||||
var language = splitedFilename[0];
|
||||
if(language === "english") {
|
||||
button.setInputEnabled(false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
button.setActive(true);
|
||||
button.showEmptyDisabled();
|
||||
|
||||
Reference in New Issue
Block a user