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