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

Method doShowAnimation

tests/fairygui-tests/Source/Window2.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void Window2::doShowAnimation()
12{
13 setScale(0.1f, 0.1f);
14 setPivot(0.5f, 0.5f);
15
16 GTween::to(getScale(), Vec2::ONE, 0.3f)->setTarget(this, TweenPropType::Scale)->onComplete(AX_CALLBACK_0(Window2::onShown, this));
17}
18
19void Window2::doHideAnimation()
20{

Callers

nothing calls this directly

Calls 3

onCompleteMethod · 0.80
setScaleFunction · 0.50
setTargetMethod · 0.45

Tested by

no test coverage detected