| 297 | } |
| 298 | |
| 299 | void Button::setupNormalTexture(bool textureLoaded) |
| 300 | { |
| 301 | _normalTextureSize = _buttonNormalRenderer->getContentSize(); |
| 302 | |
| 303 | this->updateChildrenDisplayedRGBA(); |
| 304 | |
| 305 | if (_unifySize) |
| 306 | { |
| 307 | if (!_scale9Enabled) |
| 308 | { |
| 309 | updateContentSizeWithTextureSize(this->getNormalSize()); |
| 310 | } |
| 311 | } |
| 312 | else |
| 313 | { |
| 314 | updateContentSizeWithTextureSize(_normalTextureSize); |
| 315 | } |
| 316 | _normalTextureLoaded = textureLoaded; |
| 317 | _normalTextureAdaptDirty = true; |
| 318 | } |
| 319 | |
| 320 | void Button::loadTextureNormal(SpriteFrame* normalSpriteFrame) |
| 321 | { |
no test coverage detected