예제 #1
0
// ------------------------------------------------------------------------------------------------
//
//
void fl_enter(UserInterfaceElement *uie)
{
  char *f;
  FileList *fl = (FileList *)uie;
  f = fl->getCurrentItem();
  strcpy(&save_filename[0], f);
  begin_save();   
}
예제 #2
0
void filelist_onEnter(UserInterfaceElement *b) {
    if(ztPlayer->playing)
    {
        UIP_RUSure->str = " You crazy?";
        popup_window(UIP_RUSure);
        return;
    }
    UIP_RUSure->str = " Load file?";
    UIP_RUSure->OnYes = (VFunc)do_load;
    FileList *f = (FileList *)b;
    strcpy(load_filename,f->getCurrentItem());
    if (file_changed)
        popup_window(UIP_RUSure);
    else
        popup_window(UIP_LoadMsg);
}
예제 #3
0
// ------------------------------------------------------------------------------------------------
//
//
void filelist_onEnter(UserInterfaceElement *b)
{
//  <Manu> Desactivamos el requester de si estas loco, al cargar 
//         la cancion se comprueba si se esta playeando y la parara
  
/*  if(ztPlayer->playing) {
        UIP_RUSure->str = " You crazy?";
        popup_window(UIP_RUSure);
        return;
    }
*/
  UIP_RUSure->str = " Load file?";
  UIP_RUSure->OnYes = (VFunc)do_load;
  FileList *f = (FileList *)b;
  strcpy(load_filename,f->getCurrentItem());
  
  if (file_changed) popup_window(UIP_RUSure);
  else popup_window(UIP_LoadMsg);
}