showHUD: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2;</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 57: | Line 57: | ||
|x1= <sqf>showHUD false;</sqf> | |x1= <sqf>showHUD false;</sqf> | ||
|x2= Hide vehicle radar and compass:< | |x2= Hide vehicle radar and compass: | ||
true, | <sqf> | ||
true, | showHUD [ | ||
true, | true, // scriptedHUD | ||
true, | true, // info | ||
true, | true, // radar | ||
true, | true, // compass | ||
true, | true, // direction | ||
true, | true, // menu | ||
true, | true, // group | ||
true, | true, // cursors | ||
true | true, // panels | ||
];</ | true, // kills | ||
true // showIcon3D | |||
]; | |||
</sqf> | |||
|x3= Check if HUD visibility is hardcoded in mission config and [[showHUD]] command is overriden:< | |x3= Check if HUD visibility is hardcoded in mission config and [[showHUD]] command is overriden: | ||
<sqf>private _disabledShowHUD = isArray (missionConfigFile >> "showHUD");</sqf> | |||
|seealso= [[shownHUD]] [[showCinemaBorder]] [[showSubtitles]] [[showWatch]] [[showRadio]] [[showMap]] [[showGPS]] [[showCompass]] [[showPad]] | |seealso= [[shownHUD]] [[showCinemaBorder]] [[showSubtitles]] [[showWatch]] [[showRadio]] [[showMap]] [[showGPS]] [[showCompass]] [[showPad]] | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20150817190800 | |||
|text= The "cursors" parameter controls visibility of the action menu as well as weapon cursors. However if 1st param "hud" hides and disables action menu, param "cursors" only hides it. So you get invisible action menu that is fully operational. [[inGameUISetEventHandler]] will still fire on interaction, giving the information about selected item on the action menu even if you cannot see it. Unfortunately it also hides icons drawn with [[drawIcon3D]]. | |||
}} | |||
{{Note | |||
|user= POLPOX | |||
|timestamp= 20200301143300 | |||
|text= <sqf>showHUD false;</sqf> removes [[Arma 3 Contact|Contact]]'s compass that is shown at the top of the screen. | |||
}} | |||
<sqf>showHUD false;</sqf>removes [[Arma 3 Contact|Contact]]'s compass that shown | |||
Revision as of 14:16, 5 May 2022
Description
- Description:
- Enable / disable showing of HUD. Defines visibility of weapon crosshair and any informational tags that appear when pointing the weapon at an object as well as availability of the default action menu. Unfortunately, it also hides icons drawn with drawIcon3D.
- Groups:
- Interaction
Syntax
Alternative Syntax
- Syntax:
- showHUD [scriptedHUD, info radar, compass, direction, menu, group, cursors, panels, kills, showIcon3D]
- Parameters:
- scriptedHUD: Boolean - Show scripted HUD such as weapon crosshair, action menu and overlays created with cutRsc and titleRsc. Same as showHUD's first syntax
- info: Boolean (Optional, default true) - Show vehicle, soldier and weapon info
- radar: Boolean (Optional, default true) - Show vehicle radar
- compass: Boolean (Optional, default true) - Show vehicle compass
- direction: Boolean (Optional, default true) - Show tank direction indicator. Not present in vanilla Arma 3
- menu: Boolean (Optional, default true) - Show commanding menu (HC related menus)
- group: Boolean (Optional, default true) - Show group info bar (Squad leader info bar)
- cursors: Boolean (Optional, default true) - Show HUD weapon cursors (connected with scripted HUD)
- since 1.70
- panels: Boolean (Optional, default true) - Show Arma 3: Custom Info
- kills: Boolean (Optional, default true) - Show "x killed by y" systemChat messages
- since 2.04
- showIcon3D: Boolean (Optional, default false) - Show icons drawn with drawIcon3D even when the HUD is hidden
- Return Value:
- Nothing
Examples
- Example 1:
- showHUD false;
- Example 2:
- Hide vehicle radar and compass:
- Example 3:
- Check if HUD visibility is hardcoded in mission config and showHUD command is overriden:
Additional Information
- See also:
- shownHUD showCinemaBorder showSubtitles showWatch showRadio showMap showGPS showCompass showPad
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on Aug 17, 2015 - 19:08 (UTC)
- The "cursors" parameter controls visibility of the action menu as well as weapon cursors. However if 1st param "hud" hides and disables action menu, param "cursors" only hides it. So you get invisible action menu that is fully operational. inGameUISetEventHandler will still fire on interaction, giving the information about selected item on the action menu even if you cannot see it. Unfortunately it also hides icons drawn with drawIcon3D.