MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / init

Method init

Source/LoadingCircle.cpp:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool LoadingCircle::init()
40{
41 m_pCircle = ax::Sprite::create(GameToolbox::getTextureString("loadingCircle.png"));
42
43 if(!m_pCircle)
44 {
45 GameToolbox::log("WARN: loadingCircle is not present in your gd textures!");
46 } else {
47 m_pCircle->setBlendFunc(GameToolbox::getBlending());
48 this->addChild(m_pCircle);
49 }
50
51 scheduleUpdate();
52
53 return true;
54}
55void LoadingCircle::update(float delta)
56{
57 if(m_pCircle)

Callers 1

createMethod · 0.45

Calls 2

createFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected