Saturday, December 29, 2012

Some of my images arnt being turned into image strips :?

...and thus are rather flickery when animating between them. (they are
frames in a animated sprite).

What baffles me is they are defined the same way as others that do
seem to work.

eg. I have a file like:
public interface MemDayImages extends ClientBundle {
...
@Source("/MemorableDayIcons/MEDIUM/magrietbag0.png")
ImageResource MEDmagrietbag0();

@Source("/MemorableDayIcons/MEDIUM/magrietbag1.png")
ImageResource MEDmagrietbag1();

@Source("/MemorableDayIcons/MEDIUM/magrietbag2.png")
ImageResource MEDmagrietbag2();

...

Which makes a lovely image strip that animates really smoothly.

I have another group of sprites however:

public interface NoirInternalSprites extends ClientBundle {

@Source("com/darkflame/client/JargScene/firelopp/fireloop0050.png")
ImageResource fireloop0050();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0051.png")
ImageResource fireloop0051();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0052.png")
ImageResource fireloop0052();

@Source("com/darkflame/client/JargScene/firelopp/fireloop0053.png")
ImageResource fireloop0053();
...

Which does not.
These pngs instead turn into dozens of separate files - not a image
strip at all.

So what gives :?
What determines when images are combined and when they are not ?

For reference, I use
<set-property name="ClientBundle.enableInlining" value="false" /
>
in my gwt.xml to stop data urls being formed.

Thanks for any pointers,
-Thomas

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment