KillahPotatoes / KP-Liberation

The work on GreuhZbugs Liberation Mission for Arma 3 continues...
MIT License
264 stars 298 forks source link

Ability to toggle Production HUD visibility externally #858

Open Grezvany13 opened 3 years ago

Grezvany13 commented 3 years ago

Suggestion/Feature request

Ability to toggle the Production HUD visibility (show/hide) through a script/event which can be called from external scripts/mods. Additionally this could also be used to toggle visibility with a addAction or keybind.

Reason is that even when all other elements are removed from the GUI it will still stay on screen, making it harder to make nice screenshots, or for hardcore players to play completely without any HUD elements on screen.

Is your feature request related to a problem? Please describe:

N/A

Describe the solution you'd like:

The following should have an additional condition based a global variable which can be set externally: https://github.com/KillahPotatoes/KP-Liberation/blob/696c395f68987762d34928371c2cf8ec3a5b50d8/Missionframework/scripts/client/ui/ui_manager.sqf#L43

Alternatively check the showHUD command, and show/hide based on what has been set there.

Additional context:

N/A