Fix: typing test menu - button icon bug
This commit is contained in:
@@ -399,6 +399,27 @@ DBConnectManager.prototype.requestAppRanking = function(maestroID, appID, onSucc
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBConnectManager.prototype.requestLicenseTimeData = function(maestroID, playerID, defaultStartTime, onSucceededListener, onFailedListener) {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("POST", this.phpPath + "server/license_timer/get_license_time_data.php", true);
|
||||||
|
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||||
|
xhr.onreadystatechange = function() {
|
||||||
|
if(xhr.readyState == 4 && xhr.status == 200) {
|
||||||
|
var replyJSON = JSON.parse(xhr.responseText);
|
||||||
|
|
||||||
|
if(replyJSON != null)
|
||||||
|
onSucceededListener(replyJSON);
|
||||||
|
else
|
||||||
|
onFailedListener(replyJSON);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
xhr.send(
|
||||||
|
"MaestroID=" + maestroID
|
||||||
|
+ "&PlayerID=" + playerID
|
||||||
|
+ "&DefaultStartTime=" + defaultStartTime
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
DBConnectManager.prototype.loadTempPlayerHistory = function(historyRecordManager) {
|
DBConnectManager.prototype.loadTempPlayerHistory = function(historyRecordManager) {
|
||||||
historyRecordManager.push(new HistoryRecord("05/14", "space_invaders", 14460));
|
historyRecordManager.push(new HistoryRecord("05/14", "space_invaders", 14460));
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ var MenuTypingTest = {
|
|||||||
animalSprite = new Animal(Animal.TYPE_ICON, 0, 0, 0);
|
animalSprite = new Animal(Animal.TYPE_ICON, 0, 0, 0);
|
||||||
// animalSprite.sprite.tint = RoundRectButtonSetting.DEFAULT_BUTTON_COLORS.disabled;
|
// animalSprite.sprite.tint = RoundRectButtonSetting.DEFAULT_BUTTON_COLORS.disabled;
|
||||||
} else {
|
} else {
|
||||||
var animalLevel = Animal.animalLevelIDByRecord(appHighestRecord, Animal.TYPE_PRACTICE);
|
var animalLevel = Animal.animalLevelIDByRecord(appHighestRecord, Animal.TYPE_TEST);
|
||||||
animalSprite = new Animal(Animal.TYPE_ICON, animalLevel, 0, 0);
|
animalSprite = new Animal(Animal.TYPE_ICON, animalLevel, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ var MenuTypingTest = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
downloadListSucceeded: function(replyJSON) {
|
downloadListSucceeded: function(replyJSON) {
|
||||||
// console.log(replyJSON);
|
console.log(replyJSON);
|
||||||
|
|
||||||
var buttonWidthGap = TypingAppButton.BUTTON_WIDTH + MenuTypingTest.BUTTON_GAP;
|
var buttonWidthGap = TypingAppButton.BUTTON_WIDTH + MenuTypingTest.BUTTON_GAP;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user