Exemplo n.º 1
0
void CGUIBaseContainer::OnRight()
{
    bool wrapAround = m_actionRight.GetNavigation() == GetID() || !m_actionRight.HasActionsMeetingCondition();
    if (m_orientation == HORIZONTAL && MoveDown(wrapAround))
        return;
    else if (m_orientation == VERTICAL)
    {
        CGUIListItemLayout *focusedLayout = GetFocusedLayout();
        if (focusedLayout && focusedLayout->MoveRight())
            return;
    }
    CGUIControl::OnRight();
}
Exemplo n.º 2
0
void CGUIBaseContainer::OnRight()
{
  bool wrapAround = m_controlRight == GetID() || !(m_controlRight || m_rightActions.size());
  if (m_orientation == HORIZONTAL && MoveDown(wrapAround))
    return;
  else if (m_orientation == VERTICAL)
  {
    CGUIListItemLayout *focusedLayout = GetFocusedLayout();
    if (focusedLayout && focusedLayout->MoveRight())
      return;
  }
  CGUIControl::OnRight();
}