These are chat archives for pixijs/pixi.js

8th
Apr 2017
Matt Hicks
@darkfrog26
Apr 08 2017 04:36
Hey guys, is there any documentation about the events that Pixi fires?
I can see for example that PIXI.Texture fires update, but what does the event look like?
what type of event is it?
Alan
@Alan01252
Apr 08 2017 08:33
@corbanbrook thats the best way. I did a small example here
if that helps. That's top down but same technique would work for platform etc too
@darkfrog26 It emits itself in the event this.emit('update', this);
Alan
@Alan01252
Apr 08 2017 08:39
The texture class extends eventemitter3 which is based on the node eventemitter.
So api is the same as http://nodejs.org/api/events.html
Matt Hicks
@darkfrog26
Apr 08 2017 14:28
@Alan01252 I appreciate the info, but my question is, what is the Object that is fired?
Alan
@Alan01252
Apr 08 2017 15:37
Not sure I understand the question sorry? The object that is fired?