GUI: Add ScrollContainer to in-game options Game tab

Fixes mousewheel crash and allows scrolling when there's more than 10 options
This commit is contained in:
SupSuper 2022-06-04 08:42:19 +01:00
parent 34948993ba
commit 9df444abec
9 changed files with 6 additions and 6 deletions

View File

@ -272,7 +272,7 @@ ConfigDialog::ConfigDialog() :
// The game specific options tab
//
int tabId = tab->addTab(_("Game"), "GlobalConfig_Engine", false);
int tabId = tab->addTab(_("Game"), "GlobalConfig_Engine");
if (g_engine->hasFeature(Engine::kSupportsChangingOptionsDuringRuntime)) {
_engineOptions = metaEngine->buildEngineOptionsWidgetDynamic(tab, "GlobalConfig_Engine.Container", gameDomain);
@ -428,7 +428,7 @@ Common::String ExtraGuiOptionsWidget::dialogLayout(const Common::String &domain)
if (ConfMan.getActiveDomainName().equals(domain)) {
return "GlobalConfig_Engine_Container";
} else {
return "GameOptions_Engine_Container";
return "GameOptions_Game_Container";
}
}

View File

@ -1444,7 +1444,7 @@
</dialog>
<dialog name = 'GlobalConfig_Engine' overlays = 'Dialog.GlobalConfig.TabWidget'>
<layout type = 'vertical' padding = '0, 0, 0, 0'>
<layout type = 'vertical' padding = '8, 8, 8, 8'>
<widget name = 'Container'/>
</layout>
</dialog>

View File

@ -1413,7 +1413,7 @@
</dialog>
<dialog name = 'GlobalConfig_Engine' overlays = 'Dialog.GlobalConfig.TabWidget'>
<layout type = 'vertical' padding = '0, 0, 0, 0'>
<layout type = 'vertical' padding = '8, 8, 8, 8'>
<widget name = 'Container'/>
</layout>
</dialog>

Binary file not shown.

Binary file not shown.

View File

@ -1313,7 +1313,7 @@
</dialog>
<dialog name = 'GlobalConfig_Engine' overlays = 'Dialog.GlobalConfig.TabWidget'>
<layout type = 'vertical' padding = '0, 0, 0, 0'>
<layout type = 'vertical' padding = '8, 8, 8, 8'>
<widget name = 'Container'/>
</layout>
</dialog>

View File

@ -1330,7 +1330,7 @@
</dialog>
<dialog name = 'GlobalConfig_Engine' overlays = 'Dialog.GlobalConfig.TabWidget'>
<layout type = 'vertical' padding = '0, 0, 0, 0'>
<layout type = 'vertical' padding = '8, 8, 8, 8'>
<widget name = 'Container'/>
</layout>
</dialog>

Binary file not shown.

Binary file not shown.