mirror of https://github.com/axmolengine/axmol.git
Merge pull request #8603 from ahlwong/v3
Fix UIButton Scale 9 Highlight
This commit is contained in:
commit
cbc2a5246f
|
@ -373,13 +373,21 @@ void Button::onPressStateChangedToNormal()
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_buttonNormalRenderer->setColor(Color3B::WHITE);
|
||||
}
|
||||
else
|
||||
{
|
||||
_buttonNormalRenderer->stopAllActions();
|
||||
_buttonNormalRenderer->setScale(_normalTextureScaleXInSize, _normalTextureScaleYInSize);
|
||||
|
||||
_titleRenderer->stopAllActions();
|
||||
_titleRenderer->setScaleX(_normalTextureScaleXInSize);
|
||||
_titleRenderer->setScaleY(_normalTextureScaleYInSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button::onPressStateChangedToPressed()
|
||||
|
|
Loading…
Reference in New Issue