| 47 | } |
| 48 | |
| 49 | void 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 | |
| 59 | bool SongCell::init(SongObject* songInfo) |
| 60 | { |
no test coverage detected