Exemple #1
0
 public override void Blur()
 {
     gainFocus = false;
     if (group != null)
     {
         for (int i = 0; i < group.menuElements.Count; i++)
         {
             ControllableGridMenuElement menuElement = group.menuElements[i];
             menuElement.Blur();
         }
     }
 }
Exemple #2
0
    public void FocusElement(int index)
    {
        if (menuElements.Count == 0)
        {
            return;
        }

        currentMenuElementIndex = index;
        for (int i = 0; i < menuElements.Count; i++)
        {
            ControllableGridMenuElement menuElement = menuElements[i];
            if (i == currentMenuElementIndex)
            {
                menuElement.Focus();
            }
            else
            {
                menuElement.Blur();
            }
        }
    }