Add: play app button icons
|
After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -83,6 +83,10 @@ AppGroupTab.prototype.createTab = function(index) {
|
||||
this.setSubText(this.reservedSubText);
|
||||
}
|
||||
|
||||
AppGroupTab.loadResources = function() {
|
||||
game.load.image('keyboard', '../../../resources/image/icon/keyboard.png');
|
||||
game.load.image('mouse', '../../../resources/image/icon/mouse.png');
|
||||
}
|
||||
|
||||
|
||||
AppGroupTab.BUTTON_COLOR_OUT_HEX = MainColor.CHOCO_HEX;
|
||||
|
||||
@@ -84,7 +84,7 @@ PlayAppButton.prototype.getIconName = function(appID) {
|
||||
switch(appID) {
|
||||
case 50:
|
||||
case 51:
|
||||
return "keyboard"; // mole
|
||||
return "mole";
|
||||
|
||||
case 52:
|
||||
case 53:
|
||||
@@ -137,24 +137,18 @@ PlayAppButton.prototype.clickEvent = function() {
|
||||
location.href = '../../web/client/start.html';
|
||||
}
|
||||
|
||||
/*
|
||||
PlayAppButton.prototype.onClick = function() {
|
||||
sessionStorageManager.setPlayingAppID(PlayAppButton.TYPING_APP_ID);
|
||||
sessionStorageManager.setPlayingAppName(PlayAppButton.TYPING_APP_NAME);
|
||||
sessionStorageManager.setPlayingAppKoreanName(PlayAppButton.TYPING_APP_KOREAN_NAME);
|
||||
sessionStorageManager.setWritingID(this.writingData.writingID);
|
||||
// location.href = '../../web/client/typing_exam.html';
|
||||
location.href = '../../web/client/start.html';
|
||||
// printSessionStorage();
|
||||
PlayAppButton.loadResources = function() {
|
||||
game.load.image('mole', '../../../resources/image/icon/mole.png');
|
||||
game.load.image('alienship', '../../../resources/image/icon/alienship.png');
|
||||
|
||||
game.load.image('alien', '../../../resources/image/icon/alien.png');
|
||||
game.load.image('card', '../../../resources/image/icon/card.png');
|
||||
game.load.image('grill', '../../../resources/image/icon/grill.png');
|
||||
game.load.image('spaceship', '../../../resources/image/icon/spaceship.png');
|
||||
game.load.image('chocoball', '../../../resources/image/icon/chocoball.png');
|
||||
}
|
||||
|
||||
|
||||
PlayAppButton.TYPING_APP_ID = 200;
|
||||
PlayAppButton.TYPING_APP_NAME = "typing_exam";
|
||||
PlayAppButton.TYPING_APP_KOREAN_NAME = "타자검정";
|
||||
*/
|
||||
|
||||
|
||||
PlayAppButton.WIDTH = 150;
|
||||
PlayAppButton.HEIGHT = 180;
|
||||
|
||||
|
||||
@@ -8,19 +8,11 @@ MainMenu.prototype.preload = function() {
|
||||
game.load.image('tile_choco', '../../../resources/image/background/tile_choco.png');
|
||||
game.load.image('home', '../../../resources/image/icon/home.png');
|
||||
|
||||
game.load.image('keyboard', '../../../resources/image/icon/keyboard.png');
|
||||
game.load.image('mouse', '../../../resources/image/icon/mouse.png');
|
||||
|
||||
Animal.loadResources();
|
||||
|
||||
AppGroupTab.loadResources();
|
||||
TypingAppButton.loadResources();
|
||||
|
||||
game.load.image('alien', '../../../resources/image/icon/green_alien.png');
|
||||
game.load.image('card', '../../../resources/image/icon/card.png');
|
||||
game.load.image('grill', '../../../resources/image/icon/grill.png');
|
||||
game.load.image('spaceship', '../../../resources/image/icon/spaceship.png');
|
||||
game.load.image('chocoball', '../../../resources/image/icon/chocoball.png');
|
||||
|
||||
game.load.image('alienship', '../../../resources/image/icon/alienship.png');
|
||||
PlayAppButton.loadResources();
|
||||
|
||||
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
|
||||
}
|
||||
@@ -105,10 +97,8 @@ MainMenu.prototype.fontLoaded = function() {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
this.activeSavedAppGroupTab();
|
||||
this.activeSavedLanguageTab();
|
||||
|
||||
// this.loadAppData();
|
||||
}
|
||||
|
||||
@@ -142,9 +132,6 @@ MainMenu.prototype.loadAllowEditEnterCode = function(screenTopUI) {
|
||||
}
|
||||
|
||||
MainMenu.prototype.loadAppData = function() {
|
||||
// this.activeSavedAppGroupTab();
|
||||
// this.activeSavedLanguageTab();
|
||||
|
||||
this.dbService.requestMainMenuAppData(
|
||||
this.selectedAppGroup,
|
||||
this.selectedLanguage,
|
||||
@@ -538,27 +525,37 @@ MainMenu.prototype.onClickMousePlayGroupTab = function() {
|
||||
MainMenu.prototype.makeAppGroupTab = function() {
|
||||
this.appGroupTabLayout = new TabLayout(100, 0, 844, 70);
|
||||
|
||||
this.typingPracticeGroupTab = new AppGroupTab( (function() { this.onClickTypingPracticeGroupTab(); }).bind(this) );
|
||||
this.typingPracticeGroupTab = new AppGroupTab(
|
||||
(function() { this.onClickTypingPracticeGroupTab(); }).bind(this)
|
||||
);
|
||||
this.typingPracticeGroupTab.reserveIcon("keyboard");
|
||||
this.typingPracticeGroupTab.reserveSubText("손가락 연습");
|
||||
this.appGroupTabLayout.add(this.typingPracticeGroupTab);
|
||||
|
||||
this.typingTestGroupTab = new AppGroupTab( (function() { this.onClickTypingTestGroupTab(); }).bind(this) );
|
||||
this.typingTestGroupTab = new AppGroupTab(
|
||||
(function() { this.onClickTypingTestGroupTab(); }).bind(this)
|
||||
);
|
||||
this.typingTestGroupTab.reserveIcon("keyboard");
|
||||
this.typingTestGroupTab.reserveSubText("시험");
|
||||
this.appGroupTabLayout.add(this.typingTestGroupTab);
|
||||
|
||||
this.typingExamGroupTab = new AppGroupTab( (function() { this.onClickTypingExamGroupTab(); }).bind(this) );
|
||||
this.typingExamGroupTab = new AppGroupTab(
|
||||
(function() { this.onClickTypingExamGroupTab(); }).bind(this)
|
||||
);
|
||||
this.typingExamGroupTab.reserveIcon("keyboard");
|
||||
this.typingExamGroupTab.reserveSubText("검정");
|
||||
this.appGroupTabLayout.add(this.typingExamGroupTab);
|
||||
|
||||
this.typingPlayGroupTab = new AppGroupTab( (function() { this.onClickTypingPlayGroupTab(); }).bind(this) );
|
||||
this.typingPlayGroupTab = new AppGroupTab(
|
||||
(function() { this.onClickTypingPlayGroupTab(); }).bind(this)
|
||||
);
|
||||
this.typingPlayGroupTab.reserveIcon("keyboard");
|
||||
this.typingPlayGroupTab.reserveSubText("놀이");
|
||||
this.appGroupTabLayout.add(this.typingPlayGroupTab);
|
||||
|
||||
this.mousePlayGroupTab = new AppGroupTab( (function() { this.onClickMousePlayGroupTab(); }).bind(this) );
|
||||
this.mousePlayGroupTab = new AppGroupTab(
|
||||
(function() { this.onClickMousePlayGroupTab(); }).bind(this)
|
||||
);
|
||||
this.mousePlayGroupTab.reserveIcon("mouse");
|
||||
this.mousePlayGroupTab.reserveSubText("놀이");
|
||||
this.appGroupTabLayout.add(this.mousePlayGroupTab);
|
||||
|
||||