Hey everybody,
before we start to make some cool animations and pack all our images with the internal texture packer of Spine, we pack all of them with the conventional texture packer (https://code.google.com/p/libgdx/wiki/TexturePacker)
For the UI-widgets we used the skin class given by libgdx framework.
When we use the Spine texture packer, the usage of some packed images as spriteDrawables together with a skin object leads to this exception:
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: No Drawable, NinePatch, TextureRegion, Texture, or Sprite registered with name: volumeOff
...where volumeOff is the String key to get the Drawable stored in the skin object.
Adding the Sprite to the skin:
skin.add("volumeOff", volumeOffSprite);
and the usage:
checkBoxStyle = new CheckBoxStyle();
checkBoxStyle.checkboxOff = skin.getDrawable("volumeOff"); //line where the excpetion occurs
There is no exception with the conventional texture packer.
When the sprite is drawn without any skin, no exception occurs (with the gdx texture packer as well as with the Spine texture packer).
Under guidance of a libgdx pro we tried this:
skin.add("volumeOff", new SpriteDrawable(volumeOffSprite));
We can't really confine the problem. Could it be a bug of the spine tool? The comparison of both atlas files didn't provide anything noticable.