Beispiel #1
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;
        }
Beispiel #2
0
 protected override void UpdateImpl()
 {
     check.Hidden   = !Checked;
     checkBox.Alpha = Selected ? AnimationUtility.IncreaseAlpha(checkBox.Alpha) : AnimationUtility.DecreaseAlpha(checkBox.Alpha);
 }
Beispiel #3
0
 protected override void UpdateImpl()
 {
     right.Alpha = left.Alpha = Selected ? AnimationUtility.IncreaseAlpha(left.Alpha) : AnimationUtility.DecreaseAlpha(left.Alpha);
 }