mirror of https://github.com/axmolengine/axmol.git
Fixing CCScale9Sprites when loaded from CCB files to be able to change color and opacity
This commit is contained in:
parent
70472d558d
commit
f51506eed2
|
@ -805,6 +805,11 @@ void CCScale9Sprite::setColor(const ccColor3B& color)
|
|||
}
|
||||
}
|
||||
|
||||
const ccColor3B& CCScale9Sprite::getColor()
|
||||
{
|
||||
return _color;
|
||||
}
|
||||
|
||||
void CCScale9Sprite::setOpacity(GLubyte opacity)
|
||||
{
|
||||
_opacity = opacity;
|
||||
|
@ -821,4 +826,9 @@ void CCScale9Sprite::setOpacity(GLubyte opacity)
|
|||
}
|
||||
}
|
||||
|
||||
GLubyte CCScale9Sprite::getOpacity()
|
||||
{
|
||||
return _opacity;
|
||||
}
|
||||
|
||||
NS_CC_EXT_END
|
||||
|
|
|
@ -308,7 +308,9 @@ public:
|
|||
*/
|
||||
virtual bool isOpacityModifyRGB(void);
|
||||
virtual void setOpacity(GLubyte opacity);
|
||||
virtual GLubyte CCScale9Sprite::getOpacity();
|
||||
virtual void setColor(const ccColor3B& color);
|
||||
virtual const ccColor3B& CCScale9Sprite::getColor();
|
||||
|
||||
virtual bool updateWithBatchNode(CCSpriteBatchNode* batchnode, CCRect rect, bool rotated, CCRect capInsets);
|
||||
|
||||
|
|
Loading…
Reference in New Issue