1 decade ago by dkollmann
I was wondering if there was a special draw function called for the editor which would be very useful as I have to render some special data for some of my entities in the editor.
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
if( !ig.global.wm ) { // Not in Editor - Do some fancy stuff here. }
ig.system.context.fillStyle = wm.config.colors.primary; ig.system.context.fillText( 'my text', ig.system.getDrawPos(this.pos.x - ig.game.screen.x), ig.system.getDrawPos(this.pos.y - ig.game.screen.y) );