| 1737 | } |
| 1738 | |
| 1739 | void LabelShadowTest::sliderEvent(Object* pSender, ui::Slider::EventType type) |
| 1740 | { |
| 1741 | if (type == Slider::EventType::ON_PERCENTAGE_CHANGED) |
| 1742 | { |
| 1743 | Slider* slider = (Slider*)this->getChildByTag(1); |
| 1744 | Slider* slider2 = (Slider*)this->getChildByTag(2); |
| 1745 | |
| 1746 | auto offset = Size(slider->getPercent() - 50, 50 - slider2->getPercent()); |
| 1747 | shadowLabelTTF->enableShadow(Color4B::BLACK, offset); |
| 1748 | shadowLabelBMFont->enableShadow(Color4B::GREEN, offset); |
| 1749 | shadowLabelOutline->enableShadow(Color4B::GREEN, offset); |
| 1750 | shadowLabelGrow->enableShadow(Color4B::BLUE, offset); |
| 1751 | } |
| 1752 | } |
| 1753 | |
| 1754 | std::string LabelShadowTest::title() const |
| 1755 | { |
nothing calls this directly
no test coverage detected