Add: SpriteIconTimer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
var Login = {
|
||||
|
||||
create: function() {
|
||||
// sessionStorageManager.resetPlayingAppData();
|
||||
sessionStorageManager.resetAllAppData();
|
||||
|
||||
this.game.stage.backgroundColor = '#4d4d4d';
|
||||
this.textStyle = { font: "bold 32px Arial", fill: "#fff", align: "right", boundsAlignH: "right", boundsAlignV: "middle" };
|
||||
@@ -48,20 +48,9 @@ var Login = {
|
||||
this.inputTextName.canvasInput.focus();
|
||||
|
||||
this.makeStartButton(game.world.centerX, game.world.centerY + 100);
|
||||
this.makeExperienceButton(game.world.centerX + 225, game.world.centerY + 100);
|
||||
|
||||
this.makeInfoText();
|
||||
|
||||
/*
|
||||
if(isDebugMode()) {
|
||||
sessionStorageManager.setMaestroID(3);
|
||||
sessionStorageManager.setMaestroAccountType(4);
|
||||
sessionStorageManager.setPlayerID(35);
|
||||
sessionStorageManager.setPlayerName("박지상");
|
||||
sessionStorageManager.setPlayerAccountType(0);
|
||||
|
||||
game.state.start('LicenseTimer');
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
back: function() {
|
||||
@@ -122,6 +111,61 @@ var Login = {
|
||||
startButton.addShortcutText("Enter");
|
||||
},
|
||||
|
||||
makeExperienceButton: function(x, y) {
|
||||
var BUTTON_SIZE = 90;
|
||||
// var setting = new RoundRectButtonSetting(x, y, BUTTON_SIZE, BUTTON_SIZE);
|
||||
var setting = new RoundRectButtonSetting(x, y, 150, 100);
|
||||
// setting.roundAmount = 60;
|
||||
// setting.strokeWidthPx = 5;
|
||||
// setting.fontStyle.fontSize = 40;
|
||||
setting.fontStyle.fontWeight = "bold";
|
||||
|
||||
setting.setStrokeColor(
|
||||
0x309090,
|
||||
0x208080,
|
||||
0x205050,
|
||||
0x666666
|
||||
);
|
||||
setting.setButtonColor(
|
||||
0x40c0c0,
|
||||
0x30a0a0,
|
||||
0x208080,
|
||||
0x666666
|
||||
);
|
||||
/*
|
||||
setting.setTextColor(
|
||||
"#fff",
|
||||
"#edd",
|
||||
"#dbb",
|
||||
"#333"
|
||||
);
|
||||
*/
|
||||
|
||||
var startButton = new RoundRectButton(
|
||||
setting,
|
||||
RoundRectButton.NONE_ICON, "체험",
|
||||
(function() {
|
||||
this.setExperiencePlayerSessionStorage();
|
||||
// this.startMenu();
|
||||
game.state.start('LicenseTimer');
|
||||
}).bind(this)
|
||||
);
|
||||
},
|
||||
|
||||
setExperiencePlayerSessionStorage: function() {
|
||||
sessionStorageManager.setMaestroName("");
|
||||
sessionStorageManager.setMaestroID(1);
|
||||
sessionStorageManager.setMaestroAccountType(100);
|
||||
sessionStorageManager.setPlayerName("체험 학생");
|
||||
sessionStorageManager.setPlayerID(1);
|
||||
sessionStorageManager.setPlayerAccountType(0);
|
||||
sessionStorageManager.setPlayingAppID(null);
|
||||
sessionStorageManager.setPlayingAppName(null);
|
||||
sessionStorageManager.setPlayingAppKoreanName(null);
|
||||
sessionStorageManager.setRecord(0);
|
||||
sessionStorageManager.setAppHighestRecord(0);
|
||||
},
|
||||
|
||||
makeInfoText: function(x, y) {
|
||||
var textStyle = { font: "30px Arial", fill: "#faa" };
|
||||
this.infoText = game.add.text(game.world.centerX, 640, "", textStyle);
|
||||
@@ -175,7 +219,7 @@ var Login = {
|
||||
sessionStorageManager.setPlayerName(jsonData['PlayerName']);
|
||||
sessionStorageManager.setPlayerAccountType(jsonData['PlayerAccountType']);
|
||||
|
||||
sessionStorageManager.setPlayingAppName("menu");
|
||||
// sessionStorageManager.setPlayingAppName("menu");
|
||||
// location.href = '../../web/client/menu_app.html';
|
||||
|
||||
game.state.start('LicenseTimer');
|
||||
|
||||
Reference in New Issue
Block a user