Menu bar for brush selection implemented.

This commit is contained in:
Mal
2020-01-30 23:40:42 +01:00
parent 2fa3bf5a53
commit 9c3aca1bc9
10 changed files with 142 additions and 23 deletions

View File

@@ -1,19 +1,18 @@
import TilorswiftEvent from "./TilorswiftEvent.js";
export default class TilorswiftFieldClickedEvent extends CustomEvent
export default class TilorswiftFieldClickedEvent extends Event
{
constructor(field)
constructor(field, button)
{
super(
TilorswiftEvent.FIELD_CLICKED,
{
detail: {field: field}
}
);
console.log('So kommt der Scheiß hier rein: ' + button);
super(TilorswiftEvent.FIELD_CLICKED);
this.field = field;
this.button = button;
}
getField()
{
return this.detail.field;
return this.field;
}
}