mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
Merge pull request #385 from zilongshanren/fix-label-outline-color
fix label outline color
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user