[英]How to Set color in CCMenuItem in cocos2d Iphone?
I want to set the Background color of CCMenuItem in Cocos2d Iphone ? 我想在Cocos2d Iphone中设置CCMenuItem的背景颜色吗?
what should we do for that ? 我们该怎么做?
You could create a new CCSprite with a black texture (programmatically) 您可以创建一个带有黑色纹理的新CCSprite(以编程方式)
and than add that to the ccmenuitem. 然后将其添加到ccmenuitem。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.