diff --git a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp index 67354dc17c..1c29cc8a1d 100644 --- a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp +++ b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp @@ -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 diff --git a/extensions/GUI/CCControlExtension/CCScale9Sprite.h b/extensions/GUI/CCControlExtension/CCScale9Sprite.h index 437ba9a9d2..c826efeff2 100644 --- a/extensions/GUI/CCControlExtension/CCScale9Sprite.h +++ b/extensions/GUI/CCControlExtension/CCScale9Sprite.h @@ -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);