Example #1
0
        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;
        }
Example #2
0
 private static void ScaleUpYoYo(GraphicsComponent image, Effect effect)
 {
     Tween.Scale( image, new Vector2( effect.max ), effect.duration, Ease.BackInOut, Tween.TweenMode.YoyoOneshot );
 }
Example #3
0
 private static void FadeOut(GraphicsComponent image, Effect effect)
 {
     Tween.Alpha(image, effect.min, effect.duration, Ease.CubeOut, Tween.TweenMode.Oneshot);
 }
Example #4
0
 internal static void OutlineOut(GraphicsComponent image, Effect effect)
 {
     image.outlined = false;
 }
Example #5
0
 internal static void OutlineIn(GraphicsComponent image, Effect effect)
 {
     image.outlined = true;
     image.outlineColor = effect.outline;
 }
Example #6
0
 internal static void ColorOut(GraphicsComponent image, Effect effect)
 {
     image.outlined = false;
     image.Color = effect.deselectedColor;
 }