HudLayout.res: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added more previews)
No edit summary
 
(36 intermediate revisions by 14 users not shown)
Line 1: Line 1:
The '''HudLayout.res''' file, located under a Source game's <code>/scripts</code> directory, defines the general look & feel of the ingame [[HUD Elements|HUD]]. From this file you can change among other things the location, color, font and visibility of HUD elements.
{{Underlinked|date=January 2024}}
{{lang|$title=HUDLayout.res|HudLayout.res}}
The {{ent|HudLayout.res}} file, located under a Source game's <code>/scripts</code> directory, defines the general look and feel of the in-game [[HUD Elements|HUD]]. From this file, you can change among other things the location, color, font and visibility of HUD elements.


==Default HUD elements==
== Format ==


{{TODO|Explain the rest of the default HUD elements}}
{{Empty section|date=January 2024}}


== Examples ==
;HudHealth
;HudHealth
:Player health readout
:Player health readout
[[File:HudHealth.png]]
:[[File:HudHealth.png]]
;HudSuit
;HudSuit
:Player armor readout
:Player armor readout
[[File:HudSuit.png]]
:[[File:HudSuit.png]]
;HudAmmo
;HudAmmo
:Player primary ammunition readout
:Player primary ammunition readout
[[File:HudAmmo.png]]
:[[File:HudAmmo.png]]
;HudAmmoSecondary
;HudAmmoSecondary
:Player secondary ammunition readout
:Player secondary ammunition readout
[[File:HudAmmoSecondary.png]]
:[[File:HudAmmoSecondary.png]]
;HudSuitPower
;HudSuitPower
:Player auxiliary power readout
:Player auxiliary power readout
[[File:HudSuitPower.png]]
:[[File:HudSuitPower.png]]
;HudFlashlight
;HudFlashlight
:Flashlight power readout
:Flashlight power readout
[[File:HudFlashlight.png]]
:[[File:HudFlashlight.png]]
;HudDamageIndicator
;HudDamageIndicator
:Damage direction indicator
:Damage direction indicator
[[File:HudDamageIndicator.png]]
:[[File:HudDamageIndicator.png]]
;HudZoom
;HudZoom
:Dimming and large crosshair
:Dimming and large crosshair
;HudWeaponSelection
;HudWeaponSelection
:Player weapon selection menu
:Player weapon selection menu
[[File:HudWeaponSelection.png]]
:[[File:HudWeaponSelection.png]]
;HudCrosshair
;HudCrosshair
:Crosshair
:Crosshair
[[File:HudCrosshair.png]]
:[[File:HudCrosshair.png]]
;HudDeathNotice
;HudDeathNotice
:Notification of player deaths in multiplayer
:Notification of player deaths in multiplayer
[[File:HudDeathNotice.png]]
:[[File:HudDeathNotice.png]]
;HudVehicle
;HudVehicle
:{{TODO|??}}
:Vehicle crosshair
:[[File:HudVehicle.png|800px]]
;ScorePanel
;ScorePanel
:Scoreboard
:Scoreboard
[[File:ScorePanel.png]]
:[[File:ScorePanel.png]]
;HudTrain
;HudTrain
:{{TODO|??}}
:Train controls from {{hls|4}} (exists in code but is stripped of functionality by default)
:[[File:HudTrain.png]]
;HudMOTD
;HudMOTD
:Message Of The Day panel
:Message Of The Day panel
[[File:HudMOTD.jpg]]
:[[File:HudMOTD.jpg]]
;HudMessage
;HudMessage
:Textual display typically used by game_text and env_message entities
:Textual display typically used by game_text and env_message entities
[[File:HudMessage.png]]
:[[File:HudMessage.png]]
;HudMenu
;HudMenu
:Better known as the "Radio Menu"
:Better known as the "Radio Menu"
:[[File:HudMenu.png]]
;HudCloseCaption
;HudCloseCaption
:Displays close captions and subtitles
:Displays close captions and subtitles
[[File:HudCloseCaption.png]]
:Newer games such as {{p2|4}} or later have anti-aliased subtitles text (which was later appeared in {{l4d2|4}}, and all first-party {{src13|4}} games (except {{hls}}) since 2022).
:[[File:HudCloseCaption.png]]
;HudChat
;HudChat
:Chat text entry and display
:Chat text entry and display
;HudHistoryResource
;HudHistoryResource
:List of items/ammunition the player recently picked up
:List of items/ammunition the player recently picked up
[[File:HudHistoryResource.png]]
:[[File:HudHistoryResource.png]]
;HudGeiger
;HudGeiger
:Geiger counter (radiation indicator)
:Handles geiger counter sound effect
;HudQuickInfo
;HudQuickInfo
:Health and ammunition indicator (surrounds the crosshair)
:Health and ammunition indicator (surrounds the crosshair)
[[File:HudQuickInfo.png]]
:[[File:HudQuickInfo.png]]
;HudWeapon
;HudWeapon
:{{TODO|??}}
:Handles crosshair drawing
;HudAnimationInfo
;HudAnimationInfo
:{{TODO|??}}
:Displays information about HUD elements, activated by the console command <code>cl_animationinfo</code>
:[[File:HudAnimationInfo.png]]
;HudPredictionDump
;HudPredictionDump
:{{TODO|??}}
:Displays information about a predicted entity's variables, activated by console variable <code>[[cl_pdump]]</code>
:[[File:HudPredictionDump.png]]
;HudHintDisplay
;HudHintDisplay
:Textual hint display
:Textual hint display
:[[File:HudHintDisplay.png]]
;HudHintKeyDisplay
;HudHintKeyDisplay
:{{TODO|Used in EP2, difference between this and HudHintDisplay?}}
:Display designed solely for showing localized key hints. Unlike <code>HudHintDisplay</code>, this display cannot be used to display unlocalized text
:[[File:HudHintKeyDisplay.png]]
;HudSquadStatus
;HudSquadStatus
:Squad status indicator, shows the number and state of squad members
:Squad status indicator, shows the number and state of squad members
[[File:HudSquadStatus.png]]
:[[File:HudSquadStatus.png]]
;HudPoisonDamageIndicator
;HudPoisonDamageIndicator
[[File:HudPoisonDamageIndicator.png]]
:[[File:HudPoisonDamageIndicator.png]]
;HudCredits
;HudCredits
:{{TODO|??}}
:End game credits overlay panel
;HUDAutoAim
;HUDAutoAim
:{{TODO|??}}
:Console crosshair with aim assistance (magnetism)
:[[File:HUDAutoAim.png|800px]]
;HudCommentary
;HudCommentary
:{{TODO|??}}
:Display showing the duration and progress of the currently active commentary node
:[[File:HudCommentary.png]]
;HudHDRDemo
;HudHDRDemo
:
:Lost Coast HDR Demonstration HUD element
:[[File:HudHDRDemo.jpg|950px]]
;TeamDisplay
;TeamDisplay
:Player team indicator
:Player team indicator
[[File:TeamDisplay.png]]
:[[File:TeamDisplay.png]]
;TargetID
;TargetID
:
:Display that shows information about the target the player is looking at
:[[File:TargetID.png]]
;HudVoiceSelfStatus
;HudVoiceSelfStatus
:Indicates to the player that their microphone is active
:Indicates to the player that their microphone is active
[[File:HudVoiceSelfStatus.png]]
:[[File:HudVoiceSelfStatus.png]]
;HudVoiceStatus
;HudVoiceStatus
:Indicator for the players who are currently speaking through voice chat
:Indicator for the players who are currently speaking through voice chat
[[File:HudVoiceStatus.png]]
:[[File:HudVoiceStatus.png]]
;HudLocator
:Display showing the location of the player's Jalopy (EP2 only)
:[[File:HudLocator.png]]
;HudPosture
:Display whether the player is crouching or not (Console only)
:[[File:Crouching.png]]
;AchievementNotificationPanel
:Notification panel indicating [[achievement]] progress on non-PC platforms and non-Steam mods
:[[File:AchievementProgressNotification.png]]


[[Category:HUD]]
[[Category:HUD]]
[[Category:Plain text files]]
[[Category:Plain text formats]]
{{stub|section=1}}

Latest revision as of 11:25, 24 May 2025

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Русский (ru)Translate (Translate)

The HudLayout.res file, located under a Source game's /scripts directory, defines the general look and feel of the in-game HUD. From this file, you can change among other things the location, color, font and visibility of HUD elements.

Format

Empty

This article or section is empty. You can help by adding it.

Examples

HudHealth
Player health readout
HudHealth.png
HudSuit
Player armor readout
HudSuit.png
HudAmmo
Player primary ammunition readout
HudAmmo.png
HudAmmoSecondary
Player secondary ammunition readout
HudAmmoSecondary.png
HudSuitPower
Player auxiliary power readout
HudSuitPower.png
HudFlashlight
Flashlight power readout
HudFlashlight.png
HudDamageIndicator
Damage direction indicator
HudDamageIndicator.png
HudZoom
Dimming and large crosshair
HudWeaponSelection
Player weapon selection menu
HudWeaponSelection.png
HudCrosshair
Crosshair
HudCrosshair.png
HudDeathNotice
Notification of player deaths in multiplayer
HudDeathNotice.png
HudVehicle
Vehicle crosshair
HudVehicle.png
ScorePanel
Scoreboard
ScorePanel.png
HudTrain
Train controls from Half-Life: Source Half-Life: Source (exists in code but is stripped of functionality by default)
HudTrain.png
HudMOTD
Message Of The Day panel
HudMOTD.jpg
HudMessage
Textual display typically used by game_text and env_message entities
HudMessage.png
HudMenu
Better known as the "Radio Menu"
HudMenu.png
HudCloseCaption
Displays close captions and subtitles
Newer games such as Portal 2 Portal 2 or later have anti-aliased subtitles text (which was later appeared in Left 4 Dead 2 Left 4 Dead 2, and all first-party Source 2013 Source 2013 games (except Half-Life: Source) since 2022).
HudCloseCaption.png
HudChat
Chat text entry and display
HudHistoryResource
List of items/ammunition the player recently picked up
HudHistoryResource.png
HudGeiger
Handles geiger counter sound effect
HudQuickInfo
Health and ammunition indicator (surrounds the crosshair)
HudQuickInfo.png
HudWeapon
Handles crosshair drawing
HudAnimationInfo
Displays information about HUD elements, activated by the console command cl_animationinfo
HudAnimationInfo.png
HudPredictionDump
Displays information about a predicted entity's variables, activated by console variable cl_pdump
HudPredictionDump.png
HudHintDisplay
Textual hint display
HudHintDisplay.png
HudHintKeyDisplay
Display designed solely for showing localized key hints. Unlike HudHintDisplay, this display cannot be used to display unlocalized text
HudHintKeyDisplay.png
HudSquadStatus
Squad status indicator, shows the number and state of squad members
HudSquadStatus.png
HudPoisonDamageIndicator
HudPoisonDamageIndicator.png
HudCredits
End game credits overlay panel
HUDAutoAim
Console crosshair with aim assistance (magnetism)
HUDAutoAim.png
HudCommentary
Display showing the duration and progress of the currently active commentary node
HudCommentary.png
HudHDRDemo
Lost Coast HDR Demonstration HUD element
HudHDRDemo.jpg
TeamDisplay
Player team indicator
TeamDisplay.png
TargetID
Display that shows information about the target the player is looking at
TargetID.png
HudVoiceSelfStatus
Indicates to the player that their microphone is active
HudVoiceSelfStatus.png
HudVoiceStatus
Indicator for the players who are currently speaking through voice chat
HudVoiceStatus.png
HudLocator
Display showing the location of the player's Jalopy (EP2 only)
HudLocator.png
HudPosture
Display whether the player is crouching or not (Console only)
Crouching.png
AchievementNotificationPanel
Notification panel indicating achievement progress on non-PC platforms and non-Steam mods
AchievementProgressNotification.png


Stub

This article or section is a stub. You can help by expanding it.