GameUI: Difference between revisions
TomEdwards (talk | contribs) |
TomEdwards (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
[[File:Swarm menu.jpg|thumb|[[Left 4 Dead (engine branch)|Left 4 Dead branch]] GameUI. Alien Swarm's SDK provides the code.]] | [[File:Swarm menu.jpg|thumb|[[Left 4 Dead (engine branch)|Left 4 Dead branch]] GameUI. Alien Swarm's SDK provides the code.]] | ||
The [[Alien Swarm SDK]] contains the complete source for the newer L4D-style GameUI, | The [[Alien Swarm SDK]] contains the complete source for the newer L4D-style GameUI, which has been moved into the client. It has been redesigned for ease of use on consoles (which lack a pointing device): everything is integrated into the same navigable menu system, and you can't be in more than area at once. | ||
{{note|The Source 2009 GameUI is still available in the L4D branch, and the two can co-exist.}} | |||
The root function is <code>CGameUI::Initialize()</code>. Unfortunately, the server browser code is ''not'' included, and it would seem that the old DLL provides that still. | The root function is <code>CGameUI::Initialize()</code>. Unfortunately, the server browser code is ''not'' included, and it would seem that the old DLL provides that still. | ||
[[Category:Programming]] | [[Category:Programming]] |
Revision as of 14:14, 22 July 2010
GameUI is the code which provides 'frontend': broadly the main menu and loading screens.
Source 2009

In Source 2009 (and earlier), GameUI is an closed engine library manipulable to a limited extent by editing .res script files. These define properties like width, height, element location, and so on. You can add new non-interactive elements, and with a bit of effort hide existing ones.
Left 4 Dead

The Alien Swarm SDK contains the complete source for the newer L4D-style GameUI, which has been moved into the client. It has been redesigned for ease of use on consoles (which lack a pointing device): everything is integrated into the same navigable menu system, and you can't be in more than area at once.

The root function is CGameUI::Initialize()
. Unfortunately, the server browser code is not included, and it would seem that the old DLL provides that still.