1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Draft to hide scaling dropdown as needed

This commit is contained in:
Mike 2024-10-24 18:54:39 -07:00
parent 1826b5bbdf
commit 3690e05e40
2 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,7 @@ endif()
option(ENABLE_CLIENT "Enable compilation of game client" ON)
option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" OFF)
option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)
option(ENABLE_MINIMAL_LIB "Build only core parts of vcmi library that are required for game lobby" OFF)
option(ENABLE_GOLDMASTER "Build in public release mode in which some debug routines are disabled" OFF)

View File

@ -838,6 +838,11 @@ void CSettingsView::on_sliderScalingCursor_valueChanged(int value)
void CSettingsView::on_buttonScalingAuto_toggled(bool checked)
{
if (checked)
ui->spinBoxInterfaceScaling->hide();
else
ui->spinBoxInterfaceScaling->show();
ui->spinBoxInterfaceScaling->setDisabled(checked);
ui->spinBoxInterfaceScaling->setValue(100);