Skip to content

当GLoader加载动画并且设置填充, 显示异常 #101

@liumazi

Description

@liumazi

初始加载不可见,若调用 setFillAmount() 则可以看到按比例填充了,但不会播放动画;
因为 ActionMovieClip 中 target->setSpriteFrame() 并没有触发 FUISprite 顶点数据更新。

简单修复:

void FUISprite::setSpriteFrame(SpriteFrame* newFrame)
{
	Sprite::setSpriteFrame(newFrame);

	if (_fillMethod != FillMethod::None)
		setupFill();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions