public static Effect ColorSwap(Color Selected, Color NotSelected) { Effect effect = new Effect(10, 0.85f, 1.2f, SelectorMenuEffects.ColorIn, SelectorMenuEffects.ColorOut); effect.outline = Color.Black; effect.selectedColor = Selected; effect.deselectedColor = NotSelected; return effect; }
private static void ScaleUpYoYo(GraphicsComponent image, Effect effect) { Tween.Scale( image, new Vector2( effect.max ), effect.duration, Ease.BackInOut, Tween.TweenMode.YoyoOneshot ); }
private static void FadeOut(GraphicsComponent image, Effect effect) { Tween.Alpha(image, effect.min, effect.duration, Ease.CubeOut, Tween.TweenMode.Oneshot); }
internal static void OutlineOut(GraphicsComponent image, Effect effect) { image.outlined = false; }
internal static void OutlineIn(GraphicsComponent image, Effect effect) { image.outlined = true; image.outlineColor = effect.outline; }
internal static void ColorOut(GraphicsComponent image, Effect effect) { image.outlined = false; image.Color = effect.deselectedColor; }