mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Renamed TextureAtlasAttachmentLoader. Was too damned long and didn't match spine-c.
This commit is contained in:
parent
103cd30758
commit
446e18dccd
@ -35,7 +35,7 @@ import com.esotericsoftware.spine.Animation.TranslateTimeline;
|
||||
import com.esotericsoftware.spine.attachments.RegionAttachment;
|
||||
import com.esotericsoftware.spine.attachments.RegionSequenceAttachment;
|
||||
import com.esotericsoftware.spine.attachments.RegionSequenceAttachment.Mode;
|
||||
import com.esotericsoftware.spine.attachments.TextureAtlasAttachmentLoader;
|
||||
import com.esotericsoftware.spine.attachments.AtlasAttachmentLoader;
|
||||
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
@ -63,7 +63,7 @@ public class SkeletonBinary {
|
||||
private float scale = 1;
|
||||
|
||||
public SkeletonBinary (TextureAtlas atlas) {
|
||||
attachmentLoader = new TextureAtlasAttachmentLoader(atlas);
|
||||
attachmentLoader = new AtlasAttachmentLoader(atlas);
|
||||
}
|
||||
|
||||
public SkeletonBinary (AttachmentLoader attachmentLoader) {
|
||||
|
||||
@ -35,7 +35,7 @@ import com.esotericsoftware.spine.Animation.TranslateTimeline;
|
||||
import com.esotericsoftware.spine.attachments.RegionAttachment;
|
||||
import com.esotericsoftware.spine.attachments.RegionSequenceAttachment;
|
||||
import com.esotericsoftware.spine.attachments.RegionSequenceAttachment.Mode;
|
||||
import com.esotericsoftware.spine.attachments.TextureAtlasAttachmentLoader;
|
||||
import com.esotericsoftware.spine.attachments.AtlasAttachmentLoader;
|
||||
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
@ -58,7 +58,7 @@ public class SkeletonJson {
|
||||
private float scale = 1;
|
||||
|
||||
public SkeletonJson (TextureAtlas atlas) {
|
||||
attachmentLoader = new TextureAtlasAttachmentLoader(atlas);
|
||||
attachmentLoader = new AtlasAttachmentLoader(atlas);
|
||||
}
|
||||
|
||||
public SkeletonJson (AttachmentLoader attachmentLoader) {
|
||||
|
||||
@ -32,10 +32,10 @@ import com.esotericsoftware.spine.AttachmentType;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
|
||||
|
||||
public class TextureAtlasAttachmentLoader implements AttachmentLoader {
|
||||
public class AtlasAttachmentLoader implements AttachmentLoader {
|
||||
private TextureAtlas atlas;
|
||||
|
||||
public TextureAtlasAttachmentLoader (TextureAtlas atlas) {
|
||||
public AtlasAttachmentLoader (TextureAtlas atlas) {
|
||||
if (atlas == null) throw new IllegalArgumentException("atlas cannot be null.");
|
||||
this.atlas = atlas;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user