Main Menu buttons hardcoded?
Essentially, the buttons available at the bottom of the main menu seem to be hard-coded to only be the two options buttons and the items button. No attempt at modifying MainMenuOverride.res appears to make any difference.
I am trying to enable the buttons for commentary and achievements, while disabling the button for items (at least for the time being), and I'm not able to do these due to do these because the main menu won't update it's layout.
What's more interesting is that MatchMakingDashboard.res is not affected by this, I can add or remove as many buttons as I like without consequence.
If anyone has any idea why this would be happening, and you don't mind sharing how to get around this, that would be great.
It's probably due to how the TF2 main menu is designed. It isn't like the HL2 main menu where buttons can be placed by editing a file. Rather, all the buttons and such are in different places, which requires some hardcoding.
These are because of some SDK-specific (I think?) code changes to tf_hud_mainmenuoverride.cpp that hide some buttons in the main menu. Why they opted to do this in code rather than with a custom MainMenuOverride.res file is beyond me.
Look through CHudMainMenuOverride::ApplySchemeSettings and keep an eye out for any statements that call SetVisible(false). You'll want to comment calls like that out to make the original buttons visible again. Notably, a number of buttons are hidden by lambdaAddTooltip, a lambda which has a call to SetVisible(false) in it for any button it is run on.