Add: button color, event method

This commit is contained in:
2018-05-03 10:58:45 +09:00
parent 5d3579756f
commit 8b0eb7898f
2 changed files with 116 additions and 154 deletions
@@ -47,10 +47,13 @@ function create() {
game.stage.backgroundColor = '#4d4d4d';
graphics = game.add.graphics(0, 0);
let button = new RoundRectButton(new RectSetting(200, 100));
let setting = new RoundRectButtonSetting(200, 100);
let button = new RoundRectButton(setting, "둥근 모서리\n버튼", dummy);
button.move(200, 200);
console.log(button);
}
function dummy() {
console.log("print dummy");
}
function update() {