diff --git a/CONFIG/MainDlg.cpp b/CONFIG/MainDlg.cpp index dc63995e..dfba47ea 100644 --- a/CONFIG/MainDlg.cpp +++ b/CONFIG/MainDlg.cpp @@ -76,7 +76,9 @@ CMainDialog::CMainDialog(QWidget* pParent) : QDialog(pParent) connect(m_ui->texturePath, &QLineEdit::editingFinished, this, &CMainDialog::TexturePathEdited); connect(m_ui->maxLoDSlider, &QSlider::valueChanged, this, &CMainDialog::MaxLoDChanged); + connect(m_ui->maxLoDSlider, &QSlider::sliderMoved, this, &CMainDialog::MaxLoDChanged); connect(m_ui->maxActorsSlider, &QSlider::valueChanged, this, &CMainDialog::MaxActorsChanged); + connect(m_ui->maxActorsSlider, &QSlider::sliderMoved, this, &CMainDialog::MaxActorsChanged); layout()->setSizeConstraint(QLayout::SetFixedSize); } @@ -120,7 +122,9 @@ bool CMainDialog::OnInitDialog() m_ui->devicesList->setCurrentRow(selected); m_ui->maxLoDSlider->setValue((int) currentConfigApp->m_max_lod * 10); + m_ui->LoDNum->setNum((int) currentConfigApp->m_max_lod * 10); m_ui->maxActorsSlider->setValue(currentConfigApp->m_max_actors); + m_ui->maxActorsNum->setNum(currentConfigApp->m_max_actors); UpdateInterface(); return true; } @@ -400,12 +404,14 @@ void CMainDialog::SavePathEdited() void CMainDialog::MaxLoDChanged(int value) { currentConfigApp->m_max_lod = static_cast(value) / 10.0f; + m_ui->LoDNum->setNum(value); m_modified = true; } void CMainDialog::MaxActorsChanged(int value) { currentConfigApp->m_max_actors = value; + m_ui->maxActorsNum->setNum(value); m_modified = true; } diff --git a/CONFIG/res/maindialog.ui b/CONFIG/res/maindialog.ui index 4f724705..526c31d8 100644 --- a/CONFIG/res/maindialog.ui +++ b/CONFIG/res/maindialog.ui @@ -239,7 +239,7 @@ The game will gradually increase the number of actors until this maximum is reac - + 0 @@ -805,70 +805,5 @@ A higher setting will cause higher quality textures to be drawn regardless of di - - - maxActorsSlider - sliderMoved(int) - label - setNum(int) - - - 436 - 269 - - - 525 - 274 - - - - - maxActorsSlider - valueChanged(int) - label - setNum(int) - - - 387 - 274 - - - 518 - 276 - - - - - maxLoDSlider - valueChanged(int) - LoDNum - setNum(int) - - - 269 - 270 - - - 327 - 274 - - - - - maxLoDSlider - sliderMoved(int) - LoDNum - setNum(int) - - - 260 - 277 - - - 328 - 262 - - - - +