// SetActive updates the active entry among entries. It may be used
// to launch the menu at a specific default starting index.
SetActive updates the active entry among entries. It may be used
to launch the menu at a specific default starting index.
// SetActive updates the active entry among entries . It may be used // to launch the menu at a specific default starting index .
func (m *Menu) SetActive(i int) {
	if i < 0 || i >= len(m.entries) {
		return
	}
	if !m.entries[i].Disabled {
		m.active = m.idxToPos(i)
	}
	m.dirty = true
}
func ( m * Menu ) SetActive ( i int ) { if i < 0 || i >= len ( m . entries ) { return } if ! m . entries [ i ] . Disabled { m . active = m . idxToPos ( i ) } m . dirty = true }
SetActive updates the active entry among entries.
SetActive updates the active entry among entries .