Fix ypos scale for chapters panel

This commit is contained in:
JusicP 2022-01-09 20:17:11 +02:00
parent 61bd00c12b
commit 463e4eb584

View File

@ -615,6 +615,11 @@ void CNewGameDialog::ApplySettings( KeyValues *inResourceData )
BaseClass::ApplySettings( inResourceData );
int ypos = inResourceData->GetInt( "chapterypos", 40 );
if (IsProportional())
{
ypos = scheme()->GetProportionalScaledValueEx(GetScheme(), ypos);
}
for ( int i = 0; i < NUM_SLOTS; ++i )
{
m_PanelYPos[i] = ypos;