Fix: ChocoButton stroke round
This commit is contained in:
@@ -27,7 +27,6 @@ game.state.add('MainMenu', mainMenu);
|
||||
game.state.start('MainMenu');
|
||||
|
||||
function fontLoaded() {
|
||||
console.log("fontLoaded #1");
|
||||
mainMenu.fontLoaded();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,8 +42,6 @@ MainMenu.prototype.create = function() {
|
||||
*/
|
||||
|
||||
MainMenu.prototype.create = function() {
|
||||
console.log("create");
|
||||
|
||||
this.dbService = new DBService();
|
||||
this.dbService.setMaestroID(sessionStorageManager.getMaestroID());
|
||||
this.dbService.setPlayerID(sessionStorageManager.getPlayerID());
|
||||
@@ -52,7 +50,8 @@ MainMenu.prototype.create = function() {
|
||||
var graphics = game.add.graphics();
|
||||
graphics.beginFill(MainColor.LIGHT_CHOCO_HEX, 1);
|
||||
graphics.drawRect(0, 0,GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y);
|
||||
graphics.beginFill(MainColor.CHOCO_HEX, 1);
|
||||
graphics.beginFill(MainColor.BLACK_HEX, 1);
|
||||
// graphics.beginFill(MainColor.CHOCO_HEX, 1);
|
||||
graphics.drawRect(0, 0,GAME_SCREEN_SIZE.x, MainMenu.MAIN_MENU_HEIGHT);
|
||||
|
||||
this.appGroupButtons = {};
|
||||
@@ -178,15 +177,22 @@ MainMenu.prototype.makeAppGroupButtons = function() {
|
||||
}
|
||||
|
||||
MainMenu.prototype.makeQuitButton = function() {
|
||||
var setting = new ChocoButtonSetting(980, 40, 60, 60, 5);
|
||||
var quitButton = new ChocoButton(
|
||||
setting, // choco button setting,
|
||||
(function() { this.back(); }).bind(this)
|
||||
var setting = new ChocoButtonSetting(980, 40, 60, 60, 5, 10);
|
||||
// var quitButton = new ChocoButton(
|
||||
// setting, // choco button setting,
|
||||
// (function() { /*this.back();*/ console.log("quit"); }).bind(this)
|
||||
// );
|
||||
// quitButton.addIcon("tile_choco");
|
||||
// quitButton.setIconSize(30);
|
||||
|
||||
var backButton = new ChocoBackButton(
|
||||
(function() { console.log("back"); }).bind(this)
|
||||
);
|
||||
quitButton.addIcon("tile_choco");
|
||||
quitButton.setIconSize(30);
|
||||
// backButton.addIcon("tile_choco");
|
||||
// backButton.setIconSize(30);
|
||||
|
||||
this.appGroupButtons.quitButton = quitButton;
|
||||
this.appGroupButtons.backButton = backButton;
|
||||
}
|
||||
|
||||
MainMenu.prototype.makeMouseAppButtons = function(appList, activeAppList) {
|
||||
|
||||
Reference in New Issue
Block a user