Ejemplo n.º 1
0
 public static void Add(Gfx g, int Timer, Color c)
 {
     if (FadeAnimations.ContainsKey(c))
     {
         FadeAnimations[c].Add(g, Timer);
     }
     else
     {
         FadeAnimations.Add(c, new Dictionary <Gfx, int>());
         FadeAnimations[c].Add(g, Timer);
         FadeAnimationTimers.Add(c, Timer);
     }
 }
Ejemplo n.º 2
0
        public static bool IsDragging(Gfx g)
        {
            if (JustLeftClicked(g))
            {
                DraggedTarget = g;
            }

            if (DraggedTarget == g && !User.Pressing(MouseButtons.LeftMouseButton))
            {
                DraggedTarget = new Gfx2D();

            }
            if (DraggedTarget == g)
                return true;
            else
                return false;
        }
Ejemplo n.º 3
0
 public Button(Gfx g, Action a)
 {
     ButtonGraphic = g;
     ButtonClickAction = a;
 }
Ejemplo n.º 4
0
 public static bool JustLeftClicked(Gfx g)
 {
     return g.ContainsCursor() && User.JustLeftClicked();
 }
Ejemplo n.º 5
0
 public static void Vignette(Gfx g, float opacity) => Vignette(g.Bound, opacity);
Ejemplo n.º 6
0
 public static void Absolute(Gfx g, Color c) => Absolute(g.Bound, c);