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(); } } }
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(); } } }