Fix: hyperlink to TypingExamStage
This commit is contained in:
@@ -68,12 +68,8 @@ TypingExamButton.prototype.makeLetterCountText = function() {
|
||||
var letterCountText = game.add.text(20, this.mainText.y, "");
|
||||
letterCountText.anchor.set(0, 0.5);
|
||||
letterCountText.font = this.setting.font;
|
||||
letterCountText.fontSize = 14; // this.setting.fontSize;
|
||||
letterCountText.style.fill = "white";
|
||||
|
||||
// letterCountText.style.fill = "#0xFFFFFF";
|
||||
// letterCountText.addColor("0xffffff", 0);
|
||||
// mainText.fontWeight = "bolder";
|
||||
letterCountText.fontSize = 13;
|
||||
letterCountText.style.fill = MainColor.LIGHT_CHOCO_STRING;
|
||||
letterCountText.lineSpacing = ButtonSetting.DEFAULT_TEXT_LINE_SPACING_PX;
|
||||
|
||||
return letterCountText;
|
||||
@@ -127,13 +123,9 @@ TypingExamButton.prototype.setInputEnabled = function(isEnabled) {
|
||||
|
||||
if(isEnabled === true) {
|
||||
this.mouseOut();
|
||||
// this.keyboardSprite.tint = MainColor.WHITE_HEX;
|
||||
// this.animal.sprite.tint = MainColor.WHITE_HEX;
|
||||
this.animal.sprite.alpha = 1;
|
||||
} else {
|
||||
this.buttonDisabled();
|
||||
// this.keyboardSprite.tint = MainColor.DIM_GRAY_HEX;
|
||||
// this.animal.sprite.tint = MainColor.DIM_GRAY_HEX;
|
||||
this.animal.sprite.alpha = 0.3;
|
||||
}
|
||||
}
|
||||
@@ -177,37 +169,18 @@ TypingExamButton.prototype.updateAppData = function(appData) {
|
||||
}
|
||||
|
||||
TypingExamButton.prototype.clickEvent = function() {
|
||||
console.log(this.writingID);
|
||||
console.log(this.filename);
|
||||
/*
|
||||
sessionStorageManager.setPlayingAppID(this.appData.appID);
|
||||
sessionStorageManager.setPlayingAppName(this.appData.appName);
|
||||
sessionStorageManager.setPlayingAppKoreanName(this.appData.koreanName);
|
||||
|
||||
sessionStorageManager.setPlayingAppID(200);
|
||||
sessionStorageManager.setPlayingAppName("typing_exam");
|
||||
sessionStorageManager.setPlayingAppKoreanName("타자검정");
|
||||
sessionStorageManager.setWritingID(this.writingID);
|
||||
|
||||
if(isExperiencePlayerAccount())
|
||||
location.href = '../../web/client/ads.html';
|
||||
else
|
||||
location.href = '../../web/client/start.html';
|
||||
*/
|
||||
}
|
||||
|
||||
/*
|
||||
TypingExamButton.prototype.onClick = function() {
|
||||
sessionStorageManager.setPlayingAppID(TypingExamButton.TYPING_APP_ID);
|
||||
sessionStorageManager.setPlayingAppName(TypingExamButton.TYPING_APP_NAME);
|
||||
sessionStorageManager.setPlayingAppKoreanName(TypingExamButton.TYPING_APP_KOREAN_NAME);
|
||||
sessionStorageManager.setWritingID(this.writingData.writingID);
|
||||
// location.href = '../../web/client/typing_exam.html';
|
||||
location.href = '../../web/client/start.html';
|
||||
// printSessionStorage();
|
||||
}
|
||||
|
||||
|
||||
TypingExamButton.TYPING_APP_ID = 200;
|
||||
TypingExamButton.TYPING_APP_NAME = "typing_exam";
|
||||
TypingExamButton.TYPING_APP_KOREAN_NAME = "타자검정";
|
||||
*/
|
||||
|
||||
|
||||
TypingExamButton.loadResources = function() {
|
||||
game.load.spritesheet('keyboards', '../../../resources/image/ui/keyboard/keyboards.png', 120, 120);
|
||||
|
||||
Reference in New Issue
Block a user