Add: button color, event method
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user