mirror of https://github.com/axmolengine/axmol.git
Merge branch 'fix_ccscale9sprite' of git://github.com/Clarinexus/cocos2d-x into Clarinexus-fix_cccontrolbutton
This commit is contained in:
commit
a8c95bc6f3
|
@ -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