Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect texture mapping in Progress Bar with rotated texture atlas #1916

Closed
guardianblue opened this issue Aug 21, 2017 · 1 comment
Closed

Comments

@guardianblue
Copy link

I mistakenly posted this issue onto cocos2d-js previously (here), please bear with me

The bar Sprite of ProgressBar fails to map its texture under filled mode correctly when its SpriteFrame happens to be auto-rotated in the underlying sprite sheet.

Steps to reproduce:

  1. Prepare two images, one for the progress bar track and one for the bar
  2. Generate a sprite sheet, forcing the texture to be rotated (e.g. by tweaking the max width property)
  3. Create a ProgressBar and assign the sprite frames
  4. Set mode to filled
  5. Test in simulator, it should work fine
  6. Test again with mobile build, the bar would look like as if it is set as simple mode
@OnlyKoei
Copy link
Contributor

OnlyKoei commented Mar 2, 2021

Since we have not received similar feedback recently, this problem may have been fixed. Could you please try the latest 2.4.4 version of the engine to see if this bug still exists. Don't worry about whether the upgrade to the latest version is stable or whether there will be new problems, just to test this bug.
If there is no problem, you only consider whether to upgrade or merge some engine repairs.
If there are still problems after the test, we will follow up and deal with it.

@OnlyKoei OnlyKoei closed this as completed Mar 2, 2021
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

No branches or pull requests

2 participants