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

Method onPressStateChangedToNormal

core/ui/UIMediaPlayer.cpp:441–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441void MediaPlayerControl::onPressStateChangedToNormal()
442{
443 Button::onPressStateChangedToNormal();
444
445 if (nullptr != _overlay)
446 {
447 _overlay->stopAllActions();
448 if (_unifySize)
449 {
450 Action* zoomTitleAction = ScaleTo::create(ZOOM_ACTION_TIME_STEP, 1.0f, 1.0f);
451 _overlay->runAction(zoomTitleAction);
452 }
453 else
454 {
455 _overlay->setScaleX(1.0f);
456 _overlay->setScaleY(1.0f);
457 }
458 }
459}
460
461void MediaPlayerControl::onPressStateChangedToPressed()
462{

Callers

nothing calls this directly

Calls 5

createFunction · 0.85
stopAllActionsMethod · 0.80
runActionMethod · 0.45
setScaleXMethod · 0.45
setScaleYMethod · 0.45

Tested by

no test coverage detected