Add radar_disc, radar_horizon, radar_airstrip_blip and sniper_background to setPlayerHudComponentVisible#4950
Open
TheCrazy17 wants to merge 2 commits into
Conversation
Allows hiding the radar's black circular border (multitheftauto#4850), the aircraft tilt indicators shown while flying (rotating ring + green attitude band), and the airstrip blip placed on the radar near runways, via setPlayerHudComponentVisible.
Allows hiding the black letterbox/zoom-box overlay drawn around the screen while aiming the sniper rifle in scope mode, independently of the crosshair, via setPlayerHudComponentVisible (multitheftauto#3962).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four new togglable HUD components via
setPlayerHudComponentVisible(client + servereHudComponent):radar_disc— the radar's circular border/disc (Add ability to show/hide more radar HUD components #4850)radar_horizon— the aircraft attitude/tilt indicator on the radar (rotating horizon ring + green attitude band) (Add ability to show/hide more radar HUD components #4850)radar_airstrip_blip— the yellow dots that appear on the radar near runways when you're in an airplane.sniper_background— the black letterbox overlay drawn around the screen while aiming the sniper rifle in scope mode, independent of the crosshair (setPlayerHudComponentVisible: sniper scope background #3962)Motivation
Resolves #4850
Resolves #3962
There was previously no way to hide these HUD elements individually.
Test plan
setPlayerHudComponentVisibleand confirmed the expected element hides/shows correctly with no side effects on other HUD elements (radar blips, crosshair reticle, etc.).Checklist