mirror of https://github.com/axmolengine/axmol.git
change setColor to setTextColor
This commit is contained in:
parent
6ec03010a7
commit
3f0f7c289f
|
@ -724,12 +724,12 @@ const std::string& Button::getTitleText() const
|
|||
|
||||
void Button::setTitleColor(const Color3B& color)
|
||||
{
|
||||
_titleRenderer->setColor(color);
|
||||
_titleRenderer->setTextColor(Color4B(color));
|
||||
}
|
||||
|
||||
const Color3B& Button::getTitleColor() const
|
||||
Color3B Button::getTitleColor() const
|
||||
{
|
||||
return _titleRenderer->getColor();
|
||||
return Color3B(_titleRenderer->getTextColor());
|
||||
}
|
||||
|
||||
void Button::setTitleFontSize(float size)
|
||||
|
|
|
@ -189,7 +189,7 @@ public:
|
|||
void setTitleText(const std::string& text);
|
||||
const std::string& getTitleText() const;
|
||||
void setTitleColor(const Color3B& color);
|
||||
const Color3B& getTitleColor() const;
|
||||
Color3B getTitleColor() const;
|
||||
void setTitleFontSize(float size);
|
||||
float getTitleFontSize() const;
|
||||
void setTitleFontName(const std::string& fontName);
|
||||
|
|
Loading…
Reference in New Issue