Add: button color, event method
This commit is contained in:
1 parent
5d3579756f
commit
8b0eb7898f
2 files changed
+116
-154
No files matched your search
@@ -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