Fix ypos scale for chapters panel
This commit is contained in:
parent
7236dc5268
commit
3fe04750ab
1 changed files with 5 additions and 0 deletions
|
@ -615,6 +615,11 @@ void CNewGameDialog::ApplySettings( KeyValues *inResourceData )
|
||||||
BaseClass::ApplySettings( inResourceData );
|
BaseClass::ApplySettings( inResourceData );
|
||||||
|
|
||||||
int ypos = inResourceData->GetInt( "chapterypos", 40 );
|
int ypos = inResourceData->GetInt( "chapterypos", 40 );
|
||||||
|
if (IsProportional())
|
||||||
|
{
|
||||||
|
ypos = scheme()->GetProportionalScaledValueEx(GetScheme(), ypos);
|
||||||
|
}
|
||||||
|
|
||||||
for ( int i = 0; i < NUM_SLOTS; ++i )
|
for ( int i = 0; i < NUM_SLOTS; ++i )
|
||||||
{
|
{
|
||||||
m_PanelYPos[i] = ypos;
|
m_PanelYPos[i] = ypos;
|
||||||
|
|
Loading…
Reference in a new issue