Add: play app button icons

This commit is contained in:
2019-08-16 22:01:42 +09:00
parent 753871c629
commit 1c6bfc207a
22 changed files with 36 additions and 41 deletions
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

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); 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; AppGroupTab.BUTTON_COLOR_OUT_HEX = MainColor.CHOCO_HEX;
+14 -20
View File
@@ -84,7 +84,7 @@ PlayAppButton.prototype.getIconName = function(appID) {
switch(appID) { switch(appID) {
case 50: case 50:
case 51: case 51:
return "keyboard"; // mole return "mole";
case 52: case 52:
case 53: case 53:
@@ -137,24 +137,18 @@ PlayAppButton.prototype.clickEvent = function() {
location.href = '../../web/client/start.html'; location.href = '../../web/client/start.html';
} }
/* PlayAppButton.loadResources = function() {
PlayAppButton.prototype.onClick = function() { game.load.image('mole', '../../../resources/image/icon/mole.png');
sessionStorageManager.setPlayingAppID(PlayAppButton.TYPING_APP_ID); game.load.image('alienship', '../../../resources/image/icon/alienship.png');
sessionStorageManager.setPlayingAppName(PlayAppButton.TYPING_APP_NAME);
sessionStorageManager.setPlayingAppKoreanName(PlayAppButton.TYPING_APP_KOREAN_NAME); game.load.image('alien', '../../../resources/image/icon/alien.png');
sessionStorageManager.setWritingID(this.writingData.writingID); game.load.image('card', '../../../resources/image/icon/card.png');
// location.href = '../../web/client/typing_exam.html'; game.load.image('grill', '../../../resources/image/icon/grill.png');
location.href = '../../web/client/start.html'; game.load.image('spaceship', '../../../resources/image/icon/spaceship.png');
// printSessionStorage(); 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.WIDTH = 150;
PlayAppButton.HEIGHT = 180; PlayAppButton.HEIGHT = 180;
@@ -173,7 +167,7 @@ PlayAppButton.ICON_COLOR_OVER_HEX = MainColor.WHITE_HEX;
PlayAppButton.ICON_COLOR_DOWN_HEX = MainColor.WHITE_HEX; PlayAppButton.ICON_COLOR_DOWN_HEX = MainColor.WHITE_HEX;
PlayAppButton.ICON_COLOR_DISABLED_HEX = MainColor.LIGHT_GRAY_HEX; PlayAppButton.ICON_COLOR_DISABLED_HEX = MainColor.LIGHT_GRAY_HEX;
PlayAppButton.TEXT_COLOR_OUT_HEX = MainColor.LINEN_STRING; PlayAppButton.TEXT_COLOR_OUT_HEX = MainColor.LINEN_STRING;
PlayAppButton.TEXT_COLOR_OVER_HEX = MainColor.DARK_CHOCO_STRING; PlayAppButton.TEXT_COLOR_OVER_HEX = MainColor.DARK_CHOCO_STRING;
PlayAppButton.TEXT_COLOR_DOWN_HEX = MainColor.LIGHTER_CHOCO_STRING; PlayAppButton.TEXT_COLOR_DOWN_HEX = MainColor.LIGHTER_CHOCO_STRING;
PlayAppButton.TEXT_COLOR_DISABLED_HEX = MainColor.DARK_GRAY_STRING; // MainColor.THISTLE_STRING; PlayAppButton.TEXT_COLOR_DISABLED_HEX = MainColor.DARK_GRAY_STRING; // MainColor.THISTLE_STRING;
+18 -21
View File
@@ -8,19 +8,11 @@ MainMenu.prototype.preload = function() {
game.load.image('tile_choco', '../../../resources/image/background/tile_choco.png'); game.load.image('tile_choco', '../../../resources/image/background/tile_choco.png');
game.load.image('home', '../../../resources/image/icon/home.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(); Animal.loadResources();
AppGroupTab.loadResources();
TypingAppButton.loadResources(); TypingAppButton.loadResources();
PlayAppButton.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');
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js'); 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.activeSavedAppGroupTab();
this.activeSavedLanguageTab(); this.activeSavedLanguageTab();
// this.loadAppData(); // this.loadAppData();
} }
@@ -142,9 +132,6 @@ MainMenu.prototype.loadAllowEditEnterCode = function(screenTopUI) {
} }
MainMenu.prototype.loadAppData = function() { MainMenu.prototype.loadAppData = function() {
// this.activeSavedAppGroupTab();
// this.activeSavedLanguageTab();
this.dbService.requestMainMenuAppData( this.dbService.requestMainMenuAppData(
this.selectedAppGroup, this.selectedAppGroup,
this.selectedLanguage, this.selectedLanguage,
@@ -538,27 +525,37 @@ MainMenu.prototype.onClickMousePlayGroupTab = function() {
MainMenu.prototype.makeAppGroupTab = function() { MainMenu.prototype.makeAppGroupTab = function() {
this.appGroupTabLayout = new TabLayout(100, 0, 844, 70); 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.reserveIcon("keyboard");
this.typingPracticeGroupTab.reserveSubText("손가락 연습"); this.typingPracticeGroupTab.reserveSubText("손가락 연습");
this.appGroupTabLayout.add(this.typingPracticeGroupTab); 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.reserveIcon("keyboard");
this.typingTestGroupTab.reserveSubText("시험"); this.typingTestGroupTab.reserveSubText("시험");
this.appGroupTabLayout.add(this.typingTestGroupTab); 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.reserveIcon("keyboard");
this.typingExamGroupTab.reserveSubText("검정"); this.typingExamGroupTab.reserveSubText("검정");
this.appGroupTabLayout.add(this.typingExamGroupTab); 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.reserveIcon("keyboard");
this.typingPlayGroupTab.reserveSubText("놀이"); this.typingPlayGroupTab.reserveSubText("놀이");
this.appGroupTabLayout.add(this.typingPlayGroupTab); 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.reserveIcon("mouse");
this.mousePlayGroupTab.reserveSubText("놀이"); this.mousePlayGroupTab.reserveSubText("놀이");
this.appGroupTabLayout.add(this.mousePlayGroupTab); this.appGroupTabLayout.add(this.mousePlayGroupTab);