This article's documentation is for anything that uses the Source engine. Click here for more information.

Category:VGUI

From Valve Developer Community
(Redirected from VGUI2)
Jump to navigation Jump to search
English (en)Deutsch (de)Español (es)Polski (pl)Русский (ru)Українська (uk)中文 (zh)Translate (Translate)

VGUI (technically have two versions, "VGUI" and "VGUI2"), is used to display dynamic 2D images and graphical user interfaces in GoldSrc (since 2002) and Source, as well as Source 2 (in some games). This includes dialogues and buttons, the HUD, in-game menu, and even the surfaces of monitors and screens in the 3D world. It is platform-independent and Unicode-compliant.

VGUI2 forms can technically be displayed on the Windows, Mac and Linux desktop as well as in-game.

The Half-Life Half-Life main menu, rendered using VGUI2.
The Half-Life 2: Episode Two Half-Life 2: Episode Two main menu, rendered using newer iteration of VGUI2.

VGUI in Steam

Steam Steam at launch uses VGUI2, with the iconic green skin which was also used in GoldSrc games. Over time, the Steam client was redesigned in 2005 (replacing the GoldSrc styled VGUI2), 2007, 2010 (black skeuomorphism) and finally 2015 (with flat gradient blue design). In 2019, the Steam library along with Steam Chat (Friends) was redesigned using CEF instead of VGUI, and Valve slowly removing more elements of VGUI until June 15, 2023, when the whole Steam UI was completely replaced with Chromium Embedded Framework. However, Steam will fallback to VGUI only if Steam detects that CEF wasn't working properly, telling users to restart all or some Steam process (e.g. 🖿steamwebhelper.exe), or when Steam is running in Windows compatibility mode.

This change also meant that custom Steam skins (which uses VGUI) are no longer supported, and cannot be used except on few dialogs, as long it's was selected prior to the update (or through Steam registry path (Registry PathHKEY_CURRENT_USER\SOFTWARE\Valve\Steam\Skin), which can be viewed with Windows's Registry Editor).

VGUI in GoldSrc

GoldSrc GoldSrc uses both VGUI and VGUI2, the former was introduced in 2000 with Half-Life 1.1.0.0 update, used for Scoreboard (replacing Opposing Force-style scoreboard), buy menu and MOTD (both in Counter-Strike), and latter (VGUI2) introduced with Half-Life 1.1.0.9 update alongside with the release of Steam Beta (and Steam Tracker). GoldSrc's VGUI2 was later updated again in 2003 (with the release of Steam) and now being used to render the game main menu (replacing old menu which was restricted to 640x480). Early GoldSrc games on Steam (around 2003 until Steam update in 2005/2006), can have it's VGUI skins changed when you select a different skins on Steam client, as early GoldSrc games use TrackerScheme.res file located on 🖿Steam\platform\resource or 🖿Steam\skins\skin-name\platform\resource folder, instead of 🖿platform folder on the game files.

VGUI2 in GoldSrc uses the Steam green skin, which was also used in Steam client when it was initially launched in 2003.

VGUI in Source and Source 2

Source Source and some Source 2 Source 2 games[confirm] (the latter is only used for console UI in Half-Life: Alyx when launched with -console, and Half-Life 2 fallback HUD when Half-Life: Alyx is launched without VR) only uses VGUI2. Due to this wiki historically documenting Source more than GoldSrc, VGUI2 is oftentimes interchangeably referred to as VGUI.

Unlike GoldSrc VGUI, VGUI in Source cannot be snapped to the another window or the corner of the screen, but it does have fade in/out animations.

As of 2025, with the release of Half-Life 25th Anniversary Update (in Nov 2023), Half-Life 2 and Half-Life 2: Deathmatch 20th Anniversary Update (in Nov 2024) and in games such as Team Fortress 2 (since April 2024), and February 18, 2025 update for Counter-Strike: Source, Day of Defeat: Source, Half-Life Deathmatch: Source and Half-Life 2: Deathmatch, VGUI now scales on higher resolutions (1440p, 4K/3840x2160 or higher).

About category

This page contains articles and documentations related to VGUI and VGUI2.

Subcategories

This category has the following 3 subcategories, out of 3 total.

C

H