CocosBuilder default values (e.g. CCLayerGradient startOpacity)

Topics: Layers and Transitions
May 25, 2013 at 3: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:
CocosBuilder/CCLayerGradient/CCBPProperties.plist.

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?
Coordinator
May 25, 2013 at 7:28 PM
we will have to put them into the CCLayerGradientLoader class.
Coordinator
May 25, 2013 at 8:54 PM
Coordinator
May 25, 2013 at 9:01 PM
this should be fixed for you now. Thanks for reporting it.
May 26, 2013 at 10:10 AM
Awesome. Thanks for that. This really is an amazing project.