Fix: ChocoButton stroke round

This commit is contained in:
2019-07-25 09:58:37 +09:00
parent 5a44ab93da
commit 1df8fba0a5
7 changed files with 120 additions and 31 deletions
+15 -9
View File
@@ -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) {