MCPcopy Create free account
hub / github.com/axmolengine/axmol / loadTextureBackGroundDisabled

Method loadTextureBackGroundDisabled

core/ui/UIAbstractCheckButton.cpp:239–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void 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
261void AbstractCheckButton::loadTextureBackGroundDisabled(SpriteFrame* spriteframe)
262{

Calls 4

emptyMethod · 0.45
setTextureMethod · 0.45
setSpriteFrameMethod · 0.45

Tested by

no test coverage detected