mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-12 16:18:03 +00:00
Fix ypos scale for chapters panel
This commit is contained in:
parent
61bd00c12b
commit
463e4eb584
@ -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 New Issue
Block a user