MCPcopy Create free account
hub / github.com/axmolengine/axmol / sliderCtl

Method sliderCtl

tests/cpp-tests/Source/SchedulerTest/SchedulerTest.cpp:765–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763// SchedulerTimeScale
764
765ControlSlider* 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
780void SchedulerTimeScale::sliderAction(Object* sender, Control::EventType /*controlEvent*/)
781{

Callers

nothing calls this directly

Calls 5

createFunction · 0.85
setMinimumValueMethod · 0.45
setMaximumValueMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected