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 authored and GitHub committed 2021-07-20 17:16:44 +12:00
1 parent 21a9c5b7d9
commit a64328da56
4 files changed
+51 -5

No files matched your search

+6 -2
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();