Esempio n. 1
0
 protected override void UpdateImpl()
 {
     right.Alpha = left.Alpha = Selected ? AnimationUtility.IncreaseAlpha(left.Alpha) : AnimationUtility.DecreaseAlpha(left.Alpha);
 }
Esempio n. 2
0
 protected override void UpdateImpl()
 {
     check.Hidden   = !Checked;
     checkBox.Alpha = Selected ? AnimationUtility.IncreaseAlpha(checkBox.Alpha) : AnimationUtility.DecreaseAlpha(checkBox.Alpha);
 }
Esempio n. 3
0
        protected override void UpdateImpl()
        {
            float newAlpha = (mouseOn || Selected) ? AnimationUtility.DecreaseAlpha(normal.Alpha) : AnimationUtility.IncreaseAlpha(normal.Alpha);

            normal.Alpha = newAlpha;
            over.Alpha   = 1 - newAlpha;
            str.Alpha    = 1 - newAlpha;
        }