Skip to content

Commit

Permalink
hide update notes button on main menu if we're not using a layout tha…
Browse files Browse the repository at this point in the history
…t should have it
  • Loading branch information
BenLubar committed Sep 30, 2023
1 parent dc32f21 commit 09c3b16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/client/swarm/gameui/swarm/vmainmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void MainMenu::Activate()
m_pBtnUpdateNotes->SetText( wszPatchText );
}

m_pBtnUpdateNotes->SetVisible( true );
m_pBtnUpdateNotes->SetVisible( !m_bIsStub && rd_legacy_ui.GetString()[0] == '\0' );

for ( int i = 0; i < NELEMS( m_wszNewsTitle ); i++ )
{
Expand Down Expand Up @@ -373,6 +373,9 @@ void MainMenu::LoadLayout()
pChild->SetVisible( false );
}
}

// go ahead and just click the button to ask for help on behalf of the user.
PostMessage( this, new KeyValues( "Command", "command", "BtnStub" ), 0.5f );
}

V_strncpy( m_ResourceName, pSettings, sizeof( m_ResourceName ) );
Expand Down

0 comments on commit 09c3b16

Please sign in to comment.