qboolean Menu_MouseSelectItem(menucommon_s * item) { if (item) { switch (item->type) { case MTYPE_FIELD: return Field_DoEnter((menufield_s *) item); case MTYPE_ACTION: Action_DoEnter((menuaction_s *) item); return true; case MTYPE_LIST: case MTYPE_SPINCONTROL: return false; } } return false; }
qboolean Menu_SelectItem(menuframework_s * s) { menucommon_s *item = (menucommon_s *) Menu_ItemAtCursor(s); if (item) { switch (item->type) { case MTYPE_FIELD: return Field_DoEnter((menufield_s *) item); case MTYPE_ACTION: Action_DoEnter((menuaction_s *) item); return true; case MTYPE_LIST: /* Menulist_DoEnter( ( menulist_s * ) item ); */ return false; case MTYPE_SPINCONTROL: /* SpinControl_DoEnter( ( menulist_s * ) item ); */ return false; } } return false; }
int Menu_SelectItem( menuframework_t *s ) { menucommon_t *item = ( menucommon_t * ) Menu_ItemAtCursor( s ); if ( item ) { switch ( item->type ) { case MTYPE_FIELD: return Field_DoEnter( ( menufield_t * ) item ) ; case MTYPE_ACTION: Action_DoEnter( ( menuaction_t * ) item ); return 1; case MTYPE_LIST: // Menulist_DoEnter( ( menulist_t * ) item ); return 0; case MTYPE_SPINCONTROL: // SpinControl_DoEnter( ( menulist_t * ) item ); return 0; } } return 0; }