This project is read-only.

CocosBuilder default values (e.g. CCLayerGradient startOpacity)

Topics: Layers and Transitions
May 25, 2013 at 4:28 PM
CocosBuilder (2.1) seems to skip writing out default values, for example the CCLayerGradient startOpacity and endOpacity aren't written out when they have the default of 255. When they're loaded in CCBReader there is no entry for those properties and so they are left at the C# default of 0.

The default values appear to be in the CocosBuilder source code:

Is it worth baking these defaults into CCLayerGradientLoader.cs in the CreateCCNode() method?

Or is there another way to load these defaults? Or force CocosBuilder to write out all properties?
May 25, 2013 at 8:28 PM
we will have to put them into the CCLayerGradientLoader class.
May 25, 2013 at 9:54 PM
May 25, 2013 at 10:01 PM
this should be fixed for you now. Thanks for reporting it.
May 26, 2013 at 11:10 AM
Awesome. Thanks for that. This really is an amazing project.