| 237 | } |
| 238 | |
| 239 | void AbstractCheckButton::loadTextureBackGroundDisabled(std::string_view backGroundDisabled, TextureResType texType) |
| 240 | { |
| 241 | _backGroundDisabledFileName = backGroundDisabled; |
| 242 | _isBackgroundDisabledTextureLoaded = !backGroundDisabled.empty(); |
| 243 | if (!_isBackgroundDisabledTextureLoaded) |
| 244 | return; |
| 245 | |
| 246 | _backGroundDisabledTexType = texType; |
| 247 | switch (_backGroundDisabledTexType) |
| 248 | { |
| 249 | case TextureResType::LOCAL: |
| 250 | _backGroundBoxDisabledRenderer->setTexture(backGroundDisabled); |
| 251 | break; |
| 252 | case TextureResType::PLIST: |
| 253 | _backGroundBoxDisabledRenderer->setSpriteFrame(backGroundDisabled); |
| 254 | break; |
| 255 | default: |
| 256 | break; |
| 257 | } |
| 258 | this->setupBackgroundDisable(); |
| 259 | } |
| 260 | |
| 261 | void AbstractCheckButton::loadTextureBackGroundDisabled(SpriteFrame* spriteframe) |
| 262 | { |
no test coverage detected