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

Method loadTextureFrontCross

core/ui/UIAbstractCheckButton.cpp:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void AbstractCheckButton::loadTextureFrontCross(std::string_view cross, TextureResType texType)
209{
210 _frontCrossFileName = cross;
211
212 _frontCrossTexType = texType;
213 switch (_frontCrossTexType)
214 {
215 case TextureResType::LOCAL:
216 _frontCrossRenderer->setTexture(cross);
217 break;
218 case TextureResType::PLIST:
219 _frontCrossRenderer->setSpriteFrame(cross);
220 break;
221 default:
222 break;
223 }
224 this->setupFrontCrossTexture();
225}
226
227void AbstractCheckButton::loadTextureFrontCross(SpriteFrame* spriteFrame)
228{

Calls 3

setTextureMethod · 0.45
setSpriteFrameMethod · 0.45

Tested by

no test coverage detected