Vector2 stageSize = stage.GetSize();
- mImageView = ImageView::New( ANIMATED_VECTOR_IMAGE );
+ mImageView = ImageView::New();
Property::Map map;
map.Insert( Visual::Property::TYPE, Visual::IMAGE );
map.Insert( DevelImageVisual::Property::LOOP_COUNT, 3 );
mImageView.SetProperty( ImageView::Property::IMAGE, map );
- mImageView.SetSize( stageSize.width, stageSize.height );
+ mImageView.SetSize( stageSize.width / 2, stageSize.height / 2 );
mImageView.SetParentOrigin( ParentOrigin::CENTER );
DevelControl::VisualEventSignal( mImageView ).Connect( this, &AnimatedVectorImageViewController::OnVisualEvent );
}
else
{
- DevelControl::DoAction( mImageView, ImageView::Property::IMAGE, DevelAnimatedVectorImageVisual::Action::PAUSE, Property::Value() );
+ DevelControl::DoAction( mImageView, ImageView::Property::IMAGE, DevelAnimatedVectorImageVisual::Action::STOP, Property::Value() );
+ DevelControl::DoAction( mImageView, ImageView::Property::IMAGE, DevelAnimatedVectorImageVisual::Action::JUMP_TO, 0.5f );
+
mPauseButton.SetProperty( Button::Property::LABEL, "Play" );
}