Flaxis / slick-ui

Lightweight Phaser UI plugin
http://slick-ui.com/
190 stars 25 forks source link

Texture Atlas support #23

Closed kwrooijen closed 6 years ago

kwrooijen commented 7 years ago

Hey, thanks for your work on this library.

I was wondering if you're planning on adding Texture Atlas support? From what I can tell there doesn't seem to be an option to use an Atlas.

Tatwi commented 6 years ago

Atlas support is in the version of SlickUI that I use (latest version). Here is how I do it,

var coinIcon; this.cubWindow.add(new SlickUI.Element.DisplayObject(123, this.iconLine + 47, coinIcon = this.game.make.sprite(0, 0, 'atlas'))); coinIcon.frameName = 'ui-coin';

kwrooijen commented 6 years ago

All right, thanks! I'll close this ticket then.