| 696 | } |
| 697 | |
| 698 | void ControlButton::setColor(const Color3B& color) |
| 699 | { |
| 700 | Control::setColor(color); |
| 701 | |
| 702 | for (auto iter = _backgroundSpriteDispatchTable.begin(); iter != _backgroundSpriteDispatchTable.end(); ++iter) |
| 703 | { |
| 704 | iter->second->setColor(color); |
| 705 | } |
| 706 | |
| 707 | for (auto iter = _titleLabelDispatchTable.begin(); iter != _titleLabelDispatchTable.end(); ++iter) |
| 708 | { |
| 709 | iter->second->setColor(color); |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | void ControlButton::updateDisplayedColor(const Color3B& parentColor) |
| 714 | { |
no test coverage detected