void MainWindow::on_playButton_clicked() { hide_button(); start_demogame(); }
void ui_dialog(int dialog_text_id, int button_text_id, float hide_after) { set_dialog_text(dialog_text_id); if (button_text_id != UI_BUTTON_NONE) { set_button_text(button_text_id); show_button(); } else { hide_button(); } show_dialog(); if (hide_after > 0) { hide_dialog_later(hide_after); } }
void MainWindow::on_playButton_2_clicked() { hide_button(); ui->menuButton->show(); ui->mapList->show(); ui->mapList->setFocus(); ui->mapList->clear(); ui->offset_box->show(); ui->label->show(); ui->delay->show(); ui->label_2->show(); QDir dir_map; QString map_path=dir_map.currentPath()+"/songs"; dir_map.setPath(map_path); ui->mapList->addItems(dir_map.entryList(QDir::Dirs|QDir::NoDotAndDotDot)); if(ui->mapList->count()>0) ui->mapList->setCurrentItem(ui->mapList->item(0)); }