Merge pull request #385 from zilongshanren/fix-label-outline-color

fix label outline color
This commit is contained in:
子龙山人
2016-11-10 22:16:38 -08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -169,6 +169,11 @@ private:
bool _letterVisible;
};
void Label::setColor(const cocos2d::Color3B &color)
{
this->setTextColor(Color4B(color));
}
Label* Label::create()
{
auto ret = new (std::nothrow) Label;
+2 -1
View File
@@ -322,6 +322,8 @@ public:
*/
int getStringLength();
virtual void setColor(const Color3B& color);
/**
* Sets the text color of Label.
*
@@ -784,4 +786,3 @@ private:
NS_CC_END
#endif /*__COCOS2D_CCLABEL_H */