-
Notifications
You must be signed in to change notification settings - Fork 905
Background color of panel from cocos studio 2 doesnt work #2753
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
Comments
@EntityB Thanks.~~~ VisualSJ :) |
No problem, I will try to explain this better. I have very simple test project in cocos studio 2.1.5 where are two panels. Red with 50% transparency and green with 50% transparency. This is how I setup the background color of the red one: After publishing into json, structure looks like this:
Please notice I used fill: solid. Then exported color is presented as Better implementation already exists here:
Except I belive condition Right now background colors are not red and green as expected. |
Fixed #2753: Background color of panel from cocos studio 2 doesnt work
TimelineParser-2.x doesn't parse background color for panel component, (as it does for scrollview, listview and pageview)
Method
parser.initPanel
https://github.com/cocos2d/cocos2d-html5/blob/develop/extensions/cocostudio/loader/parsers/timelineParser-2.x.js#L366
should contain something similar like here:
https://github.com/cocos2d/cocos2d-html5/blob/develop/extensions/cocostudio/loader/parsers/timelineParser-2.x.js#L665
The text was updated successfully, but these errors were encountered: