Closed k0091601 closed 11 years ago
\src\common\GameUI\IGameUI.h provides
// Client DLL is providing us with a panel that it wants to replace the main menu with
virtual void SetMainMenuOverride( vgui::VPANEL panel ) = 0;
// Client DLL is telling us that a main menu command was issued, probably from its custom main menu panel
virtual void SendMainMenuCommand( const char *pszCommand ) = 0;
Implementing your own main menu, and calling your own dialogs is relatively easy with this. You could take whatever code you need from ASW, modifiy it so it fits and make a pull request.
I doubt Valve would add DOD:S or CS:S code since it'll most likely just result in 10000 silly clones with one silly thing changed.
The method that @joeangry references is the way TF2 overrides its main menu. I would suggest using that.
The alien swarm code branch provided the full code for game ui (i realize that halflife2/hl2mp use a different game ui) This was a huge benefit for modders as it allowed them to create post l4d style ui's with lobby's matchmaking ect. Can we see the return of this in the future? even if it isn't linked into the sample projects it would be really useful.
Also unless i have overlooked it , there is still no tool sample code , i believe in orangebox there was a reference to a tools/sampletool/ is there a possibility that we could see this added in a future update?
Also I might as well take a shot in the dark and ask ; will we ever see the inclusion of day of defeat or counter strike? is this something that has been considered? or are there restrictions that prevent the release of these to the public? It would be nice to see them supported officially and to finally put to death the hacky ports that are bound to start appearing on 2013.