Пример #1
0
void CUI_LoadMsg::leave(void) {
    FileList *fl;
    SetThreadPriority(GetCurrentThread(),OldPriority);
    KillTimer(NULL,strtimer);
    CloseHandle(hThread);
//    setWindowTitle("zt");
    SDL_WM_SetCaption("zt","zt");
    fl = (FileList *)UIP_Savescreen->UI->get_element(0);
//    fl->set_cursor(load_filename);
    fl->setCursor(fl->findItem(load_filename));
    need_refresh++;
}
Пример #2
0
// ------------------------------------------------------------------------------------------------
//
//
void CUI_Loadscreen::enter(void) 
{
  need_refresh = 1;
  is_loading = 0;
  cur_state = STATE_LOAD;
  FileList *fl;
  DirList *dl;
  fl = (FileList *)UI->get_element(0);
  dl = (DirList *)UI->get_element(1);
  dl->OnChange();
  fl->OnChange();
  if (song->filename[0] && song->filename[0]!=' ') strcpy(load_filename, (const char *)song->filename);
//    fl->set_cursor(load_filename);
  fl->setCursor(fl->findItem(load_filename));
}