Fix: rename ChocoButton to BasicButton
This commit is contained in:
@@ -6,6 +6,7 @@ function MainMenu() {
|
||||
|
||||
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.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
|
||||
}
|
||||
|
||||
@@ -79,7 +80,7 @@ MainMenu.prototype.fontLoaded = function() {
|
||||
this.makeAppGroupButtons();
|
||||
|
||||
// console.log(this.appGroupButtons);
|
||||
// this.appGroupButtons.backButton.applyLoadedFont();
|
||||
this.appGroupButtons.backButton.applyLoadedFont();
|
||||
this.appGroupButtons.settingButton.applyLoadedFont();
|
||||
|
||||
|
||||
@@ -183,7 +184,7 @@ MainMenu.prototype.makeAppGroupButtons = function() {
|
||||
}
|
||||
|
||||
MainMenu.prototype.makeQuitButton = function() {
|
||||
var setting = new ChocoButtonSetting(980, 40, 60, 60, 5, 10);
|
||||
var setting = new ButtonSetting(980, 40, 60, 60, 5, 10);
|
||||
// var quitButton = new ChocoButton(
|
||||
// setting, // choco button setting,
|
||||
// (function() { /*this.back();*/ console.log("quit"); }).bind(this)
|
||||
@@ -191,17 +192,16 @@ MainMenu.prototype.makeQuitButton = function() {
|
||||
// quitButton.addIcon("tile_choco");
|
||||
// quitButton.setIconSize(30);
|
||||
|
||||
var settingButton = new ChocoSettingButton(
|
||||
var backButton = new BackButton(
|
||||
(function() { console.log("back"); }).bind(this)
|
||||
);
|
||||
|
||||
var settingButton = new SettingButton(
|
||||
(function() { console.log("setting"); }).bind(this)
|
||||
);
|
||||
// var backButton = new ChocoBackButton(
|
||||
// (function() { console.log("back"); }).bind(this)
|
||||
// );
|
||||
// backButton.addIcon("tile_choco");
|
||||
// backButton.setIconSize(30);
|
||||
|
||||
this.appGroupButtons.settingButton = settingButton;
|
||||
// this.appGroupButtons.backButton = backButton;
|
||||
this.appGroupButtons.backButton = backButton;
|
||||
}
|
||||
|
||||
MainMenu.prototype.makeMouseAppButtons = function(appList, activeAppList) {
|
||||
|
||||
Reference in New Issue
Block a user