Env hudhint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removing Russian youtube advertising.)
(updates)
Line 1: Line 1:
{{lang|Env hudhint}}
[[File:Hudhint.png|right]]
{{base point|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.
{{base point|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.


Line 4: Line 6:


==Keyvalues==
==Keyvalues==
{{KV|Hint Text (localized)|string|This should be match a HUD hint entry in <code>hl2\resource\[[valve_english.txt]]</code> or its localized equivalent. Example: entering "<code>#Valve_Hint_Zoom</code>" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function. {{warning|Entering an unlocalized text as a hint will work, though when used in a mod you cannot make it language-specific unless you make localized text for the specified name!}}}}
{{KV|Hint Text (localized) (message)|string|This should be match a HUD hint entry in <code>hl2\resource\[[valve_english.txt]]</code> or its localized equivalent. Example: entering "<code>#Valve_Hint_Zoom</code>" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
{{KV Targetname}}
 
{{warning|Entering raw text will not allow the message to be translated between user languages.}}}}
{{KV BaseEntity|css=1}}


==Inputs==
==Inputs==
{{IO|ShowHudHint|Shows the hint message.}}
{{IO|ShowHudHint|Shows the hint message.}}
{{IO|HideHudHint|Hides the hint message.}}
{{IO|HideHudHint|Hides the hint message.}}
{{I Targetname}}
{{I BaseEntity|prel4d=1}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O BaseEntity|l4d=1}}


==See also==
==See Also==
* [[env_message]] - A similar entity that displays other predefined messages on the screen.
*{{ent|env_message}} - A similar entity that displays other predefined messages on the screen.


[[Category:GUI Entities]]
[[Category:GUI Entities]]

Revision as of 11:09, 27 September 2018

English (en)中文 (zh)Translate (Translate)
Hudhint.png

Template:Base point It is used to control the display of HUD hints, which show the player what key is bound to a particular command.

Note.pngNote:Counter-Strike: Source The HUD hints are only displayed to the activators of the I/O chain.

Keyvalues

Hint Text (localized) (message) ([todo internal name (i)]) <string>
This should be match a HUD hint entry in hl2\resource\valve_english.txt or its localized equivalent. Example: entering "#Valve_Hint_Zoom" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
Warning.pngWarning:Entering raw text will not allow the message to be translated between user languages.


Inputs

ShowHudHint
Shows the hint message.
HideHudHint
Hides the hint message.


Outputs

See Also

  • env_message - A similar entity that displays other predefined messages on the screen.