Browse Source

Fix ypos scale for chapters panel

ToGLES3
JusicP 3 years ago
parent
commit
463e4eb584
  1. 5
      gameui/NewGameDialog.cpp

5
gameui/NewGameDialog.cpp

@ -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…
Cancel
Save