mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Apply formatter.
This commit is contained in:
parent
c5bab4ccfc
commit
83945e17dc
@ -106,7 +106,8 @@ static void toColor2(spColor *color, const char *value, int /*bool*/ hasAlpha) {
|
||||
color->g = toColor(value, 1);
|
||||
color->b = toColor(value, 2);
|
||||
if (hasAlpha) color->a = toColor(value, 3);
|
||||
else color->a =1.0f;
|
||||
else
|
||||
color->a = 1.0f;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -305,7 +305,7 @@ export class SpineAtlasFile extends Phaser.Loader.MultiFile {
|
||||
} else {
|
||||
file.data = {
|
||||
data: file.data,
|
||||
premultipliedAlpha: this.premultipliedAlpha || file.data.indexOf("pma: true") >= 0
|
||||
premultipliedAlpha: this.premultipliedAlpha || file.data.indexOf("pma: true") >= 0
|
||||
};
|
||||
file.addToCache();
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ export class SceneRenderer implements Disposable {
|
||||
this.enableRenderer(this.batcher);
|
||||
}
|
||||
|
||||
drawSkeleton (skeleton: Skeleton, premultipliedAlpha = false, slotRangeStart = -1, slotRangeEnd = -1, transform: VertexTransformer | null = null) {
|
||||
drawSkeleton (skeleton: Skeleton, premultipliedAlpha = false, slotRangeStart = -1, slotRangeEnd = -1, transform: VertexTransformer | null = null) {
|
||||
this.enableRenderer(this.batcher);
|
||||
this.skeletonRenderer.premultipliedAlpha = premultipliedAlpha;
|
||||
this.skeletonRenderer.draw(this.batcher, skeleton, slotRangeStart, slotRangeEnd, transform);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user