Exports LUA files ready to be used with Director.lua and UI.lua
Exports PNG 32bit
Supports
_button_ - buttons
_default_ - button up state
_touch_ -button touched
Generates handlers and eventlistner code.
Generates images from normal layers
Turns PSD groups into CORONA groups
Merges Groups with _merge_ in the name as one image
Am planning on sharing if people of interested in it…
Features incoming include Spritesheet, video launcher buttons, metadata nesting in PSD layers (e.g. onclick:playsound:blip.mp3),entry tweens e.g onAddedToStage:tweenfrombottom[1.0]
I have been using the exporter provided by Corona, and there was a huge amount of hand editing involved to get things working with the latest UI class, and director.
While the editing would be acceptable for a couple of buttons, for a level select screen with 20 or more buttons, it is very painful.
Drop me a line if you want some testing.
mike at bluerocketlabs dot com [import]uid: 5317 topic_id: 8337 reply_id: 29772[/import]
Cheers Mike, will email as soon as I get my own preliminary SC4 and CS5 tests done this end (busy Monday morning at moment though)…expect something this week though.
I agree though, the other exporter is great if your brewing your own format though and just want coordinates. I just wanted to make something which was ideal if like me… you really like the structure director offers and want to have your PNGS ready to go in one click.
Yeah on a complicated PSD you could probably go and make a cup of tea while its saving the images, but is that such a bad thing [import]uid: 33265 topic_id: 8337 reply_id: 29793[/import]
So I only managed to get to do a quickest on CS5 before I left work but it worked after a couple of minor fixes. One being I forgot to force the units to pixels, the other which I need to do a device test tomorrow using it. If my CS4 and CS5 device tests go well I’m going to send out versions for closed group tests. I assume all those interested are CS3 and up. Any Android license holders? I have IOS only on work license. [import]uid: 33265 topic_id: 8337 reply_id: 29840[/import]
I haven’t used Github before to maintain source like this, I’ve only ever used SVN but it seems similar so no accidental deletions yet
Early testers can download the script plus the PSD which I’ve been messing around in. NOW I stress this is early days. I haven’t tested the following properly myself.
On device =/ I have iOS but work got busy this week so I thought I’d let others have a bash see if it worked well or if its a headache.
I should stress, I used the Director.lua and UI.lua from the monsters and ghosts demo. Updates after that haven’t been tested but if you look inside the script you will see how easy it will be for me to do, simple copy + paste and a few escape slashes for return carriages then put in the $injection_hooks.
I like to try and keep my code easy to read but I’m happy to show and tell any bits that don’t make sense.
Edit: Last minute thought I chucked in my CPM files for use with the simulator. Test build for 480x320px on landscape.
Please be vocal, good or bad lets get this thing on the road to being noticed…
I’m very interested in this exporter, looks great!
But I have the same problem as cl-apps and thewebdepot, the photoshop crashes after exporting “backgroundimg.png”…
I’m going to reboot into my Mac now and run a couple of tests… I should of mentioned that at the moment I have been doing more in my windows machine than mac. Its probably just a slash thing… Macs are strict. [import]uid: 33265 topic_id: 8337 reply_id: 30019[/import]
Okay so a quick test is showing me its because the MAC must use a different script for closing a new document… when i remove the exporting stages for the PNG’s it runs through. I will see if I can patch it quickly and spot the difference between the MAC and Windows JSX for close… [import]uid: 33265 topic_id: 8337 reply_id: 30022[/import]