| 763 | // SchedulerTimeScale |
| 764 | |
| 765 | ControlSlider* SchedulerTimeScale::sliderCtl() |
| 766 | { |
| 767 | ControlSlider* slider = ControlSlider::create("extensions/sliderTrack2.png", "extensions/sliderProgress2.png", |
| 768 | "extensions/sliderThumb.png"); |
| 769 | |
| 770 | slider->addTargetWithActionForControlEvents(this, cccontrol_selector(SchedulerTimeScale::sliderAction), |
| 771 | Control::EventType::VALUE_CHANGED); |
| 772 | |
| 773 | slider->setMinimumValue(-3.0f); |
| 774 | slider->setMaximumValue(3.0f); |
| 775 | slider->setValue(1.0f); |
| 776 | |
| 777 | return slider; |
| 778 | } |
| 779 | |
| 780 | void SchedulerTimeScale::sliderAction(Object* sender, Control::EventType /*controlEvent*/) |
| 781 | { |
nothing calls this directly
no test coverage detected