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

Method updateBGColor

Source/SongCell.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void SongCell::updateBGColor(int num)
50{
51 _bgColor = ax::LayerColor::create();
52 if (num % 2 == 0) _bgColor->initWithColor({ 161, 88, 44, 255 });
53 else _bgColor->initWithColor({ 191, 114, 62, 255 });
54 _bgColor->setContentSize(this->getContentSize());
55 _bgColor->setPosition(this->getPosition());
56 this->addChild(_bgColor, -1);
57}
58
59bool SongCell::init(SongObject* songInfo)
60{

Callers 2

customSetupMethod · 0.45
fillListMethod · 0.45

Calls 2

createFunction · 0.85
setPositionMethod · 0.80

Tested by

no test coverage detected