add widget add, delete, select, deselect, move events

This commit is contained in:
Stewart Allen 2020-03-28 14:39:24 -04:00
commit 7ca3cc505c
2 changed files with 13 additions and 4 deletions

View file

@ -415,7 +415,10 @@ var gs_kiri_widget = exports;
pos.y += (y || 0);
pos.z += (z || 0);
}
if (x || y || z) this.modified = true;
if (x || y || z) {
this.modified = true;
KIRI.api.event.emit('widget.move', {widget: this, pos});
}
};
/**