diff --git a/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin b/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin index fecc00a9..f1134b14 100644 Binary files a/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin and b/SampleForDoc/GacUI/UIRes/32bits/kb_animation.bin differ diff --git a/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin b/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin index c36ab32e..bb789011 100644 Binary files a/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin and b/SampleForDoc/GacUI/UIRes/64bits/kb_animation.bin differ diff --git a/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml b/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml index ad31c9c6..63752477 100644 --- a/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml +++ b/SampleForDoc/GacUI/XmlRes/kb_animation/Resource.xml @@ -106,7 +106,14 @@ (1 - d)) { return 0; } + var y = (x - d * 2) * (1 / (1 - d * 2)); + if (y < 0.5) { return y * yx * 2; } else { return 0.5 + (y - 0.5) * (y - 0.5) * 2; } + } ]]> @@ -132,15 +139,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::NormalSelected(), cast UInt64 500); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::ActiveSelected(), cast UInt64 500); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::PressedSelected(), cast UInt64 500); } } } @@ -150,15 +157,15 @@ { case Normal: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Normal(), cast UInt64 500); } case Active: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Active(), cast UInt64 500); } case Pressed: { - newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 250); + newAnimation = animationBuilder.CreateAnimation(RadioButtonTemplateState::Pressed(), cast UInt64 500); } } }