|
@@ -52,7 +52,8 @@ export default {
|
|
console.log(this.fParser);
|
|
console.log(this.fParser);
|
|
this.fParser.parseData(res);
|
|
this.fParser.parseData(res);
|
|
this.fParser.spaceList.forEach(t => {
|
|
this.fParser.spaceList.forEach(t => {
|
|
- t.connect('clicjnnmnk', this, this.spaceClick)
|
|
|
|
|
|
+ t.connect('click', this, this.spaceClick)
|
|
|
|
+ t.selectable = true;
|
|
this.scene.addItem(t)
|
|
this.scene.addItem(t)
|
|
});
|
|
});
|
|
this.fParser.wallList.forEach(t => this.scene.addItem(t));
|
|
this.fParser.wallList.forEach(t => this.scene.addItem(t));
|
|
@@ -101,6 +102,7 @@ export default {
|
|
document.getElementById('canvas').focus()
|
|
document.getElementById('canvas').focus()
|
|
},
|
|
},
|
|
spaceClick(space, event) {
|
|
spaceClick(space, event) {
|
|
|
|
+ console.log(this.scene.selectContainer)
|
|
// const item = new SImageItem(null, {
|
|
// const item = new SImageItem(null, {
|
|
// Width: 32,
|
|
// Width: 32,
|
|
// Height: 32,
|
|
// Height: 32,
|