Difference between revisions of "Progress enable"

From Valve Developer Community
Jump to: navigation, search
(Added page for the progress_enable command, since it caused me a bit of frustration before I found it.)
 
(Spaced out the page a bit to improve readability.)
Line 1: Line 1:
 
The <code>progress_enable</code> ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.
 
The <code>progress_enable</code> ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.
 +
  
 
For instance, if calling something like:
 
For instance, if calling something like:
Line 8: Line 9:
  
 
The screen will freeze while the map is loading, and won't report any progress to the player.
 
The screen will freeze while the map is loading, and won't report any progress to the player.
 +
  
 
However, if you call progress_enable before the map command:
 
However, if you call progress_enable before the map command:
Line 16: Line 18:
  
 
The map will load and the VGUI loading screen will be shown: [http://dl.dropbox.com/u/1903330/wc/1890220302.png]
 
The map will load and the VGUI loading screen will be shown: [http://dl.dropbox.com/u/1903330/wc/1890220302.png]
 +
  
 
This can be used to make custom menus, where using the old loading panel is desired when the user loads a saved game, or starts a new one.
 
This can be used to make custom menus, where using the old loading panel is desired when the user loads a saved game, or starts a new one.

Revision as of 22:59, 26 February 2013

The progress_enable ConCommand tells the engine to show the Half-Life 2 VGUI progress bar on the screen for the next map load operation.


For instance, if calling something like:

engine->ClientCmd("map test");

The screen will freeze while the map is loading, and won't report any progress to the player.


However, if you call progress_enable before the map command:

engine->ClientCmd("progress_enable \n map test");

The map will load and the VGUI loading screen will be shown: [1]


This can be used to make custom menus, where using the old loading panel is desired when the user loads a saved game, or starts a new one.