Fix: revise ChocoButton
This commit is contained in:
1 parent
db2d920589
commit
5a44ab93da
2 files changed
+114
-100
No files matched your search
@@ -178,16 +178,13 @@ MainMenu.prototype.makeAppGroupButtons = function() {
|
||||
}
|
||||
|
||||
MainMenu.prototype.makeQuitButton = function() {
|
||||
var setting = new ChocoButtonSetting(1000, 40, 60, 60, 5);
|
||||
var setting = new ChocoButtonSetting(980, 40, 60, 60, 5);
|
||||
var quitButton = new ChocoButton(
|
||||
setting, // choco button setting,
|
||||
(function() {
|
||||
this.back();
|
||||
}).bind(this)
|
||||
(function() { this.back(); }).bind(this)
|
||||
);
|
||||
quitButton.addIcon("tile_choco");
|
||||
quitButton.setIconSize(30);
|
||||
console.log(quitButton);
|
||||
|
||||
this.appGroupButtons.quitButton = quitButton;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user