hexi icon indicating copy to clipboard operation
hexi copied to clipboard

Pixi objects in Hexi

Open sashamirkovic opened this issue 8 years ago • 3 comments

Hello,

I started using Hexi but I can't find all object Pixi has. How can I add rounded rectangle for example?

Best Regards, Sasha

sashamirkovic avatar Mar 11 '16 09:03 sashamirkovic

Hi Sasha,

The global PIXI object is built-in, so you can access any low-level Pixi code through that object, just as if you were using a stand-alone Pixi installation.

kittykatattack avatar Mar 12 '16 14:03 kittykatattack

I already use Hexi, let's say I already have my g = hexi. Is it possible to add PIXI objects to g.stage or any other child container of g.stage?

sashamirkovic avatar Mar 13 '16 00:03 sashamirkovic

Yes, just add a Pixi objects to Hexi's stage, like this:

g.stage.addChild(anyPixiObject)

The stage is just an ordinary Pixi Container

kittykatattack avatar Mar 15 '16 00:03 kittykatattack