HudLayout.res: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added more previews)
m (Added more previews and HUD elements)
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.
The <code>HudLayout.res</code> 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==
==Default HUD elements==
Line 68: Line 68:
:{{TODO|??}}
:{{TODO|??}}
;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
Line 85: Line 89:
:{{TODO|??}}
:{{TODO|??}}
;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]]
;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
Line 99: Line 106:
: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)
;HudPosture
:{{TODO|??}}
;AchievementNotificationPanel
:{{TODO|??}}


[[Category:HUD]]
[[Category:HUD]]

Revision as of 22:01, 19 July 2010

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.

Default HUD elements

Todo: Explain the rest of the default HUD elements
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
Todo: ??
ScorePanel
Scoreboard

ScorePanel.png

HudTrain
Todo: ??
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"
HudCloseCaption
Displays close captions and subtitles

HudCloseCaption.png

HudChat
Chat text entry and display
HudHistoryResource
List of items/ammunition the player recently picked up

HudHistoryResource.png

HudGeiger
Geiger counter (radiation indicator)
HudQuickInfo
Health and ammunition indicator (surrounds the crosshair)

HudQuickInfo.png

HudWeapon
Todo: ??
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
Todo: ??
HUDAutoAim
Todo: ??
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)
HudPosture
Todo: ??
AchievementNotificationPanel
Todo: ??