Ejemplo n.º 1
0
        public void Draw()
        {
            if (isMoving)
            {
                Vector2 mPos = Game.MouseScreenPosition;
                x = mPos.X;
                y = mPos.Y;
            }
            DrawBase();
            int i = 0;
            int n = 1;

            DrawElements(Main.GetElements(), ref n, ref i);
        }
Ejemplo n.º 2
0
 public void Count(EzElement cat, ref int i)
 {
     foreach (EzElement element in cat.GetElements())
     {
         i++;
         if (element.Type == ElementType.CATEGORY && element.isActive)
         {
             Count(element, ref i);
         }
     }
 }
Ejemplo n.º 3
0
 public void MouseClick(EzElement cat)
 {
     foreach (EzElement element in cat.GetElements())
     {
         bool mouseIn = MouseIn(element.Position);
         if (mouseIn)
         {
             element.isActive = !element.isActive; return;
         }
         if (element.Type == ElementType.CATEGORY)
         {
             if (element.isActive)
             {
                 MouseClick(element);
             }
         }
     }
 }
Ejemplo n.º 4
0
        public void MouseClick(EzElement cat)
        {
            foreach (EzElement element in cat.GetElements())
            {
                bool mouseIn = MouseIn(element.Position);
                if (mouseIn) { element.isActive = !element.isActive; return; }
                if (element.Type == ElementType.CATEGORY)
                    if (element.isActive) MouseClick(element);
            }

        }
Ejemplo n.º 5
0
 public void Count(EzElement cat, ref int i)
 {
     foreach (EzElement element in cat.GetElements())
     {
         i++;
         if (element.Type == ElementType.CATEGORY && element.isActive) Count(element, ref i);
     }
 }