Skip to content

Conversation

@rablwupei
Copy link
Contributor

No description provided.

@dingpinglv
Copy link
Contributor

Hi Wupei,

It works well to change color and opacity at our ProgressAction Test.
I know that setColor and setOpacity have added "updateColor" in them, but _updateProgressForWebGL has added "updateColor", so it works.

Thanks for your noticing, I will refactor these codes soon.
David

@rablwupei
Copy link
Contributor Author

Hi, the ProgressTimer need call setPercentage(), then color and opacity is right.

Call setColor and setOpacity directly can't work.

@dingpinglv
Copy link
Contributor

Yes, you are right.

Did you test it on Canvas Mode?

I think we should delete "updateColor" from _updateProgressForWebGL if we add "updateColor" to setColor and setOpacity.

And then testing it on Canvas Mode.

@rablwupei
Copy link
Contributor Author

has fixed. And it is pass on Canvas Mode.

@dingpinglv
Copy link
Contributor

Thank you very much. Wupei

dingpinglv added a commit that referenced this pull request Nov 27, 2013
fix bug: ProgressTime can't change color and opacity
@dingpinglv dingpinglv merged commit 34b9c0e into cocos2d:develop Nov 27, 2013
@rablwupei rablwupei deleted the fix_progressTimer branch November 27, 2013 07:59
dingpinglv added a commit to dingpinglv/cocos2d-html5 that referenced this pull request Dec 2, 2013
dingpinglv added a commit that referenced this pull request Dec 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants