UI: Add "18 Scenes" multiview option

Adds a "18 Scenes" multiview option. The 18 scene view leaves the
preview and program sized to the upper half of the window

Settings index in combobox may not match up with enum index. Settings
in the dropdown can now be ordered separately from the enum order.
This commit is contained in:
Delta 2021-07-19 22:16:44 -07:00 • committed by GitHub
commit a64328da56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 5 deletions

View file

@ -1350,12 +1350,16 @@ void OBSBasicSettings::LoadGeneralSettings()
ui->multiviewLayout->addItem(
QTStr("Basic.Settings.General.MultiviewLayout.Vertical.Right"),
static_cast<int>(MultiviewLayout::VERTICAL_RIGHT_8_SCENES));
ui->multiviewLayout->addItem(
QTStr("Basic.Settings.General.MultiviewLayout.Horizontal.18Scene.Top"),
static_cast<int>(MultiviewLayout::HORIZONTAL_TOP_18_SCENES));
ui->multiviewLayout->addItem(
QTStr("Basic.Settings.General.MultiviewLayout.Horizontal.Extended.Top"),
static_cast<int>(MultiviewLayout::HORIZONTAL_TOP_24_SCENES));
ui->multiviewLayout->setCurrentIndex(config_get_int(
GetGlobalConfig(), "BasicWindow", "MultiviewLayout"));
ui->multiviewLayout->setCurrentIndex(
ui->multiviewLayout->findData(
config_get_int(GetGlobalConfig(), "BasicWindow", "MultiviewLayout")));
prevLangIndex = ui->language->currentIndex();