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

Method sliderAction

tests/cpp-tests/Source/SchedulerTest/SchedulerTest.cpp:780–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780void SchedulerTimeScale::sliderAction(Object* sender, Control::EventType /*controlEvent*/)
781{
782 ControlSlider* pSliderCtl = static_cast<ControlSlider*>(sender);
783 float scale;
784 scale = pSliderCtl->getValue();
785
786 Director::getInstance()->getScheduler()->setTimeScale(scale);
787}
788
789void SchedulerTimeScale::onEnter()
790{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
getValueMethod · 0.45
setTimeScaleMethod · 0.45

Tested by

no test coverage detected